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 |
|
AK
Starting Member
27 Posts |
Posted - 2004-10-22 : 12:11:32
|
| I'm looking to bulk insert into a table.At the same time I want to validate that the values being inserted are correct for some columns.I can apply a check constraint:alter table BLAH add constraint CK_gender check (Gender in ('M','F'))However, rather than the insert fail, I would rather the correct rows be inserted and exceptions generated for the incorrect rows.Is this possible?Thanks |
|
|
surefooted
Posting Yak Master
188 Posts |
Posted - 2004-10-22 : 12:27:16
|
You can use DTS to do that. Check out sqldts.com.-JonShould still be a "Starting Member" . |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2004-10-22 : 13:19:39
|
| I normally import data into a staging table that doesn't contain any constraints. I then use T-SQL to move the data from the staging table into my other tables. Using T-SQL I check for the things that I am interested in.Tara |
 |
|
|
|
|
|