Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Incrementing the Primary Key
Message
From
30/04/2002 09:23:59
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Title:
Incrementing the Primary Key
Miscellaneous
Thread ID:
00650812
Message ID:
00650812
Views:
56
Hello Group,

The table with the next unique primary key value is on a remote server that I am linked to. To run a select statement to get the next primary key I would use
SELECT iNextUnique
FROM [Audat].[testcareercenter].[dbo].nsuniq
WHERE tablename = 'Studemo'

How do I get the next unique primary key from with in a stored procedure and after I increment it how do I put the next unique value into the nsuniq table on the remote server.

Thanks
Jim
Next
Reply
Map
View

Click here to load this message in the networking platform