Viewing 15 posts - 2,941 through 2,955 (of 7,187 total)
Have you tested the individual components of the flow to see where the bottleneck is? How long does it take to run the query locally? How long does...
November 26, 2015 at 4:08 am
Larnu (11/26/2015)
Unless I'm doing something funny, when I run D, I actually get 27/11/2015. Just me?
Possibly. I get 2013-11-28 00:00:00.000.
John
November 26, 2015 at 3:41 am
Yes, I suppose that so long as your trigger doesn't cause itself to fire again, you should be OK. I wouldn't swear to that, though - you'll want to...
November 26, 2015 at 3:06 am
No cursors? Why not? You're looping through 100 servers, so even if you don't have an explicit cursor, the effect is going to be the same. This...
November 26, 2015 at 2:15 am
You can't pass a parameter to a job. Can I ask why you're reluctant to create a stored procedure? That would be the normal way of doing it.
John
November 25, 2015 at 4:27 am
You're doing this the wrong way. First, stop using sysobjects, which is provided for backwards compatibility with SQL Server 2000 only. Second, why do you need to use...
November 25, 2015 at 3:57 am
It's not clear what your requirement is, but since up UPDATE statement is effectively a DELETE followed by an INSERT, you'll need to query both the Inserted and Deleted virtual...
November 25, 2015 at 3:28 am
sqlcmd is nothing but a utility that runs SQL scripts. If it doesn't meet your requirement, please provide more information on that requirement and the reason for it. ...
November 24, 2015 at 7:21 am
No. If you're going to do it regularly, create an SSIS package or do it with the sqlcmd utility. You can run either of those from a job.
John
November 24, 2015 at 6:20 am
Please will you post the whole query, redacted or obfuscated as necessary?
Thanks
John
November 24, 2015 at 5:27 am
If you run the exact same query in a query window, do you get a row count in the Messages pane?
John
November 24, 2015 at 4:46 am
Jon
This sounds fairly easy, but you haven't provided us enough information. Please post a CREATE TABLE script for each table involved, sample data in the form of INSERT statements...
November 24, 2015 at 4:43 am
There's two ways I'd recommend:
(1) Set up a Central Management Server (CMS) in SSMS and then register all the servers in your list in a group under the CMS. ...
November 24, 2015 at 4:41 am
You've got half a dozen "database" keywords in the second half of your query. What are they for? Run your query in a query window to check that...
November 23, 2015 at 8:26 am
That's not the same query you posted earlier. What is "loo" - is it a linked server? If you're querying a remote server then the four-part naming convention...
November 23, 2015 at 4:37 am
Viewing 15 posts - 2,941 through 2,955 (of 7,187 total)