Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

Missing spaces between text in Visual Studio

$
0
0

Hi there,

I have created a stored procedure in sql to show some information for a report.   So far it gives me information to show on the report.  However I have an issue with one column.  Which is showing a mail address.  In sql it shows correctly with the address.  However as soon as I go into Visual studio and refresh the stored procedure with the information.  The mail column misses out some of the spaces between the text, so it shows bunched up.

So in Sql it looks like 42 Lamber Street Abbotsford

However in Visual Studio it looks like 42LamberStreet Abbotsford

It's a standard field, I am calling on a select statement, via a view.  I have tried adding in a cast option.

It looks fine in Sql each time.  No spaces missing.  However in Visual Studio it does not like it.  As you can imagine there are multiple addresses to show.  So I cannot guess that the address would have 2 numbers in it.  Is there anything that anyone can recommend to try in Visual Studio to correct this issue?

cast (mailaddr.formataddr as varchar (400))as Mail,

and

CONVERT(varchar(100),mailaddr.formataddr) as Mail, dont make any difference to visual studio.  It shows exactly the same.


Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>