Re: [DOTNET] question about sql to c# datatypes

2002-05-01 Thread Scott Densmore
4:41 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] question about sql to c# datatypes Boolean and String respectively. DataReader.GetBoolean([column_name_bit]), DataReader.GetString([column_name_var_char]); -Original Message- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Beha

Re: [DOTNET] question about sql to c# datatypes

2002-05-01 Thread Marina Zlatkina
The datareader has many many functions for retrieving field values, such as GetInt32, GetGuid, etc.. You should look at all of those, to see which ones are more appropriate for the data types you have, and define MyFunc appropriately. On Wed, 1 May 2002 14:36:42 -0700, Jeff Mangan <[EMAIL PROTEC

Re: [DOTNET] question about sql to c# datatypes

2002-05-01 Thread Marsh, Drew
Jeff Mangan [mailto:[EMAIL PROTECTED]] wrote: > I have a datareader and for each row, I am passing two of the > column values to a c# function in my code behind. They are a > bit and varchar(50). My c# function will only work if I make > the parameters as objects ie. MyFunc (object value1, objec

Re: [DOTNET] question about sql to c# datatypes

2002-05-01 Thread Scott Densmore
: [DOTNET] question about sql to c# datatypes I have a datareader and for each row, I am passing two of the column values to a c# function in my code behind. They are a bit and varchar(50). My c# function will only work if I make the parameters as objects ie. MyFunc (object value1, object value2). I

[DOTNET] question about sql to c# datatypes

2002-05-01 Thread Jeff Mangan
I have a datareader and for each row, I am passing two of the column values to a c# function in my code behind. They are a bit and varchar(50). My c# function will only work if I make the parameters as objects ie. MyFunc (object value1, object value2). I don't want to do it this way due to many