Viewing 15 posts - 7,276 through 7,290 (of 13,460 total)
Krasavita (6/28/2011)
Can some one help me how to create provider.Thank you
can you explain what you mean? do you mean adding ODBC providers to your SQL instance? like adding Oracle, DB2...
June 28, 2011 at 7:52 am
Bliar thanks for posting what you found back; I updated my post, and PM'd Gianluca to make him aware of what you found;
I'm sure that this will help someone else...
June 28, 2011 at 7:35 am
something like this? i leave it to you to decide teh datediff period of time....i chose hours, you can change to days
/*--Results
rw ...
June 28, 2011 at 7:19 am
June 28, 2011 at 7:04 am
another way to avoid the parameter sniffing is to use local variables as well: here's another example to consider.
CREATE PROCEDURE AVOIDSNIFFING(@Param1 int=0,@Param2 datetime = NULL)
AS
DECLARE @localParam1 int,
...
June 28, 2011 at 6:39 am
opc.three is right; I've done something similar with console apps and xp_cmdshell, as well as CLR.
no matter how you do it, it's outside of SQL...so it doesnt belong inside a...
June 28, 2011 at 6:35 am
with 17 parameters, no doubt most of them are optional....and might have default values? sounds like parameter sniffing...fast in SSMS with static values, compiled is slow.
search for "parameter sniffing" here...
June 28, 2011 at 6:23 am
yep i think muthukkumaran Kaliyamoorthy nailed it; someones in the database...maybe even you in the same or another SSMS window.
ALTER DATABASE MyDB
SET SINGLE_USER WITH ROLLBACK IMMEDIATE
June 28, 2011 at 6:15 am
opc.three (6/27/2011)
Seriously, WTF is that? 😛
I have no idea, and neither did the original poster;that's what i thought was so funny; i know it's a tool, but I cannot even...
June 27, 2011 at 3:18 pm
asm1212 (6/27/2011)
That did it for me! Just for giggles: Can you explain that Row Number function and OVER PARTITION BY clause as it relates to these...
June 27, 2011 at 1:35 pm
jbhauser (6/27/2011)
June 27, 2011 at 11:45 am
the WITh clause is a newer, fancy way of creating a temporary table...it's valid only for the next statement after the closing parentesis of the WITH;
so it's like saying CREATE...
June 27, 2011 at 11:34 am
oh yeah, that inner join:
inner join [MWLWEB].[dbo].[MWL_XY_Coordinates] Coord
if that join has more than one record for any thing it's joining to, you could get mulitple rows....so if there are...
June 27, 2011 at 11:29 am
you've got two SELECTS witha UNION, but only one of the selects have a WHERE clause...could that be it?
SELECT
[ToID] AS [ID],
[Origin City] AS [City],...
June 27, 2011 at 11:26 am
Viewing 15 posts - 7,276 through 7,290 (of 13,460 total)