Viewing 15 posts - 6,931 through 6,945 (of 26,490 total)
Something like this:
with basedata as (
select
*, rn = row_number() over (order by part_no)
from dbo.voters
)
update basedata set
rec_num = rn;
Edit: Removed extra order by in CTE
March 14, 2014 at 12:44 pm
Before doing anything I just want to verify that you are actually using SQL Server 2000 (or older).
March 14, 2014 at 12:38 pm
dan-572483 (3/14/2014)
By April 24, or add SQL 2014 to your study regimen!
Let's make it clickable:
March 14, 2014 at 9:45 am
SQLRNNR (3/12/2014)
Lynn Pettis (3/12/2014)
william.rees.howells (3/12/2014)
March 12, 2014 at 6:03 pm
william.rees.howells (3/12/2014)
March 12, 2014 at 5:56 pm
william.rees.howells (3/12/2014)
March 12, 2014 at 5:19 pm
If any one has some free time this person could use some help. I don't have the free time at the moment.
http://www.sqlservercentral.com/Forums/Topic1549023-391-1.aspx
March 10, 2014 at 2:14 pm
Care to show us what you have tried to accomplish this task?
March 10, 2014 at 8:57 am
vinaya_2690 (3/10/2014)
March 10, 2014 at 7:21 am
Again, anything we say is just speculation. We don't have access to your server and the logs. You need to check the all the logs on the server...
March 9, 2014 at 8:44 am
It would help if you also posted the DDL for the tables used by the cross tab query in your stored procedure as well as sample data for those tables...
March 9, 2014 at 6:12 am
Funny how after 9 years of being on this site some people still need to be spoon fed.
March 8, 2014 at 9:06 pm
Jack Corbett (3/7/2014)
March 7, 2014 at 5:45 pm
First thing you may want to do is to look at the locks that are being taken in your testing. That may help you to answer your question.
March 7, 2014 at 12:16 pm
Viewing 15 posts - 6,931 through 6,945 (of 26,490 total)