Solved

ISQL on remote server

Posted on 2004-08-20
1
354 Views
Last Modified: 2012-05-05
I have a .bat file that runs an isql command. How can I set it up to run on the server from a client machine? Right now it's set up to run.
here is what the file looks like
C:\PROGRA~1\MICROS~3\80\tools\binn\isql -h-1 -U useraccount -P  "whatever" -S server -d live -Q" set nocount on delete from scheme.stock insert into scheme.stock select * from scheme.stock2"

 
0
Comment
Question by:ClintN
1 Comment
 
LVL 9

Accepted Solution

by:
SoftEng007 earned 250 total points
ID: 11857352
use sql agent.

make this query a sql job.

then have your isql bat file exec sp_startjob 'job name here'
the job will run on the remote server.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question