Quantcast
Channel: THWACK: Discussion List - All Communities
Viewing all articles
Browse latest Browse all 16365

Pass var to text file - serv-u

$
0
0

e use serv-u events to fire off a OSQL command when a file is received.  The command looks something like this:

-S MyServer -U sa -P MyPWD -d Mydb -Q "EXEC dbo.MySproc @FileName = '$Filename'"

 

I have a bunch of users, so I want to put the above into a batch file.  That way if anything changes, such as we upgrade to a new SQL server like we're doing now, I don't have to edit every user.  I figured out the batch file part, that's easy of course, but not the part that passes the batch file the filename variable.  Does anyone know how I'd do that part - and have the batch file actually consume/use it?

 

We're using the latest version of serv-u, whatever version that is.  I can't tell but it says no update available.

 

Thanks in advance.


Viewing all articles
Browse latest Browse all 16365

Trending Articles



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