gtjr92
Programmer
- May 26, 2004
- 96
I have a scheduled job that runs a query and spools the sql file to a folder on another server. They are getting a new server that they want me to spool this file too, and moving it to a different domain than what my server is on.
I have a user name for that domain for the purposes of this forum I will call it newdomain.
I am sure this is easy but i am having a brain cramp.
How can i tell the bat file to use my other domains username and password. I know you can tell net use a password, but from my understanding that is only if the share itself is password protected.
I use scheduled tasks to run this job, and if i try to put my newdomain user name in password in the job it just comes back and says it could not verify my username and password.
Here is my bat file. Of course I changed all my information
[highlight]net use z:\\123.456.789.\folder_in\ /user:newdomain\username
''next line is line to run sql file
sqlplus sqlusername@testplus/TEST@d:\download\filename.sql [/highlight]
thanks for the help
I have a user name for that domain for the purposes of this forum I will call it newdomain.
I am sure this is easy but i am having a brain cramp.
How can i tell the bat file to use my other domains username and password. I know you can tell net use a password, but from my understanding that is only if the share itself is password protected.
I use scheduled tasks to run this job, and if i try to put my newdomain user name in password in the job it just comes back and says it could not verify my username and password.
Here is my bat file. Of course I changed all my information
[highlight]net use z:\\123.456.789.\folder_in\ /user:newdomain\username
''next line is line to run sql file
sqlplus sqlusername@testplus/TEST@d:\download\filename.sql [/highlight]
thanks for the help