Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 does ident_current() work for uniqueidentifer also

Author  Topic 

Halyal
Starting Member

1 Post

Posted - 2009-09-30 : 14:31:17
I have a table where uniqueidentifer is the primary key and is
generated with newid() in default value.
How do I get the last value generated.



Rajesh Halyal

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-09-30 : 15:46:46
You can't use the identity functions as you've found.

Generate the GUI first and put it into a variable. Use the variable to insert into your table.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page
   

- Advertisement -