Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
RichardSteele
Posting Yak Master
160 Posts |
Posted - 2003-03-23 : 15:32:56
|
| Is there a way to insert a record into a table without explicitly stating its values? |
|
|
robvolk
Most Valuable Yak
15732 Posts |
Posted - 2003-03-23 : 15:37:23
|
| Sure, but it will insert a default value for any unspecified column. If the column is declared NOT NULL and doesn't have a default, then you can't insert the row unless you specify a value. |
 |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2003-03-23 : 16:13:54
|
| Or if you want all defaults use default valuese.g.create table deftest (i int null, j int not null default 1, id int identity)insert deftest default values==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
|
|
|