How to run SQL Script from a particular folder using Command Prompt


To run SQL Script stored in a particular folder using Command Prompt:


REM - Run SQL Script to prepare the database environment

ECHO Preparing Databases...

SQLCMD -E -i C:\ETL_Solution\SetupFiles\Setup.sql


Comments

Popular posts from this blog

Calculating Age of the person in T-SQL

How to Troubleshoot Subscription issue in Reporting Services