Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

inserting into a not null field

$
0
0

Hello,

I'm doing a bulk data insert into a table that includes not nulls and for those fields the source table includes some data in that column that is null.  Is there away to have the script insert something like "n/a" or whatever if a null value occurs?

My insert looks something like:

[Id],1,[ParentCategoryID],1,[Name],[ShortDescription],[FullDescription],[AdminComment],1,1,0

and if say AdminComment was null I'd want to insert "n/a"

Thanks for any ideas,

Dave



Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>