Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 5123

Batch Files user/password v3

$
0
0

Hello,

My initial issue was inserting my passoword/username, which I resolved. Now my issue is running the query. Any suggestions?

Below is the code:

@echo off
color 2
cls
echo this code opens winsql, connects to the database using the user name and password. Then runs a query
"C:\Program Files (x86)\Synametrics Technologies\WinSQL\Winsql.exe" -dEDW_NZ_PROD01 -ua678930 -pWelcome1 "\\Scadfs1\retailops\Reporting\Gervais\JMora\Jason Work\SQL Query\DivisionDescription.sql"
pause

The code above opens the applications, inserts the username/password then opens the query.

Thanks


Viewing all articles
Browse latest Browse all 5123

Trending Articles



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