May 21, 2015 at 1:07 am
Hi expert :),
I work with sql server 2008 on a database.
we have export schema and datas with the command export datas
click rigth on database => tasks => generate scripts => select all object => click advanced => select type of data to script => schema and data
Now we have a file with all datas and schema
That's perfect ...
But how i can insert the file in a other database ?
ok i can copy paste all datas in management studio and press f5 but when i do this the management studio fail because the size of the file is > 200 mega !!!!
Is there another solution ?
Thanks for your time and your knowledge
Christophe
May 26, 2015 at 1:49 pm
You can use SqlCmd utility from command line:
sqlcmd -S yourservername -i sqlscript.sql
May 26, 2015 at 3:21 pm
christophe.bernard 47659 (5/21/2015)
Hi expert :),I work with sql server 2008 on a database.
we have export schema and datas with the command export datas
click rigth on database => tasks => generate scripts => select all object => click advanced => select type of data to script => schema and data
Now we have a file with all datas and schema
That's perfect ...
But how i can insert the file in a other database ?
ok i can copy paste all datas in management studio and press f5 but when i do this the management studio fail because the size of the file is > 200 mega !!!!
Is there another solution ?
Thanks for your time and your knowledge
Christophe
Why not just do a backup and restore?
--Jeff Moden
Change is inevitable... Change for the better is not.
May 27, 2015 at 1:04 am
hi both,
thanks for your time ans your solution ..
sqlcmd work really fine thanks and very fast..
Why we do not a back up restore ..
i think that the back up restore take time prefer to my solution (export script => import script)
but now the script is very big (200 mo) and management studio when i open this script inside does not respond .. 🙂
well, thanks for your time guys
have a nice day
christophe
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply