Click here to Skip to main content
15,895,606 members
Home / Discussions / Database
   

Database

 
AnswerRe: SQL CE license question... Pin
Richard MacCutchan11-Jul-12 23:32
mveRichard MacCutchan11-Jul-12 23:32 
AnswerRe: SQL CE license question... Pin
Eddy Vluggen11-Jul-12 23:33
professionalEddy Vluggen11-Jul-12 23:33 
QuestionHELP SQL WILDCARDS PROB Pin
EjojAnrodac11-Jul-12 7:31
EjojAnrodac11-Jul-12 7:31 
AnswerRe: HELP SQL WILDCARDS PROB Pin
Luc Pattyn11-Jul-12 7:38
sitebuilderLuc Pattyn11-Jul-12 7:38 
GeneralMessage Closed Pin
11-Jul-12 7:41
EjojAnrodac11-Jul-12 7:41 
AnswerRe: HELP SQL WILDCARDS PROB Pin
Luc Pattyn11-Jul-12 7:45
sitebuilderLuc Pattyn11-Jul-12 7:45 
AnswerRe: HELP SQL WILDCARDS PROB Pin
jschell11-Jul-12 8:57
jschell11-Jul-12 8:57 
AnswerRe: HELP SQL WILDCARDS PROB Pin
Corporal Agarn11-Jul-12 9:26
professionalCorporal Agarn11-Jul-12 9:26 
GeneralRe: HELP SQL WILDCARDS PROB Pin
R. Giskard Reventlov11-Jul-12 9:45
R. Giskard Reventlov11-Jul-12 9:45 
QuestionGenerate Excel From SQL Server Pin
vvashishta11-Jul-12 3:36
vvashishta11-Jul-12 3:36 
AnswerRe: Generate Excel From SQL Server Pin
gonzalezmail1980h11-Jul-12 4:57
gonzalezmail1980h11-Jul-12 4:57 
GeneralTrigger for execute exe When inserted a receode to table Pin
hiran12310-Jul-12 23:09
hiran12310-Jul-12 23:09 
AnswerRe: Trigger for execute exe When inserted a receode to table Pin
Mycroft Holmes11-Jul-12 1:07
professionalMycroft Holmes11-Jul-12 1:07 
AnswerRe: Trigger for execute exe When inserted a receode to table Pin
hiran12311-Jul-12 16:38
hiran12311-Jul-12 16:38 
GeneralRe: Trigger for execute exe When inserted a receode to table Pin
Mycroft Holmes11-Jul-12 17:57
professionalMycroft Holmes11-Jul-12 17:57 
RantParameter Sniffing Pin
Mycroft Holmes10-Jul-12 15:11
professionalMycroft Holmes10-Jul-12 15:11 
This is not a question!

I got caught by the parameter sniffing[^] issue the other day, it was a classic, I had built a proc that takes in 2 parameters, applies then against a bunch of tables and inserts the results into a table variable to return a summary of the current periods processing status.

It worked perfectly during development, ran like a dream (<10sec) during the first round of UAT. Then it spat the dummy and I was getting a timeout from the service, the procedure ran perfectly from SSMS but from the client it just refused to returned a result.

3 hours later having exhausted all probabilities the little bulb clicked, USE LOCAL VARIABLES. I was applying the parameters multiple times to different tables, by changing to a pair of local variables this fixed the problem, classic case of parameter sniffing.
Never underestimate the power of human stupidity
RAH

QuestionOracle SQL Developer Pin
vanikanc10-Jul-12 9:42
vanikanc10-Jul-12 9:42 
AnswerRe: Oracle SQL Developer Pin
Michael Potter10-Jul-12 11:56
Michael Potter10-Jul-12 11:56 
AnswerRe: Oracle SQL Developer Pin
David Mujica11-Jul-12 2:39
David Mujica11-Jul-12 2:39 
GeneralRe: Oracle SQL Developer Pin
vanikanc11-Jul-12 3:01
vanikanc11-Jul-12 3:01 
GeneralRe: Oracle SQL Developer Pin
David Mujica11-Jul-12 3:09
David Mujica11-Jul-12 3:09 
GeneralIntroduce integerity in the database Pin
sharp_k9-Jul-12 4:08
sharp_k9-Jul-12 4:08 
GeneralRe: Introduce integerity in the database Pin
Wayne Gaylard9-Jul-12 4:24
professionalWayne Gaylard9-Jul-12 4:24 
GeneralRe: Introduce integerity in the database Pin
sharp_k9-Jul-12 4:47
sharp_k9-Jul-12 4:47 
GeneralRe: Introduce integerity in the database Pin
jschell9-Jul-12 12:26
jschell9-Jul-12 12:26 

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.