Viewing 15 posts - 7,291 through 7,305 (of 13,469 total)
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
still easy to do via TSQL;
you can use the row_number() function to partition the data by those 8 columns.
wrap teh results of that with an outer select where rowNumberAlais =...
June 27, 2011 at 11:13 am
could your test server be low on disk space? maybe it's taking a long time trying to allocate disk space to the backup before it can ctually do the restore....
June 27, 2011 at 10:55 am
why not just use a set base operation regardless,and exclude anything that might duplicate? by joining the source to the original table, you can automatically exclude them, or find...
June 27, 2011 at 10:48 am
hodhod26 (6/27/2011)
June 27, 2011 at 8:11 am

yeah, when i look at powershell at first, i have no idea what it does or what it can do.
June 27, 2011 at 7:40 am
pure syntax issue...the OUTPUT...INTO goes BEFORE the FROM:
Delete t
Output Deleted.TableTID,
Deleted.Value1,
Deleted.Value2
Into...
June 27, 2011 at 7:30 am
oh lookie: you can do it in powershell as well:
i searched powershell read application log...looks a little easier to do:
# query an event (Filter Equal)
# you could change the...
June 27, 2011 at 7:24 am
Viewing 15 posts - 7,291 through 7,305 (of 13,469 total)