C
Carlo Razzeto
I have a question about what the SqlDataReader index value returns exactly
(in VB SqlDataReader.Item("Value")). According to the .Net SDK this property
returns:
Overloaded. Gets the value of a column in its native format.
I translated this as this property returns the value as it's type, so an int
type in my sql database would return as an int? If this is true then I'm
guess that the following code *should* run with out error. Assume current is
an sql feild of type int:
if ((int) this.Reader["Current"] == 0)
{
table += "...";
}
else
{
table += "...";
}
Are my assumptions correct? Or am I about to run into some trouble. Thanks
for clarification!
Carlo
(in VB SqlDataReader.Item("Value")). According to the .Net SDK this property
returns:
Overloaded. Gets the value of a column in its native format.
I translated this as this property returns the value as it's type, so an int
type in my sql database would return as an int? If this is true then I'm
guess that the following code *should* run with out error. Assume current is
an sql feild of type int:
if ((int) this.Reader["Current"] == 0)
{
table += "...";
}
else
{
table += "...";
}
Are my assumptions correct? Or am I about to run into some trouble. Thanks
for clarification!
Carlo