.PrimaryKey()
doesn't work on Alter.Table()
syntax root
#1438
Labels
.PrimaryKey()
doesn't work on Alter.Table()
syntax root
#1438
Describe the bug
.PrimaryKey()
doesn't work onAlter.Table()
syntax root..PrimaryKey()
does work onCreate.Table()
syntax root.This probably doesn't come up very often, but in my scenario, I was fixing a table someone created using natural keys and making it use synthetic keys created via
IDENTITY
auto-incrementing values.SQL Server does support the underlying syntax to make this easy:
To Reproduce
This generates the following SQL in SQL Profiler:
Expected behavior
A clear and concise description of what you expected to happen.
Information (please complete the following information):
Additional context
Sample .targets file:
The text was updated successfully, but these errors were encountered: