|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Importing null values
I'm importing data from a flat text file to an MS SQL database using VB6 ADO.
I have some fields that are empty. When I read them into a text string, they become empty strings, but I want them to show up in the db as <NULL> values. Is there a way to import the value as a null? Thanks! Doug |
|
#2
|
|||
|
|||
|
not sure how you could fix it on the import but you could always run a script to change blanks to nulls
update user_table set column = null where datalength(column) = 0 |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > Importing null values |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|