Viewing 15 posts - 10,501 through 10,515 (of 15,374 total)
Another great article is here. http://www.sqlservercentral.com/articles/Performance/71549/%5B/url%5D
And for what it is worth the NOLOCK hint is not a magic go fast pill. It comes with a lot of other concerns, like...
October 4, 2012 at 10:16 am
SQLSACT (10/4/2012)
I understand that parameter sniffing is a good thing
It becomes a bad thing when the parameters used in the first execution of the Procedure are atypical to the...
October 4, 2012 at 9:38 am
Here is an example of doing this both ways:
First is the Delimited string method. The code for the DelimitedSplit8K function can be found at the link in my signature about...
October 4, 2012 at 9:32 am
What you need to do is either use a table valued parameter or change your datatype to a varchar and then split the variable inside the proc.
If your...
October 4, 2012 at 9:07 am
vijayarani87.s (10/4/2012)
Does anyone have idea about octopus deployment.....
Not to sound rude but have tried (insert your search engine of choice)???
October 4, 2012 at 7:58 am
L' Eomot Inversé (10/4/2012)
Sean Lange (10/3/2012)
... Isn't LIKE as good as >= for index seeks?!?
NO LIKE is not SARGable so you will get scans. It has to examine every row...
October 4, 2012 at 7:45 am
haiao2000 (10/3/2012)
And if you want to avoid the natural tendency to do some sort of looping to build your dynamic sql you can do something like this.
select 'insert YourNewTable select'...
October 4, 2012 at 7:28 am
These three payment methods have different data requirements:
1. Checks only need Payment Amount and Check Number (for our requirements).
2. ACH transactions only need Bank Name, Routing Number and Account...
October 3, 2012 at 2:18 pm
haiao2000 (10/3/2012)
SELECT COLUMN_NAME FROM SourceDbName.dbo.INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME='';
if you want to do all in sql, them you may have to build...
October 3, 2012 at 1:23 pm
jrichards54 (10/2/2012)
October 3, 2012 at 12:20 pm
surma.sql (10/3/2012)
Sean Lange (10/3/2012)
select *, ROW_NUMBER() over (PARTITION BY cStudentId Order by dtEnrollmentDate) as RowNum
from #temp1
ok, i got it.
But in my requirement, I insert the output to another table and...
October 3, 2012 at 12:16 pm
xoom (10/3/2012)
i have to solve the following problem. We used DoubleTake for the event of a disaster in SQL Server 2008 R2 environment. The prod database server is mirrored 1:1...
October 3, 2012 at 12:14 pm
select *, ROW_NUMBER() over (PARTITION BY cStudentId Order by dtEnrollmentDate) as RowNum
from #temp1
October 3, 2012 at 11:58 am
surma.sql (10/3/2012)
Sean Lange (10/3/2012)
This should do it.
ROW_NUMBER() over (PARTITION BY cStudentId, Order by tEnrollmentDate)
Thanks for Your reply
My question is,
Is it possible in SQL, I increment Row Number while i am...
October 3, 2012 at 11:54 am
This should do it.
ROW_NUMBER() over (PARTITION BY cStudentId, Order by tEnrollmentDate)
October 3, 2012 at 11:42 am
Viewing 15 posts - 10,501 through 10,515 (of 15,374 total)