Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Line breaks in the field - how can I see them?
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01293940
Message ID:
01293944
Vues:
16
This message has been marked as the solution to the initial question of the thread.
>Hi everybody,
>
>I have a varchar(1000) field for the Description. On the front end (ASP.NET page) I type info with line breaks. In the SQL Server I see line breaks as spaces when I open table or when I do a select.
>
>Is there anyway to see the actual content on the field?
>
>Somewhere in between saving this file and generating a new page with the description the line breaks disappear.
>
>Thanks in advance.

What happens if you SELECT that field that way:
SELECT REPLACE(YourField, CHAR(13)+CHAR(10),'~~')
       FROM YourTable
Did you see any '~~' in the result?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform