tags:

views:

35

answers:

1

Here's the caveat...

If you have a table that has a single column and that column happens to be an identity column with identity_insert turned OFF, is it still possible to write a T-SQL insert statement for this table?

+6  A: 

sure

use insert TableName default values

example

create table Test (id int identity not null)


insert Test default values

select * from Test
SQLMenace
Wow, who knew? :) Thanks for the answer. Much appreciated.
Hovito