November 27, 2018 at 4:06 am
Hello,
I need to run a t-sql batch that will run a stored procedure procedure at a remote server.
But i don't want to create a linked server for this task.
Can you please advise?
Thanks in advance!
November 27, 2018 at 5:17 am
Have you considering using OPENROWSET or OPENDATASOURCE?
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
November 27, 2018 at 9:07 am
What are you going to do with the output from the procedure - and what does that procedure actually do? If you need this data in the local instance - but don't want to use a linked server - then SSIS or BCP or Powershell/SQLCMD would be options, as well as openrowset or opendatasource.
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
November 27, 2018 at 9:28 am
Hi,
I dont need the output.
The remote procedure just update a table in the remote instance.
How can i just execute the remote procedure without linked server?
November 27, 2018 at 9:46 am
89netanel - Tuesday, November 27, 2018 9:28 AMHi,I dont need the output.The remote procedure just update a table in the remote instance.How can i just execute the remote procedure without linked server?
Any scripting language that can run SQLCMD. Powershell scripts can be scheduled through SQL Agent.
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
November 28, 2018 at 11:05 am
How do you kick this off? Is a user doing this or does it need to trigger on some change in your existing database?
December 3, 2018 at 5:27 am
Hi,
It's a part of job (in server "a") and i want that the last step will start another job at server "b".
December 3, 2018 at 11:27 am
I'd add a PoSh step and use that to call a SQL Agent job on another server. That way I could actually see the execution metrics on both sides, with some semi-loose coupling.
December 3, 2018 at 11:28 am
This, Dba-StartSQLJob, will help
https://docs.dbatools.io/#Start-DbaAgentJob
Viewing 9 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic. Login to reply