sql server - Generate MSSQL database script using command line -



sql server - Generate MSSQL database script using command line -

i have database on server don't have rdp access. need create backup of data, stored procedure , functions of database on server. tried "generate script" fails saying there "transport layer error" occurred.

is there way can generate script of database on server using command line or other tool.

thanks

check if can utilize xp_cmdshell. if yes backup database , re-create bak file

use master exec xp_cmdshell 'copy c:\sqlbackup\db.bak \server2\backups\', no_output

sql-server database sql-server-2008 command-line backup

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -