Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Retreiving a Text field
Message
 
 
À
14/07/2009 14:05:34
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Versions des environnements
Environment:
ASP.NET
Database:
MS SQL Server
Divers
Thread ID:
01412265
Message ID:
01412285
Vues:
40
>>1. Change lcNumber to be a parameter - to avoid SQL injection attacks.
>>
>>2. Try to list all the fields explicitly.
>>
>>3. The code dr.Read() should be changed to
>>
>>while dr.Read()
>> lcData = dr("Comment").ToString()
>
>Thanks for the suggestion. But I discovered the problem actual never existed. The text field actual did have numbers in them and the dataset was being read correctly. I guess should have look at the data before assuming i was getting the wrong data.

Good, but still better to adjust your coding.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform