Click here to Skip to main content
15,881,172 members
Home / Discussions / Database
   

Database

 
AnswerRe: Job runs 3 times longer Pin
Mycroft Holmes28-Jul-18 14:14
professionalMycroft Holmes28-Jul-18 14:14 
I have run across this in stored procedures, one of the more esoteric problems was "parameter sniffing", basically it comes down to moving your input parameter values to local variables.

SQL
Create proc ....
@InputID int
as
Declare LocalID int
Set @LocalID = @InputID


And use @LocalID int the body of the procedure
Never underestimate the power of human stupidity
RAH

Questionjoin query Pin
Member 1391987420-Jul-18 4:53
Member 1391987420-Jul-18 4:53 
GeneralRe: join query Pin
Richard MacCutchan20-Jul-18 5:13
mveRichard MacCutchan20-Jul-18 5:13 
AnswerRe: join query Pin
Victor Nijegorodov20-Jul-18 7:59
Victor Nijegorodov20-Jul-18 7:59 
AnswerRe: join query Pin
Mycroft Holmes20-Jul-18 12:58
professionalMycroft Holmes20-Jul-18 12:58 
QuestionProblem sending email to group Pin
Danpeking10-Jul-18 23:33
Danpeking10-Jul-18 23:33 
AnswerRe: Problem sending email to group Pin
jschell16-Jul-18 16:12
jschell16-Jul-18 16:12 
GeneralRe: Problem sending email to group Pin
Danpeking16-Jul-18 22:42
Danpeking16-Jul-18 22:42 
QuestionReport server moved from one server to another server Pin
VK1910-Jul-18 8:04
VK1910-Jul-18 8:04 
QuestionSSIS Best Practice Regarding Storage Pin
#realJSOP27-Jun-18 3:52
mve#realJSOP27-Jun-18 3:52 
AnswerRe: SSIS Best Practice Regarding Storage Pin
Jörgen Andersson2-Jul-18 21:16
professionalJörgen Andersson2-Jul-18 21:16 
AnswerRe: SSIS Best Practice Regarding Storage Pin
Eddy Vluggen2-Jul-18 23:19
professionalEddy Vluggen2-Jul-18 23:19 
GeneralRe: SSIS Best Practice Regarding Storage Pin
#realJSOP3-Jul-18 3:08
mve#realJSOP3-Jul-18 3:08 
GeneralRe: SSIS Best Practice Regarding Storage Pin
Eddy Vluggen3-Jul-18 3:30
professionalEddy Vluggen3-Jul-18 3:30 
GeneralRe: SSIS Best Practice Regarding Storage Pin
#realJSOP3-Jul-18 5:13
mve#realJSOP3-Jul-18 5:13 
GeneralRe: SSIS Best Practice Regarding Storage Pin
Eddy Vluggen3-Jul-18 5:30
professionalEddy Vluggen3-Jul-18 5:30 
GeneralRe: SSIS Best Practice Regarding Storage Pin
#realJSOP3-Jul-18 5:43
mve#realJSOP3-Jul-18 5:43 
GeneralRe: SSIS Best Practice Regarding Storage Pin
Eddy Vluggen3-Jul-18 8:43
professionalEddy Vluggen3-Jul-18 8:43 
QuestionSSMS 2016 and SQL Server 2008R2 Pin
#realJSOP26-Jun-18 23:31
mve#realJSOP26-Jun-18 23:31 
AnswerRe: SSMS 2016 and SQL Server 2008R2 Pin
Eddy Vluggen26-Jun-18 23:50
professionalEddy Vluggen26-Jun-18 23:50 
AnswerRe: SSMS 2016 and SQL Server 2008R2 Pin
Victor Nijegorodov27-Jun-18 1:07
Victor Nijegorodov27-Jun-18 1:07 
AnswerRe: SSMS 2016 and SQL Server 2008R2 Pin
Richard Deeming27-Jun-18 1:35
mveRichard Deeming27-Jun-18 1:35 
GeneralRe: SSMS 2016 and SQL Server 2008R2 Pin
#realJSOP27-Jun-18 2:46
mve#realJSOP27-Jun-18 2:46 
QuestionSQL Server Agent Monitoring Pin
#realJSOP26-Jun-18 1:48
mve#realJSOP26-Jun-18 1:48 
QuestionCheck for object existence sql server 2012 is creating stored procedure as dynamic sql Pin
indian14325-Jun-18 10:36
indian14325-Jun-18 10:36 

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.