Forum Replies Created

Viewing 15 posts - 691 through 705 (of 3,232 total)

  • RE: Join tables by matching this month data and previous month data

    Well, it looks to me like you have not taken into account your requirement for the Month-1 logic. To produce the results you've shown with your sample data, it...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Join tables by matching this month data and previous month data

    So what would you expect the results to be with your sample data? Which rows do you want the query to return?

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Cancel Query Rollback

    Like Gail said, you'll have to wait it out.

    Gail,

    I too was wondering if the instance was already restarted, but not sure if recovery was being confused with ROLLBACK status...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Join tables by matching this month data and previous month data

    So given the sample data you've provided, what would your expected result set look like?

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Join tables by matching this month data and previous month data

    What data type are your tables using for ref_date? Is it integer as shown (bad practice) or datetime?

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Cancel Query Rollback

    The only way to stop it from continuing is to shut down SQL Server. I would strongly advise against this. The recovery is performing the necessary steps to...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Verify integrity of SQL Server startup files?

    Permissions for anyone accessing these files directly for modification would be handled at the file system level. There is no audit. The system security plan should document the...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Join tables by matching this month data and previous month data

    It is a little unclear what you are asking for. I see you are new to SSC as well. Please read through the article in my signature line....

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: How to use script task to check if file exists without knowing filename

    I assume then that you have your send mail task set up in the OnError event handler? That would work as well.

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Optimization for Update statement

    Well, I would typically use a JOIN for this, but it's realy hard to give you any advice when we have no idea how these tables are related.

    Can...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Weird behaviour with Execute SQL Parameter mapping

    What data type is User::RUN_STATUS?

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Bulk Insert getting failed

    From BOL:

    Requires INSERT and ADMINISTER BULK OPERATIONS permissions. Additionally, ALTER TABLE permission is required if one or more of the following is true:

    Constraints exist and the CHECK_CONSTRAINTS option is not...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Can I change database context with if-then statment and variable?

    Your code works fine for me. That is, if I change the DB names to be actual names in my SQL instance and fix the typo in your second...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: How to use script task to check if file exists without knowing filename

    Instead using a script task prior to your For Each Loop Container, here's what I'd do:

    1. Create a package level variable called FileCount (type int).

    2. Add a step...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: query syntax question/help

    SELECT SUM(CASE WHEN RequiredCompletionDays - NumberOfDays < 0 THEN 1 ELSE 0 END) as NegativeVarianceCount

    FROM ........

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

Viewing 15 posts - 691 through 705 (of 3,232 total)