LucieLastic
Programmer
hi
I'm trying to import a spreadsheet. One of the columns has all text data with the odd blank cell and the appropriate field in the DB has a referential integrity constraint on it. For blank XL cells, I need a NULL to be inserted but sql server, I believe, is trying to import a blank string (ie ''), so the contraint fails. How can I force it to set it to NULL for blank cells?
I've also tried saving as CSV and importing that but I get the same problem.
MAny thanks
Lou
I'm trying to import a spreadsheet. One of the columns has all text data with the odd blank cell and the appropriate field in the DB has a referential integrity constraint on it. For blank XL cells, I need a NULL to be inserted but sql server, I believe, is trying to import a blank string (ie ''), so the contraint fails. How can I force it to set it to NULL for blank cells?
I've also tried saving as CSV and importing that but I get the same problem.
MAny thanks
Lou