SQL statement to insert record into table that has identity column?

后端 未结 4 1688
忘掉有多难
忘掉有多难 2021-01-24 10:02

I am attempting to insert a row manually into my SQL Server data table. This table has 5 columns, one identity and four data columns. I looked at this post, but when I run the s

4条回答
  •  生来不讨喜
    2021-01-24 10:29

    As some others have said, I'm thinking the second one should work for you, but if you're crashing the management studio when you run the query, whether it's broken or not, your problem is bigger than a malformed sql query.

    The studio shouldn't crash, even if you write some pretty awful sql...it should just give you an error message and move on. You might consider reinstalling the management studio if these kinds of errors are common for you.

提交回复
热议问题