Forum Replies Created

Viewing 15 posts - 316 through 330 (of 1,033 total)

  • RE: Master Keys

    Koen Verbeeck (5/25/2012)


    Went with my gut feeling on this and got it right.

    Great way to close the week.

    Same here... 🙂 it makes sense... a database cannot serve two masters...

  • RE: Logical Operators

    Toreador (5/24/2012)


    I can't believe that 21% have currently got it completely wrong, thinking that OR has precedence over AND! Hopefully they're just all misunderstanding what 'precedence' means 😉

    I think that's...

  • RE: Remove MSDTC from Cluster

    Well... you could always right click on the cluster and destroy it and then start over.

    I don't have a lab cluster to play with, so I'm just exploring our production...

  • RE: Remove MSDTC from Cluster

    Which version of Windows?

    If you setup a clustered file server, does it show back up?

  • RE: Transactions 2

    Hugo Kornelis (5/23/2012)


    mtassin (5/23/2012)


    Sorry, I worry more about what goes into or out of a table... the select statement at the end was an after thought. If the intention...

  • RE: Transactions 2

    Hugo Kornelis (5/23/2012)


    mtassin (5/23/2012)


    But this would also work as though xact_abort is on 🙂

    BEGIN try

    begin TRANSACTION

    INSERT qotd2(col1,col2,col3) VALUES (1,'x','some')

    INSERT qotd2(col1,col2,col3) VALUES (1,'Y','thing')

    INSERT qotd2(col1,col2,col3) VALUES (2,'Z','or other')

    COMMIT

    END TRY

    BEGIN CATCH

    ROLLBACK

    END catch

    SELECT *...

  • RE: Transactions 2

    Neil Thomas (5/23/2012)


    So that means that when xact_abort is set to off then

    BEGIN TRANSACTION

    ...

    COMMIT TRANSACTION

    does not do as expected.

    What's the default setting on a fresh install of SQL?

    But this...

  • RE: New features in SQL 2012, the contained database

    Divine Flame (5/23/2012)


    David in .AU (5/22/2012)


    Just wondering how this works if I need to join tables between different databases, or is that one of those cases where it is listed...

  • RE: Remove MSDTC from Cluster

    Can't you just delete it in Cluster Manager?

  • RE: New features in SQL 2012, the contained database

    Mike,

    The logins are technically within the database at this point. It makes the database portable from instance to instance without having to clone the users from the original database...

  • RE: add a total column to a pivot table

    Jeff Moden (5/20/2012)


    Sarsoura (5/20/2012)


    I would like to add a column which is the total scores for each student

    This is one of the many reasons why I prefer CROSS TABs to...

  • RE: Permission denied on the object sp_send_dbmail (but, not what you think)

    I think you could have also used

    @execute_query_database = Product_Database

    instead. it would have caused the sp_send_dbmail to change the database before executing the query.

  • RE: SSIS 2012 - Create Catalog

    SQL Kiwi (5/20/2012)


    Surprising answer. I had no clue so guessed (wrong).

    Same here... ah well 🙂 I figured it was either no pre-requisites or CLR... I had to guess...

  • RE: How to performance tune this Merge statement for our DW ETL process?

    You say ETL... are you using SSIS for the ETL?

    If so, you can sometimes outperform merge by using the constructs within SSIS to mimic a merge.

    Using a lookup to see...

  • RE: Select ... into statement generates different schemas between SQL2000 vs SQL2008R2

    Can you give us the actual schema of the tables in question plus some sample data?

    See the link in my signature for help.

Viewing 15 posts - 316 through 330 (of 1,033 total)