Viewing 15 posts - 1 through 15 (of 1,824 total)
14 YEARS ago, my god! Always makes me feel warm inside when then notification of such a blast from the past lands in my inbox.
Maybe its time not just to...
August 4, 2024 at 9:33 am
As you have found out the for each loop does not provide ordering out of the box.
In the past i have used a script component to provide the ordered file...
September 15, 2015 at 12:18 am
OK, this effect is *probably* what you are seeing..
declare @x integer=0
while(@x<3)begin
declare @tab table
(
col1 integer
)
insert into...
February 13, 2015 at 3:08 pm
I wouldnt worry about deleting the data from a temp table or table var just let SQL Server clean up when it drop out of scope.
And, No the data does...
February 13, 2015 at 1:42 am
Use the OUTPUT clause and the $action column https://msdn.microsoft.com/en-us/library/ms177564.aspx you can then aggregate over that.
Note: I have found that it is a real performance hit and only do this if...
February 12, 2015 at 12:21 am
Velveeta22 (2/11/2015)
February 12, 2015 at 12:16 am
nwtsqlserv (2/11/2015)
February 11, 2015 at 6:46 am
Yup, cursors and any form of looping / iterative is to be avoided in SQL if at all possible ( and that advice hasn't changed since year dot )...
February 11, 2015 at 3:44 am
nwtsqlserv (2/11/2015)
Why is it wrong can you explain?I think there is nothing wrong in sending a comma seperated list.
Other than going through the unnecessary overhead of concatenating the string on...
February 11, 2015 at 3:26 am
Trace / SQLProfiler ( at least in 2014, cant test earlier ) has a RowCount column.
Create a serverside trace https://msdn.microsoft.com/en-us/library/cc293613.aspx
throw the results into a staging table and then filer...
February 11, 2015 at 3:16 am
Using a string is a bit wrong here,
Using a table valued parameter https://msdn.microsoft.com/en-us/library/bb510489.aspx would be a better solution in my book.
February 11, 2015 at 3:02 am
I dont understand why this cannot be a view ?
If you can SELECT from a table you can SELECT from a view.
Just make sure you ORDER BY on the SELECT...
December 28, 2014 at 4:43 am
Generated a connect item for this issue, i dont think it can be right...
November 5, 2013 at 9:19 am
Glad it not only me who thinks that this is weird 🙂
From :
select @@version
CREATE DATABASE AdventureWorks2012ss ON
( NAME = AdventureWorks2012_Data, FILENAME =
'C:\Data\AdventureWorks2012_data.ss' )
AS SNAPSHOT OF AdventureWorks2012;
go
set statistics io...
November 4, 2013 at 1:43 pm
Thanks Kevin,
This is on 3000, can see anything in the release notes that is directly related, applying CU3 now.
November 4, 2013 at 5:55 am
Viewing 15 posts - 1 through 15 (of 1,824 total)