Viewing 15 posts - 9,871 through 9,885 (of 18,926 total)
I'll forward this thread to the site manager.
In the meanwhile, what would forbid you from doing this in the license?
May 11, 2007 at 6:14 pm
Is this technic any better than simply using sp_recompile?
May 11, 2007 at 6:13 pm
You can always offer it up to someone on this forum that can't afford one and is having a big problem... that happens at least once or twice a month...
May 11, 2007 at 5:51 pm
But if you keep at it you might lose it in the first few months of answering questions here... like I did.
May 11, 2007 at 5:50 pm
No offence but this title is a little bit harder than that to lose
.
May 11, 2007 at 5:41 pm
Sql server caches the plan based on the first set of input parameters you send. If you sent an unlikely set of parameters, then the server may have saved an optimized...
May 11, 2007 at 5:40 pm
NP, I had plenty of oversights like this one in the past... too bad you had to waste a ticket for this one.
May 11, 2007 at 5:35 pm
Dude it's the same code. I've not tested this but I'm pretty sure it will work :
Declare @NSQL AS NVarchar(4000)
DECLARE @Return AS INT
set @NSQL =...
May 11, 2007 at 3:16 pm
Unless available... You'd have to audit this information daily / hourly or howver-ly with a job so you can be sure to catch them all. A snapshot every 3 months...
May 11, 2007 at 9:56 am
ALTER TABLE #TMPTest ADD [NewCol] INT >> or change the colname altogether.
I'll submitt to you that the real column name is most likely a reserved keyqord...
May 11, 2007 at 6:41 am
That should give you an idea of where to start with sp_execsql :
IF @NewLogSize IS NOT NULL
BEGIN
SET @SizeTooSmall = 0
SET @NSQL = 'SELECT @SizeTooSmall = COUNT(*) FROM ['...
May 11, 2007 at 5:27 am
It works for remote queries too?
Do you have restrictions such has you must have the linked server setup?
May 11, 2007 at 4:36 am
I think you'll have to do a workaround and run this with some sort of script that gets the return value (using openrowset or openquery), then selects that return value...
May 11, 2007 at 4:17 am
If the output needs to change for all ids, but that all ids are repeated quite often you may have an option (this is assuming that the function really takes...
May 11, 2007 at 4:13 am
There's much more to parameter sniffing than that.
This can also be related to your problem.
http://www.sqlservercentral.com/columnists/bkelley/procedurecache.asp
Try making a copy of the input parameters to local variables and then using those...
May 10, 2007 at 7:27 pm
Viewing 15 posts - 9,871 through 9,885 (of 18,926 total)