Click here to Skip to main content
16,004,919 members
Home / Discussions / Database
   

Database

 
AnswerRe: Help me Pin
Paul Conrad1-Aug-07 16:36
professionalPaul Conrad1-Aug-07 16:36 
QuestionConvert to Stored Proc [modified] Pin
ASPnoob1-Aug-07 10:44
ASPnoob1-Aug-07 10:44 
AnswerRe: Convert to Stored Proc Pin
Mike Dimmick1-Aug-07 11:42
Mike Dimmick1-Aug-07 11:42 
QuestionHandling null values with SqlDataReader Pin
eggie51-Aug-07 7:24
eggie51-Aug-07 7:24 
AnswerRe: Handling null values with SqlDataReader Pin
Pete O'Hanlon1-Aug-07 9:05
mvePete O'Hanlon1-Aug-07 9:05 
AnswerRe: Handling null values with SqlDataReader Pin
Pete O'Hanlon1-Aug-07 9:31
mvePete O'Hanlon1-Aug-07 9:31 
GeneralRe: Handling null values with SqlDataReader Pin
eggie51-Aug-07 18:46
eggie51-Aug-07 18:46 
AnswerRe: Handling null values with SqlDataReader Pin
Mike Dimmick1-Aug-07 11:48
Mike Dimmick1-Aug-07 11:48 
If you can't handle NULL values in the client code, don't let them get into the databases. Set the column's nullable property to false (if creating the table in SQL, use columnname datatype NOT NULL).

I tend to use a cast with the indexed property which returns an object, which will leave a reference variable (such as a string) set to null, but cause a NullReferenceException if casting to a value type like int.

In general I prefer not to allow NULLs in the columns, at least in part to ensure that you can detect an outer join that didn't have a match (useful for doing a multi-column NOT IN equivalent).

Stability. What an interesting concept. -- Chris Maunder

GeneralRe: Handling null values with SqlDataReader Pin
Pete O'Hanlon2-Aug-07 10:02
mvePete O'Hanlon2-Aug-07 10:02 
Questionsql 2005 not installing [modified] Pin
costavo1-Aug-07 2:35
costavo1-Aug-07 2:35 
AnswerRe: sql 2005 not installing Pin
originSH1-Aug-07 2:47
originSH1-Aug-07 2:47 
QuestionSQL 2000 & 2005 Pin
Saranya B1-Aug-07 1:39
Saranya B1-Aug-07 1:39 
AnswerRe: SQL 2000 & 2005 Pin
kubben1-Aug-07 2:13
kubben1-Aug-07 2:13 
Questionauto run a query in ms sqlserver Pin
asdf17531-Aug-07 1:19
asdf17531-Aug-07 1:19 
AnswerRe: auto run a query in ms sqlserver Pin
Pete O'Hanlon1-Aug-07 2:21
mvePete O'Hanlon1-Aug-07 2:21 
QuestionBenefits of Access 2007 Pin
Jason Stamp31-Jul-07 23:23
Jason Stamp31-Jul-07 23:23 
AnswerRe: Benefits of Access 2007 Pin
Aaron VanWieren1-Aug-07 4:24
Aaron VanWieren1-Aug-07 4:24 
QuestionCreating Stored Proc in Text Editor [modified] Pin
ASPnoob31-Jul-07 21:17
ASPnoob31-Jul-07 21:17 
AnswerRe: Creating Stored Proc in Text Editor Pin
originSH31-Jul-07 22:10
originSH31-Jul-07 22:10 
QuestionNested Select statement Pin
Prakash_Mishra31-Jul-07 20:34
Prakash_Mishra31-Jul-07 20:34 
AnswerRe: Nested Select statement Pin
kubben1-Aug-07 2:18
kubben1-Aug-07 2:18 
GeneralRe: Nested Select statement Pin
Prakash_Mishra1-Aug-07 3:05
Prakash_Mishra1-Aug-07 3:05 
AnswerRe: Nested Select statement Pin
Prakash_Mishra1-Aug-07 3:02
Prakash_Mishra1-Aug-07 3:02 
QuestionSyntax error converting character string to smalldatetime data type..., Pin
Member 387988131-Jul-07 20:00
Member 387988131-Jul-07 20:00 
AnswerRe: Syntax error converting character string to smalldatetime data type..., [modified] Pin
Pete O'Hanlon1-Aug-07 0:45
mvePete O'Hanlon1-Aug-07 0:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.