Forum Replies Created

Viewing 15 posts - 301 through 315 (of 1,473 total)

  • RE: select query for only changed rows

    I just re-read it and I think you're right. *I'm* working with 2 way synchronization between a mobile device/server so I think I jumped to that conclusion a bit...

    Seth Phelabaum


    Consistency is only a virtue if you're not a screwup. 😉

    Links: How to Post Sample Data[/url] :: Running Totals[/url] :: Tally Table[/url] :: Cross Tabs/Pivots[/url] :: String Concatenation[/url]

  • RE: select query for only changed rows

    This is true. It will depend on your actual situation as to which is the more efficient method. It might be that copying a few extra rows that...

    Seth Phelabaum


    Consistency is only a virtue if you're not a screwup. 😉

    Links: How to Post Sample Data[/url] :: Running Totals[/url] :: Tally Table[/url] :: Cross Tabs/Pivots[/url] :: String Concatenation[/url]

  • RE: select query for only changed rows

    If you don't need to know the time the record changed, you just need to know *that* it changed, a timestamp column will serve the same purpose without the trigger.

    Seth Phelabaum


    Consistency is only a virtue if you're not a screwup. 😉

    Links: How to Post Sample Data[/url] :: Running Totals[/url] :: Tally Table[/url] :: Cross Tabs/Pivots[/url] :: String Concatenation[/url]

  • RE: Passing a List/Array Parameter to Procedure

    If you decide to go the Dynamic SQL Route (which is the easiest to implement from where you are now), make sure you keep injection in mind and code accordingly.

    Seth Phelabaum


    Consistency is only a virtue if you're not a screwup. 😉

    Links: How to Post Sample Data[/url] :: Running Totals[/url] :: Tally Table[/url] :: Cross Tabs/Pivots[/url] :: String Concatenation[/url]

  • RE: Inner join for three tables from two different servers

    Check out the COLLATE keyword in BOL.

    Also, you don't have any criteria linking these tables, so you're performaing a multi server cross join. Sounds dangerous.

    Seth Phelabaum


    Consistency is only a virtue if you're not a screwup. 😉

    Links: How to Post Sample Data[/url] :: Running Totals[/url] :: Tally Table[/url] :: Cross Tabs/Pivots[/url] :: String Concatenation[/url]

  • RE: Generate script for all objects in a database

    Looks like a permissions issue to me. Is the directory/user/etc you used when the script executed successfully the same as the ones you used when it failed?

    Seth Phelabaum


    Consistency is only a virtue if you're not a screwup. 😉

    Links: How to Post Sample Data[/url] :: Running Totals[/url] :: Tally Table[/url] :: Cross Tabs/Pivots[/url] :: String Concatenation[/url]

  • RE: Script to add or restore a user to all 50 store procedures

    This script will allow you to add a user to all the stored procedures that you choose at once:

    USE YourDatabase

    DECLARE @Namevarchar(150),

    @sqlvarchar(500)

    DECLARE Perm_Cursor CURSOR FOR

    SELECT [Name]

    FROM sysobjects

    WHERE xtype ='P' AND...

    Seth Phelabaum


    Consistency is only a virtue if you're not a screwup. 😉

    Links: How to Post Sample Data[/url] :: Running Totals[/url] :: Tally Table[/url] :: Cross Tabs/Pivots[/url] :: String Concatenation[/url]

  • RE: Tally Table - Splitted values

    I'm curious as to how you pulled up a 17 month old post. Doing a little housecleaning on the subscriptions?

    Seth Phelabaum


    Consistency is only a virtue if you're not a screwup. 😉

    Links: How to Post Sample Data[/url] :: Running Totals[/url] :: Tally Table[/url] :: Cross Tabs/Pivots[/url] :: String Concatenation[/url]

  • RE: error 8180 - statement could not be prepared

    Did you ever figure this one out George?

    Seth Phelabaum


    Consistency is only a virtue if you're not a screwup. 😉

    Links: How to Post Sample Data[/url] :: Running Totals[/url] :: Tally Table[/url] :: Cross Tabs/Pivots[/url] :: String Concatenation[/url]

  • RE: Enterprise Manager substitute for SQL 2005+

    Thousands... but not more than 2500 depending on versions and OS. (See my post above)

    Seth Phelabaum


    Consistency is only a virtue if you're not a screwup. 😉

    Links: How to Post Sample Data[/url] :: Running Totals[/url] :: Tally Table[/url] :: Cross Tabs/Pivots[/url] :: String Concatenation[/url]

  • RE: how to split a delimeted field value into rows

    In my standard comment headers I tend to add a specific phrase (like 'Not yet Optimized' or 'Needs Rewrite') when I'm not happy with how something works, or the method...

    Seth Phelabaum


    Consistency is only a virtue if you're not a screwup. 😉

    Links: How to Post Sample Data[/url] :: Running Totals[/url] :: Tally Table[/url] :: Cross Tabs/Pivots[/url] :: String Concatenation[/url]

  • RE: Enterprise Manager substitute for SQL 2005+

    Lowell (12/16/2009)


    Seth you could give LINQPad a try

    Awesome idea. I actually have LinqPad already, but I never considered using it for that. I mostly used it to try...

    Seth Phelabaum


    Consistency is only a virtue if you're not a screwup. 😉

    Links: How to Post Sample Data[/url] :: Running Totals[/url] :: Tally Table[/url] :: Cross Tabs/Pivots[/url] :: String Concatenation[/url]

  • RE: Enterprise Manager substitute for SQL 2005+

    I didn't even mention that the Object Explorer Details tab has another bug with multiple monitors where it puts your right click menu on your primary screen regardless of which...

    Seth Phelabaum


    Consistency is only a virtue if you're not a screwup. 😉

    Links: How to Post Sample Data[/url] :: Running Totals[/url] :: Tally Table[/url] :: Cross Tabs/Pivots[/url] :: String Concatenation[/url]

  • RE: Enterprise Manager substitute for SQL 2005+

    george sibbald (12/16/2009)


    persevere, you'll get used to it!

    :crying:

    Seth Phelabaum


    Consistency is only a virtue if you're not a screwup. 😉

    Links: How to Post Sample Data[/url] :: Running Totals[/url] :: Tally Table[/url] :: Cross Tabs/Pivots[/url] :: String Concatenation[/url]

  • RE: Try Success

    This is one of the old ways of doing things:

    DECLARE @Errorint

    --YourCode

    SET @Error = @@ERROR

    IF @Error = 0

    BEGIN

    --Success Code

    END

    ELSE

    BEGIN

    --Fail Code

    END

    It is very important that you set @Error after every single statement...

    Seth Phelabaum


    Consistency is only a virtue if you're not a screwup. 😉

    Links: How to Post Sample Data[/url] :: Running Totals[/url] :: Tally Table[/url] :: Cross Tabs/Pivots[/url] :: String Concatenation[/url]

Viewing 15 posts - 301 through 315 (of 1,473 total)