Click here to Skip to main content
15,912,578 members
Home / Discussions / Database
   

Database

 
AnswerRe: Database diagram in system databases Pin
SilimSayo25-Jan-12 7:41
SilimSayo25-Jan-12 7:41 
QuestionProcedure timing out, yet... Pin
Distind23-Jan-12 8:12
Distind23-Jan-12 8:12 
AnswerRe: Procedure timing out, yet... Pin
Jörgen Andersson23-Jan-12 11:20
professionalJörgen Andersson23-Jan-12 11:20 
AnswerRe: Procedure timing out, yet... Pin
Shameel23-Jan-12 16:24
professionalShameel23-Jan-12 16:24 
AnswerDeadlock ? Pin
David Mujica24-Jan-12 5:04
David Mujica24-Jan-12 5:04 
AnswerRe: Procedure timing out, yet... Pin
SilimSayo25-Jan-12 9:53
SilimSayo25-Jan-12 9:53 
AnswerRe: Procedure timing out, yet... Pin
goulimanju26-Jan-12 2:59
goulimanju26-Jan-12 2:59 
QuestionNull handling oddity Pin
thrakazog20-Jan-12 12:05
thrakazog20-Jan-12 12:05 
I was working on a chunk of SQL in management studio. Finally got it to return the results I wanted. Then I converted it to a stored procedure, where it promptly stopped working. Upon tracking the bug down I found that SQL was handling Null variables differently in dynamic SQL vs my stored procedure.

I had this bit of code:
if (@Replace != '')
	set @MaterialNumber = @Replace


In dynamic SQL if @Replace was null, we did not enter the if block. In a stored procedure when @replace was null we entered the if block and set @MaterialNumber to null. WTF | :WTF:

To the best of my knowledge, this should never happen. Is this a bug in SQL Server or is there a setting hidden somewhere that could account for this difference?
Kill some time, play my game Hop Cheops[^]

AnswerRe: Null handling oddity Pin
Chris Meech20-Jan-12 13:42
Chris Meech20-Jan-12 13:42 
AnswerRe: Null handling oddity Pin
PIEBALDconsult20-Jan-12 15:29
mvePIEBALDconsult20-Jan-12 15:29 
GeneralRe: Null handling oddity Pin
thrakazog23-Jan-12 8:14
thrakazog23-Jan-12 8:14 
AnswerRe: Null handling oddity Pin
Jörgen Andersson21-Jan-12 1:37
professionalJörgen Andersson21-Jan-12 1:37 
AnswerRe: Null handling oddity Pin
Corporal Agarn23-Jan-12 5:09
professionalCorporal Agarn23-Jan-12 5:09 
GeneralRe: Null handling oddity Pin
thrakazog23-Jan-12 8:12
thrakazog23-Jan-12 8:12 
AnswerRe: Null handling oddity Pin
jschell23-Jan-12 8:33
jschell23-Jan-12 8:33 
GeneralRe: Null handling oddity Pin
thrakazog23-Jan-12 10:54
thrakazog23-Jan-12 10:54 
QuestionUser Group Membership Pin
eddieangel19-Jan-12 11:40
eddieangel19-Jan-12 11:40 
AnswerRe: User Group Membership Pin
Mycroft Holmes19-Jan-12 12:01
professionalMycroft Holmes19-Jan-12 12:01 
GeneralRe: User Group Membership Pin
eddieangel19-Jan-12 12:05
eddieangel19-Jan-12 12:05 
GeneralRe: User Group Membership Pin
Mycroft Holmes19-Jan-12 13:00
professionalMycroft Holmes19-Jan-12 13:00 
GeneralRe: User Group Membership Pin
eddieangel19-Jan-12 14:30
eddieangel19-Jan-12 14:30 
GeneralRe: User Group Membership Pin
Mycroft Holmes19-Jan-12 14:40
professionalMycroft Holmes19-Jan-12 14:40 
GeneralRe: User Group Membership Pin
eddieangel20-Jan-12 6:16
eddieangel20-Jan-12 6:16 
GeneralRe: User Group Membership Pin
eddieangel20-Jan-12 6:51
eddieangel20-Jan-12 6:51 
GeneralRe: User Group Membership Pin
Jörgen Andersson21-Jan-12 1:43
professionalJörgen Andersson21-Jan-12 1:43 

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.