Hi. I am trying to get some data from server1 into server2. They are on two different networks and I was thinking of going this route....
Create an insert script out of my data from server1:
then I was just going to copy/paste the results from that query into server2:
Create an insert script out of my data from server1:
Code:
select 'insert into mytable (icountyid, ibasecountyid)' + ' values (' + convert(varchar(20), icountyid) + ',' + isnull(convert(varchar(20), ibasecountyid), '') + ')'
from my table
then I was just going to copy/paste the results from that query into server2:
Code:
insert into tblcounties (icountyid, ibasecountyid) values (15772,)
[code]
My problem is with NULL data. The results from the query on server1 only leaves a blank spot in that field instead of actually using the word NULL... so my insert fails.
Is there another way I can do this? I also tried coalesce but that doesn't work either.
Thanks!