Lurking Code
  • Home
Sign in Subscribe

cast

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 course. However, in certain
Oct 27, 2016
Page 1 of 1
Lurking Code © 2025
Powered by Ghost