Remote start the batch file

Hi,
Most of the times i have to kick off a batch file to change the accounts under which SQL agent runs. For this i need to RDP the server itself and run the batch file from the CMD.
I understand that, i can create a schedule.bat file to earlier time and just kick off that schedule bat file manually from the local system through CMD to run the intended batch file on the destination server. So, i wont need to RDP the server itself.
Do i make sense? Can you help me on it?
Thanks

Hello,
Your question is really not "SQL Server XML" related, the topic of this forum.
I don't understand why you have to change frequently the SQL Server Agent Service account? You could use Proxy account for the different Jobs instead.
Olaf Helper
[ Blog] [ Xing] [ MVP]

Similar Messages

  • DOS Window automaticly close after execute the batch file and start the App

    Hi, all. I have made a batch file. When I start the batch file, thet is getting open the DOS Window. But I want close the DOS Window after Start the Application, or make it hidden?
    It is possible?
    Thanks all:-)
    Nikolay

    Hi,my batch file is:
    java -cp File.jar Desktop
    I have tryaed with:
    javaw -cp File.jar Desktop , but it dosn�t close the DOS Window.
    Have I make anythink false?
    Thanks.
    Nikolay

  • How can  i know the location of rmiregistry throught the batch file ????!!!

    i would make a batch file that launch my java application wich uses RMIREGISTRY, is there a way to know the path where is located the "rmiregistry file" -if it exists- in the client machine throught the batch file in order to start it befor to launching the application.?

    Yes, ask the person who was responsible for making the RMI registry run.

  • How do I start a batch file and check it's status?

    First of all I want to say I am a beginner in Java.
    I am working on an server side application that starts batch files (for database filling). After it starts the batch (.bat) file it has to check the status and write it in the database.
    The problem I run into the combination of starting the batch and checking the status.
    So far I have found out that I can run the batch file with starting up an process with the Runtime.getRuntime().exec command. What I haven't found out if it is posible to check the status of this proces in any way.
    I also found out that with using thread commands like isAlive I can check the status of a thread, but not of an process. And I understand that a thread can't start an batch file.
    So could anyone please help me on my way. Am I doing something wrong? Is any of the above info incorrect? Or am I on the right way? And if I am on the right way what is the next step? Thanx in advance.

    The problem I run into the combination of starting
    the batch and checking the status.The exit status is only set onve the process completes.
    process.exitStatus()
    I also found out that with using thread commands like
    isAlive I can check the status of a thread, but not
    of an process. And I understand that a thread can't
    start an batch file.Everything run in java is run from a thread. Only threads can do anything. The default thread is called "main"

  • Sqlplus commands from withing the batch files

    Hi,
    Oracle9.2
    need to execute the sqlplus commands from withing the batch files without calling the .sql file separately . How it can be done ?
    With Regards

    Hi,
    I agree with you...but as per your solution, after all you are calling the .sql file while connecting the sqlplus which I know already and I don't want to execute the sql commands like that as shown below.
    For example:
    for shut down the database and starting it again .sql files will be called as shown below
    Note: shutdown.sql file will contain simple database shutdown command.
    sqlplus -s "sys/%password%@%tnsname% as sysdba" @D:\shutdown_db.sql
    and again for restarting the db i will perform as below
    sqlplus -s "sys/%password%@%tnsname% as sysdba" @D:\start_db.sql
    But I want to get it executed directly from the DOS batch file.
    The thing is I want to execute this both the above database commands from the batch file itself without calling the .sql files separately as shown above.
    is it possible, so how it can be done ?
    Regards
    Edited by: user640001 on Feb 9, 2011 9:53 PM

  • How to schedule the Batch file to run from task scheduler

    Hello Everyone,
    I have a batch file which kills the wscript.exe process, I am doing this manually, I need to schedule this batch file to run from task scheduler whenever the process wscript.exe reaches to specific numbers,  i.e if the wscript.exe process count in task
    manager reaches to 30,  the task schedular should execute this batch file,
    Is there a way to do so.
    dibu

    Hi,
    àI need to schedule
    this batch file to run from task scheduler whenever the process wscript.exe reaches to specific numbers.
    As I know, it will not help you to achieve this target via Scheduled Task. When configure Scheduled Task, there
    seems no Trigger option that help you specify this condition (process counts reaches to specific numbers) to trigger the batch file.
    You could consider that improve this batch file. Adding the
    Check function to the script will be a better option. For script issue, you can post it in the
    Official Scripting Guys Forum. I believe we will get a better assistance there.
    If any update, please feel free to let me know.
    Best regards,
    Justin Gu

  • How we can create the batch file to download the data in from URL in ssis

    hi,
    any one help on one the below requirement.
    i have to create one batch file to download the report(reports is in csv format) from URL...
    requirement should be like this...
    1. we have some reports is there in the URL..
    2.when ever we execute the url, the report should be download and save it to the local folder.
    3. this requirement i have to write in the batch file
    should any one let me know how we can create the batch file for the above requirement.

    Hi Priya.N,
    If you use SQL Server Reporting Services for reporting, you can use Visakh’s suggestion to create a script file which calls Reporting Services Web Service to render a report in CSV format and save a batch file to the destination folder, and then create a
    batch file to run the rs.exe utility which can executes the .rss script file. For more information, please see:
    Report Server Web Service
    ReportExecutionService.Render Method
    rs Utility (rs.exe) (SSRS)
    If you use other reporting tools, it depends on the reporting functionality and this requirement may be not achieved.
    Regards,
    Mike Yin
    TechNet Community Support

  • Execution of a batch file fails if the batch file has a date

    Hi All,
    I have a batch file which copies files from one folder to another based on the date condition( if the files are modified or created today copy them). Below is my code
    set curr_date=%DATE:~4,2%/%DATE:~7,2%/%DATE:~10,4% & XCOPY \\cambosnapp01\FileTransfers\InboundToHomesite\NICB\Entities \\cambosnapp01\Claims\Analytics\NICB\CurrentAlerts/d:%curr_date%
    This batch file runs fine if i run it manually, but i want to run this in an ssis package, i am using an execute process task and in the executable i gave the location of this batch file, and if i run the package it fails.However if i just exclude the last
    date thing from the batch file and run the below one it runs fine.
    set curr_date=%DATE:~4,2%/%DATE:~7,2%/%DATE:~10,4% & XCOPY \\cambosnapp01\FileTransfers\InboundToHomesite\NICB\Entities \\cambosnapp01\Claims\Analytics\NICB\CurrentAlerts/d
    But this batch file would copy all the files which i dont need. I only want to copy the new files and thats the reason i use the date in the end but for some reason it fails.
    Can someone please help me with any suggestions on this?
    Please let me know if you have any questions or if i am still unclear.
    Thanks

    What is the error you are getting?
    Why don't you want to use the FileSystem task that is parameter driven?
    Running the bat file manually vs as a package has a difference.
    Do you run it while the package is in development (via SSDT)?
    You only gave the bat file, but how did you set your task in SSIS not.
    Arthur
    MyBlog
    Twitter

  • How to run the batch files

    Hi Experts,
    I am trying to implement automatic cache purging every day at specified time and i created txt file with SApurge All cache() and created bat file with nqcmd -q Analyticsweb -u username -p password -s (txt file location).
    Now i want to run this bat file daily at specified time with out executing manually may i know how to run the batch file at specified time .
    Thanks,

    There is task type as command in workflow manager if you want you can go for that during the load
    nqcmd -d "AnalyticsWeb" -u Administrator -p Administrator -s "D:\PowerCenter8.1.1\server\infa_shared\SrcFiles\1_BIPurgeCache.txt"
    Check these urls
    http://docs.oracle.com/cd/E12103_01/books/AnySched/AnySched_Scripts3.html
    http://deliverbi.blogspot.com/2011/12/purge-all-cache-from-dashboard.html

  • "Windows could not start the offline files service on local computer. Error 3: The system cannot find the path specified"

    Using Windows 8.1 Pro on Toshiba Satellite i7 Laptop with 8Gb Ram
    After upgrade from Windows 8 Pro to 8.1 Pro, the Offline Files/CSC service refuses to start and gives the error message:
    "Windows could not start the offline files service on local computer. Error 3: The system cannot find the path specified"
    Before the upgrade, offline files worked fine... how do I re-enable offline files?

      I had a similar issue -  couldn't make any files available offline.
    I found that the offline folder service would not start
    This was because the CSC permission were totally screwed.  I had to take ownership of each folder and file, one by one, then grant everyone full access.
    then delete the full contents of the CSC folder
    format the CSC database using the registry fix then reboot
    in control panel, disable the offline files,  reboot, then re-enable.  and now its working :)
    2hrs to resolve this, with grateful thanks to this thread and some others.
    damn windows8

  • Commands within the batch file?

    Is there any way to enter commands directly into the batch file which will take effect on the java application?
    For example within the java application, there is a method "reload()" and to call that method you can type "reboot" and press enter in the batch file, is that possible? Thanks.

    I run my java application with a file (run.bat) (windows xp).
    @echo off
    title Stanyer's 503 (server)
    cd bin
    java -Xmx1024m net.stanyer.server 43594
    pauseSo basically, it runs in a cmd box.

  • Can we run the batch file using simple java application

    Hello sir,
    we want to run the batch file using simple java application. i tried with some example, we run the exe files but not batch file.
    Runtime r = Runtime.getRuntime();
    r.exec("D:\\jboss\\bin\\run.bat");
    My application is server will run when we run the java appliation.
    any suggestion? plz give me the solutions

    yes you can run html file
    WEB.SHOW_DOCUMENT is a built-in that is used in Forms to call URL from a Web Form. It works much like the similar way that a link on an HTML page works and it takes two arguments, one is URL and second one is TARGET, in your case use following.
    WEB.SHOW_DOCUMENT('http://channas.iil.informatics.lk:8890/forms/frmservlet?config=abc.html', '_blank');
    Hope this will work for you
    Abbas

  • Remotely starting the CMS server using a SSH script in a Unix environment.

    Is it possible to remotely start a CMS server using a shell script which starts an SSH session and runs the startservers command asin the command below:
    ssh -o ConnectionAttempts=2 -o ConnectTimeout=10 -l boadmin huxd0226 '/opt/BO/boxir2/bobje/startservers'
    The command securely logs into the server (huxd0226) and runs the command described in single quotes.
    the CMS server actually appears to start but then dies inexplicably and displays no errors in the trace logs. The full log file is displayed below:-
    Timestamp ProcessID ThreadID Message
    Thu Sep 18 10:59:05 2008 913548 1 (wireobinit.cpp:97): trace messa
    ge: Creating the shared CWireObject::PropertyNameMap
    Thu Sep 18 10:59:05 2008 913548 1 (wireobinit.cpp:119): trace mess
    age: Setting static property map
    Thu Sep 18 10:59:05 2008 913548 1 (wireobinit.cpp:126): trace mess
    age: CWireObject::InitializeStaticPropertyMap() - reference count: 1
    Thu Sep 18 10:59:05 2008 913548 1 Log: level=3 cat=1 msg=35100 p=C
    entral Management Server started
    Thu Sep 18 10:59:05 2008 913548 1 trace message: SIServerControlle
    r::run: Before initialize
    Thu Sep 18 10:59:05 2008 913548 1 (sidaemon.cpp:416): trace messag
    e: SUNIXDaemon::init: starting
    Thu Sep 18 10:59:05 2008 913548 1 trace message: SUNIXDaemon::init
    : redirecting stdio to /dev/null
    Thu Sep 18 10:59:05 2008 913548 1 (sidaemon.cpp:209): trace messag
    e: installing fg terminiation handler
    Thu Sep 18 10:59:05 2008 913548 1 (sidaemon.cpp:220): trace messag
    e: installing abnormal sys handler
    Thu Sep 18 10:59:05 2008 913548 1 (sidaemon.cpp:506): trace messag
    e: SUNIXDaemon::init: finished
    Thu Sep 18 10:59:12 2008 913548 1 trace message: GetClockSequenceU
    pdater: Getting clock sequence updater
    Thu Sep 18 10:59:13 2008 913548 1 trace message: SSimpleBuffer::lo
    adFromFile: calling mmap(): fileName[/opt/BO/boxir2/bobje/enterprise115/aix_rs60
    00/sqlrule.llr], lFileLength47132, fd10
    Thu Sep 18 10:59:13 2008 913548 1 trace message: SSimpleBuffer::lo
    adFromFile: calling mmap(): fileName[/opt/BO/boxir2/bobje/enterprise115/aix_rs60
    00/sqlrule.dfa], lFileLength26824, fd10
    Thu Sep 18 10:59:14 2008 913548 1 trace message: Loading: database
    subsystem: db2databasesubsystem
    This is exactly the same as a normal manual startup of the CMS server except it dies at the loading of the db2databasesubsystem section.
    Business Objects is patched to Fix Pack 3.6 and is clustered in a HACMP environment. It is a requirement that when the DB2 database fails, shortly after restarting it can automatically start the Business Objects services remotely.
    SSH will work if the command is entered manually from within a secured session, but it is only when automated that the failure occurs. Does anyone have an idea on why this is happening and whether it is in fact possible ?

    we're going to run into deep offtopic if we continue that line ))
    But I believe there is a big push to get the forum format actualy working this time.

  • Executing the batch file from SQL Server Agent job

    Hi - I have a simple batch file (.bat) which connects the SFTP server and drop the files to location machine.  When I run the .bat file manually its working fine but when I schedule it in SQL Agent its keep on running and never shows success message. 
    Could you please tell me how can i resolve it.  Its very urgent for me.
    thanks

    If you trust this host, enter "y" to add the key to
    PuTTY's cache and carry on connecting.
    If you want to carry on connecting just once, without
    adding the key to the cache, enter "n".
    If you do not trust this host, press Return to abandon the
    connection.
    Store key in cache? (y/n) Remote working directory is /
    When you connect via putty you get prompted to accept a key in interactive mode. At this point your batch file is waiting for someone to type in y or n.  
    Try running putty in batch mode to get around this.
    http://the.earth.li/~sgtatham/putty/0.52/htmldoc/Chapter6.html#6.1.8
    6.1.8 -batch: avoid interactive prompts
    If you use the -batch option, PSFTP will never give an interactive prompt while establishing the connection. If the server's host key
    is invalid, for example (see section 2.2), then the connection will simply be abandoned instead of asking you what to do next.
    This may help PSFTP's behaviour when it is used in automated scripts: using -batch, if something goes wrong at connection time, the batch
    job will fail rather than hang.

  • How to install and start the adapter(FILE)

    hi,
    when i checked in RWB for the  adapters which are INSTALLED and STARTED adapters it's displaying all adapters except FILE adapter .
      I need to known whether this adpater is installed or installed and started ,if the case then how to install and start the adapter

    Hi Nandan,
    if above is the case as i mentioned in previous response then,
    You need to download the latest SAP BASIS 6.40 or 7.0 ".tpz file" (as per you service pack) from service.sap.com. Then you need to put this in the import directory:
    <b>\usr\sap\<your system-id>\SYS\global\xi\repository_server\import\importedFiles</b>
    Now go to
    <b>IR>Tools>Import design Objects, you will find the .tpz file which you down loaded. Import this and refresh your cache.</b>
    P.S This is the exact path in market placehttps://websmp205.sap-ag.de/~form/handler?_APP=00200682500000001943&_EVENT=SEARCH&HIDE=&SEARCH_SPAT=X&SEARCH_BPAT=X&SEARCH_CD=X&SEARCH_P=X&SEARCH_PV=X&SEARCH_C=X&SEARCH_CV=X&SEARCH_TA=&SEARCH_V=&HIDE_EXPERT_SEARCH=X&SEARCH_MAX_RESULT=20
    Regards,
    Sarvesh

Maybe you are looking for

  • How to show statistics of main item and related items with less filter?

    Hi experts, Have any of you come thro' similar requirements before? To show the statistics of a main item in different aspect in a document and show the comparison of this item in a particular aspect with other related items as inputted at prompt. Yo

  • Another Failed CS5 Install in Windows 7

    I have seen many users post similar problems as mine. The StartSrvice fails then the certain values aren't set in the database that lead to fatal SQL errors. The thing is CS5 had been installed  and running on this same machine before. I simply had t

  • Improper use of prop node?

    Hey folks,  I dealing with some property nodes that don't seem to be functional... I was wondering if you guys have dealt with this or if there's something I'm doing wrong. I'll attach a png of the case that executes the code in quiestion. Probing th

  • Problems with pay monthly installments for Photoshop and Illustrator

    Every time I open Adobe Illustrator and Phtoshop me that there were problems with the payment of the monthly installments of these two software. But I have checked and everything is in order. So why do these messages? To this day I still have 27 days

  • OS X :: Mac Trash Bin Deletes Files Automatically?

    How i can stop the automaticall empty trash? when i move a file to trsh , i recieve the massage from the finder asked me the password, thereafter, i do Ok , then the file move to trash, when i open the trash i found it empty automatically