Click here to Skip to main content
15,918,243 members
Home / Discussions / Database
   

Database

 
GeneralRe: Tricky question ob querys, how to solve ??? Pin
Colin Angus Mackay18-Dec-06 12:56
Colin Angus Mackay18-Dec-06 12:56 
AnswerRe: Tricky question ob querys, how to solve ??? Pin
Pete O'Hanlon18-Dec-06 8:45
mvePete O'Hanlon18-Dec-06 8:45 
GeneralRe: Tricky question ob querys, how to solve ??? Pin
karam chandrabose18-Dec-06 17:56
karam chandrabose18-Dec-06 17:56 
QuestionPlease Help me :( Pin
Dayekh18-Dec-06 5:45
Dayekh18-Dec-06 5:45 
AnswerRe: Please Help me :( Pin
Private_Void18-Dec-06 6:06
Private_Void18-Dec-06 6:06 
GeneralRe: Please Help me :( Pin
Dayekh18-Dec-06 22:45
Dayekh18-Dec-06 22:45 
GeneralRe: Please Help me :( Pin
Private_Void19-Dec-06 3:03
Private_Void19-Dec-06 3:03 
GeneralRe: Please Help me :( Pin
Dayekh19-Dec-06 4:56
Dayekh19-Dec-06 4:56 
I found out what the problem was. I was leaving the AssignedTo field unassigned, but the parameter was automatically being populated with a value of 0. And ofcourse there is no User in the User table with an ID of 0, therefore it was throwing that error.

So all I had to do was put an IF statement in place. If the Value was 0, make the parameter = (variable = System.DBNull.Value)

Problem sorted. Thank you both for your replies! Smile | :)
QuestionReturn cols with values Pin
tadhg8818-Dec-06 1:24
tadhg8818-Dec-06 1:24 
AnswerRe: Return cols with values Pin
ChandraRam18-Dec-06 1:30
ChandraRam18-Dec-06 1:30 
GeneralRe: Return cols with values Pin
tadhg8818-Dec-06 3:48
tadhg8818-Dec-06 3:48 
Questionsqlserver/ msAccess Pin
siva.k18-Dec-06 0:13
siva.k18-Dec-06 0:13 
AnswerRe: sqlserver/ msAccess Pin
Pete O'Hanlon18-Dec-06 0:18
mvePete O'Hanlon18-Dec-06 0:18 
AnswerRe: sqlserver/ msAccess Pin
ChandraRam18-Dec-06 1:28
ChandraRam18-Dec-06 1:28 
Questionhow to declare a variable in sql views Pin
yogita charhate17-Dec-06 22:31
yogita charhate17-Dec-06 22:31 
AnswerRe: how to declare a variable in sql views Pin
Pete O'Hanlon17-Dec-06 22:37
mvePete O'Hanlon17-Dec-06 22:37 
QuestionHelp... database consolidation Pin
shum2317-Dec-06 21:28
shum2317-Dec-06 21:28 
AnswerRe: Help... database consolidation Pin
Colin Angus Mackay17-Dec-06 22:43
Colin Angus Mackay17-Dec-06 22:43 
QuestionTo Get Hierarcal Data Pin
TC2817-Dec-06 19:34
TC2817-Dec-06 19:34 
AnswerRe: To Get Hierarcal Data Pin
Tarakeshwar Reddy17-Dec-06 20:25
professionalTarakeshwar Reddy17-Dec-06 20:25 
QuestionDifferent Table Column in a DataGrid Pin
Tomy140217-Dec-06 17:21
Tomy140217-Dec-06 17:21 
AnswerRe: Different Table Column in a DataGrid Pin
Kschuler18-Dec-06 5:38
Kschuler18-Dec-06 5:38 
GeneralRe: Different Table Column in a DataGrid Pin
Tomy140218-Dec-06 15:17
Tomy140218-Dec-06 15:17 
GeneralRe: Different Table Column in a DataGrid Pin
Kschuler19-Dec-06 3:01
Kschuler19-Dec-06 3:01 
GeneralRe: Different Table Column in a DataGrid Pin
Tomy140219-Dec-06 21:29
Tomy140219-Dec-06 21:29 

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.