I have been using SQL Server 2005 for a total of 2 days and am trying to
transfer table data from one server to another.
For whatever reason the original operator only gave us the DB in a BAK
file. The new server for security purpose won't accept that for a
restore unless it was made on their server.
I installed 2005 express and was able to restore on my computer. I was
then able to brute force recover the table 'structure' on the new server.
Now I need to recover the data however I need to do this with either a
brute force SQL insert or import a CSV.
So maybe if someone can help me with 2 questions. Is there a way to
output an SQL insert statement that includes the data? So far I only get
a template insert.
#2 I was able to get BCP and xp_cmdshell running but when I run the
samples I see on the net I only get the BCP syntax table in the pane,
which I think is telling me I am doing something wrong.
Here is the code I am using just to see if I can get it working.that I
got from the site:
http://www.simple-talk.com/sql/datab...ed-procedures/
**********************************************
declare @sql varchar(8000)
select @sql = 'bcp master..sysobjects out
c:\bcp\sysobjects.txt -c -t, -T -S'+ @@servername
exec master..xp_cmdshell @sql
***********************************************
Thanks in advance for any help that may come my way.
Scotty