Lurking Code
  • Home
Sign in Subscribe

sql

A collection of 1 post
sql

Save GUIDs with hyphens in MSSQL

When you're saving a GUID to the database as a string value, you should save them with hyphens. That way, you can later cast is as a uniqueidentifier, which is SQL Server's native GUID type. If you can, you should save it as a uniqueidentifier of
27 Oct 2016
Page 1 of 1
Lurking Code © 2026
Powered by Ghost