I am working with a SQL file which will update the data to a remote database. My SQL file is ok. Now the requirement is to run this SQL file from a command prompt. Is there any way to run this SQL file from command prompt or batch file?
I am using SQL Server 2012 and the SQL file is on my local machine.
Can anyone please help. Thanks in advance.
EDIT
I have tried to connect using the sqlcmd by my database connection failed