English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I'm using a stored procedure to retrieve Notes stored in a text field; not char or varchar, but text is the data type. The records appear correctly if I execute the stored procedure from Query Analyzer. But when I call the procedure from my VB app and I step through the code the same records have the value Empty for the Notes field. How can I get those values to appear in ADO? I tried using the field's GetChunk method, but there's nothing to get. It's really empty.

Thanks

2007-01-17 09:40:17 · 1 answers · asked by blue_prince_of_dallas 2 in Computers & Internet Programming & Design

1 answers

Not sure if you're using ADO.NET or Vb ADO. In any case, this translates into a string. I assume by you using GetChunk you're using .Net. GetChunk is from BLOBS and images, you're only looking to return text. Returning it as a string in your object will due.

MyObject["name"].ToString() will work. If no data is returned then, your database connection or stored procedure is incorrect. Good luck.

2007-01-17 12:55:05 · answer #1 · answered by Anonymous · 0 0

fedest.com, questions and answers