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
 General SQL Server Forums
 New to SQL Server Programming
 New Record in SQL through Access

Author  Topic 

saltzmanjoelh
Starting Member

10 Posts

Posted - 2007-09-26 : 17:54:24
I have an Access db that has a linked table to a sql table. The sql table has a UniqueIdentifier field in it. How do I create a new record through access in that table and have the UNIQUEIDENTIFIER autogenerated?

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-09-26 : 17:56:04
Have the column default to NEWID().



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

saltzmanjoelh
Starting Member

10 Posts

Posted - 2007-09-26 : 18:12:13
PERFECT! THANKS!
Go to Top of Page
   

- Advertisement -