I want to create a GUID and save it to the database.
In C #, a directive can be created using Guid.NewGuid (). This creates a 128 bit integer. SQL Server has a uniqueidentifier column that contains a huge hexadecimal number.
Is there a good / preferred way to make C # and SQL Server commands work well together? (i.e. create a manual using Guid.New (), and then save it to the database using nvarchar or some other field ... or create some kind of hexadecimal form number expected by SQL Server in other ways)
c # sql guid uniqueidentifier
Daniel Sep 16 '09 at 22:47 2009-09-16 22:47
source share