Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

backup database and run an SQL script

$
0
0

Hi,

Just want to verify whether I'll be doing the correct set of actions on a scheduled time. I was tasked to run an SQL script, btw, we're using Microsoft SQL Server. 2016 SP2. So what the vendor advised is to first back up the target db before running the script. 

So I just want to make sure that I'm doing the correct actions. In doing db backup, I will just need to right click on the db name and select Tasks > Backup. Unless there are other stuff that needs to be done besides just running the backup

For running the script, I've read some articles like 

opening a query window, paste the script and run or using sqlcmd using the sample below

sqlcmd -S .\SQLExpress -i SqlScript.sql

Thanks in advance for any suggestions/ideas

TECH-JEFF


Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>