Forum Replies Created

Viewing 15 posts - 2,941 through 2,955 (of 7,187 total)

  • RE: Data Flow Task working very slow due to left join in source

    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...

  • RE: Happy Thanksgiving 2015

    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

  • RE: deleted table scope

    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...

  • RE: Data collection

    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...

  • RE: Executing SQL JOB with Parameter

    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

  • RE: Trigger to update old ad new values

    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...

  • RE: Trigger to update old ad new values

    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...

  • RE: Data collection

    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. ...

  • RE: Data collection

    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

  • RE: set nocount on

    Please will you post the whole query, redacted or obfuscated as necessary?

    Thanks

    John

  • RE: set nocount on

    If you run the exact same query in a query window, do you get a row count in the Messages pane?

    John

  • RE: Issue with SQL IF statements

    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...

  • RE: Data collection

    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. ...

  • RE: Queryquestion

    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...

  • RE: Queryquestion

    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...

Viewing 15 posts - 2,941 through 2,955 (of 7,187 total)