Solved

ISQL on remote server

Posted on 2004-08-20
1
355 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

752 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