PC Review


Reply
Thread Tools Rate Thread

datareader and mssql text datatype

 
 
Jim McCarthy
Guest
Posts: n/a
 
      21st Mar 2005
Hello

I'm having trouble using a datareader to retrieve mssql text datatype
fields. I can find examples where images are the data stored in the field
but the fields I need to work with have text in them. Can anyone point me to
some sample code.

Thanks,
Jim


 
Reply With Quote
 
 
 
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      21st Mar 2005
Jim,

How are you trying to access it? The DataAdapter in the SqlClient
namespace should translate that into a string instance for you.


--
- Nicholas Paldino [.NET/C# MVP]
- (E-Mail Removed)

"Jim McCarthy" <(E-Mail Removed)> wrote in message
news:O9y2%(E-Mail Removed)...
> Hello
>
> I'm having trouble using a datareader to retrieve mssql text datatype
> fields. I can find examples where images are the data stored in the field
> but the fields I need to work with have text in them. Can anyone point me
> to
> some sample code.
>
> Thanks,
> Jim
>
>



 
Reply With Quote
 
Jim McCarthy
Guest
Posts: n/a
 
      21st Mar 2005
I'm trying to use a datareader instead of a dataadapter and dataset. I'm
using so many dataadapters and datasets right now I was just trying to avoid
using another.



Another question -- do I need to use another dataset for each dataadapter I
use in a form or for that matter in my application.

Thanks,

Jim

"Nicholas Paldino [.NET/C# MVP]" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
> Jim,
>
> How are you trying to access it? The DataAdapter in the SqlClient
> namespace should translate that into a string instance for you.
>
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - (E-Mail Removed)
>
> "Jim McCarthy" <(E-Mail Removed)> wrote in message
> news:O9y2%(E-Mail Removed)...
> > Hello
> >
> > I'm having trouble using a datareader to retrieve mssql text datatype
> > fields. I can find examples where images are the data stored in the

field
> > but the fields I need to work with have text in them. Can anyone point

me
> > to
> > some sample code.
> >
> > Thanks,
> > Jim
> >
> >

>
>



 
Reply With Quote
 
Otis Mukinfus
Guest
Posts: n/a
 
      22nd Mar 2005
On Mon, 21 Mar 2005 12:58:57 -0700, "Jim McCarthy" <(E-Mail Removed)> wrote:

>I'm trying to use a datareader instead of a dataadapter and dataset. I'm
>using so many dataadapters and datasets right now I was just trying to avoid
>using another.
>
>
>
>Another question -- do I need to use another dataset for each dataadapter I
>use in a form or for that matter in my application.
>
>Thanks,
>
>Jim


Jim,

You can fill one DataSet from all of the DataAdapters, but that might not be
what you want. I would look at all of the DataAdapters and categorize their
use. Then I would fill DataSets that match the groups.

For instance if you have a lot of ListBoxes or DropDowns to populate, then a
DataSet filled by DataAdapters that only have Select Commands would be
appropriate.


>
>"Nicholas Paldino [.NET/C# MVP]" <(E-Mail Removed)> wrote in
>message news:(E-Mail Removed)...
>> Jim,
>>
>> How are you trying to access it? The DataAdapter in the SqlClient
>> namespace should translate that into a string instance for you.
>>
>>
>> --
>> - Nicholas Paldino [.NET/C# MVP]
>> - (E-Mail Removed)
>>
>> "Jim McCarthy" <(E-Mail Removed)> wrote in message
>> news:O9y2%(E-Mail Removed)...
>> > Hello
>> >
>> > I'm having trouble using a datareader to retrieve mssql text datatype
>> > fields. I can find examples where images are the data stored in the

>field
>> > but the fields I need to work with have text in them. Can anyone point

>me
>> > to
>> > some sample code.
>> >
>> > Thanks,
>> > Jim
>> >
>> >

>>
>>

>


Otis Mukinfus
http://www.otismukinfus.com
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ADP + MSSQL (ADO) vs. ACCDB + linked MSSQL (DAO). Misha Microsoft Access VBA Modules 3 14th Dec 2009 09:31 PM
How to INSERT a semi-long TEXT values into MSSQL 8.00.2039 ? =?Utf-8?B?bWFydGlu?= Microsoft ADO .NET 0 22nd Mar 2006 11:45 AM
Oracle Datareader - Datatype SDF Microsoft ADO .NET 3 27th Jan 2005 09:36 AM
Outputting MSSQL 2000 Image DataType?? TJ Meadows via .NET 247 Microsoft ASP .NET 0 4th Aug 2004 12:49 PM
SQL datatype Text William Newsom Microsoft ADO .NET 4 17th Sep 2003 09:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:51 AM.