A Andrew Banks Feb 25, 2004 #1 I'm outputting data from a SQL server database to a web form (C#). How can I detect if a value is null in the database? Thanks
I'm outputting data from a SQL server database to a web form (C#). How can I detect if a value is null in the database? Thanks
W Wes Brown Feb 25, 2004 #2 Andrew, To check if a value is null compare to DBNull.Value. Ex: if (myTable.Rows[0][0] == DBNull.Value) ...
Andrew, To check if a value is null compare to DBNull.Value. Ex: if (myTable.Rows[0][0] == DBNull.Value) ...
A Andrew Banks Feb 25, 2004 #3 Thanks Wes, It's appreciated Wes Brown said: Andrew, To check if a value is null compare to DBNull.Value. Ex: if (myTable.Rows[0][0] == DBNull.Value) ... I'm outputting data from a SQL server database to a web form (C#). How can I detect if a value is null in the database? Thanks Click to expand... Click to expand...
Thanks Wes, It's appreciated Wes Brown said: Andrew, To check if a value is null compare to DBNull.Value. Ex: if (myTable.Rows[0][0] == DBNull.Value) ... I'm outputting data from a SQL server database to a web form (C#). How can I detect if a value is null in the database? Thanks Click to expand... Click to expand...
R ruca Feb 26, 2004 #4 In vb, how can I do the same. I mean.... to see if a DataSet it is empty? -- Thank's (if you try to help me) Hope this help you (if I try to help you) ruca Wes Brown said: Andrew, To check if a value is null compare to DBNull.Value. Ex: if (myTable.Rows[0][0] == DBNull.Value) ... I'm outputting data from a SQL server database to a web form (C#). How can I detect if a value is null in the database? Thanks Click to expand... Click to expand...
In vb, how can I do the same. I mean.... to see if a DataSet it is empty? -- Thank's (if you try to help me) Hope this help you (if I try to help you) ruca Wes Brown said: Andrew, To check if a value is null compare to DBNull.Value. Ex: if (myTable.Rows[0][0] == DBNull.Value) ... I'm outputting data from a SQL server database to a web form (C#). How can I detect if a value is null in the database? Thanks Click to expand... Click to expand...