Click here to Skip to main content
15,887,214 members
Home / Discussions / Database
   

Database

 
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 
AnswerRe: Introduce integerity in the database Pin
Jörgen Andersson9-Jul-12 19:52
professionalJörgen Andersson9-Jul-12 19:52 
GeneralRe: Introduce integerity in the database Pin
R. Giskard Reventlov9-Jul-12 5:17
R. Giskard Reventlov9-Jul-12 5:17 
QuestionRe: Introduce integerity in the database Pin
Eddy Vluggen9-Jul-12 12:52
professionalEddy Vluggen9-Jul-12 12:52 
AnswerRe: Introduce integerity in the database Pin
R. Giskard Reventlov10-Jul-12 12:05
R. Giskard Reventlov10-Jul-12 12:05 
GeneralRe: Introduce integerity in the database Pin
PIEBALDconsult9-Jul-12 10:54
mvePIEBALDconsult9-Jul-12 10:54 
AnswerRe: Introduce integerity in the database Pin
Eddy Vluggen9-Jul-12 12:51
professionalEddy Vluggen9-Jul-12 12:51 
Questionwhy (Object reference not set to an instance of an object)?! Pin
Jassim Rahma8-Jul-12 21:48
Jassim Rahma8-Jul-12 21:48 
AnswerRe: why (Object reference not set to an instance of an object)?! Pin
Simon_Whale9-Jul-12 4:24
Simon_Whale9-Jul-12 4:24 

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.