There are actually a couple of ways to create a primary key with T-SQL. You can use the ALTER TABLE script to add a primary key to an existing table, or you can create a primary key as part of the table definition directly. There’s very little difference in the outcome. I’ll show you both […]
The post Database Fundamentals #28: Creating a Primary Key Using T-SQL appeared first on Grant Fritchey.