Forum Replies Created

Viewing 15 posts - 286 through 300 (of 1,034 total)

  • RE: Views and changes

    steve.casey (7/2/2012)


    Some of us have to work with versions older than SS 2005, you know! DROP...CREATE is the only one that will work with ALL versions.

    That's what I thought...



    --Mark Tassin
    MCITP - SQL Server DBA
    Proud member of the Anti-RBAR alliance.
    For help with Performance click this link[/url]
    For tips on how to post your problems[/url]

  • RE: Index defaults 2

    jfogel (6/27/2012)


    Toreador (6/27/2012)


    tim.bearne (6/27/2012)


    The fact that you can get an index made to support a completely different constraint is irrelevant.

    No it's not. Just because it is created for one purpose...



    --Mark Tassin
    MCITP - SQL Server DBA
    Proud member of the Anti-RBAR alliance.
    For help with Performance click this link[/url]
    For tips on how to post your problems[/url]

  • RE: Index defaults 2

    Thomas Abraham (6/27/2012)


    I too went for the #2 choice. I knew that the no index would be created automatically, but thought ..... same as the others. At least I have...



    --Mark Tassin
    MCITP - SQL Server DBA
    Proud member of the Anti-RBAR alliance.
    For help with Performance click this link[/url]
    For tips on how to post your problems[/url]

  • RE: Index defaults 2

    Koen Verbeeck (6/27/2012)


    vk-kirov (6/26/2012)


    I can create an index by means of a unique constraint:

    CREATE TABLE dbo.QotD

    (KeyColumn int NOT NULL PRIMARY KEY,

    RefColumn int NOT...



    --Mark Tassin
    MCITP - SQL Server DBA
    Proud member of the Anti-RBAR alliance.
    For help with Performance click this link[/url]
    For tips on how to post your problems[/url]

  • RE: Finding a future date in a calendar

    Dangit Jeff!

    I like your approach better, but I came up with this... which invariably is very similar to yours...

    First we turn it into a calendar table,...



    --Mark Tassin
    MCITP - SQL Server DBA
    Proud member of the Anti-RBAR alliance.
    For help with Performance click this link[/url]
    For tips on how to post your problems[/url]

  • RE: Production issue with varchar(max)

    Have to agree with Lynn.... there's a lot of potential issues that could cause truncation, but without the procedure source, table create scripts, and data population scripts so we can...



    --Mark Tassin
    MCITP - SQL Server DBA
    Proud member of the Anti-RBAR alliance.
    For help with Performance click this link[/url]
    For tips on how to post your problems[/url]

  • RE: NULLIF 1

    Nice easy and straightforward.

    Fully reading the question, and waiting until after lunch probably helped me. Never seem to get even the easy ones right in the morning.



    --Mark Tassin
    MCITP - SQL Server DBA
    Proud member of the Anti-RBAR alliance.
    For help with Performance click this link[/url]
    For tips on how to post your problems[/url]

  • RE: Temp Tables

    sestell1 (6/25/2012)


    mtassin (6/25/2012)


    If that is the case, are there any advantages to using a table variable over a temp table? I know the optimizer treats them very differently... ...



    --Mark Tassin
    MCITP - SQL Server DBA
    Proud member of the Anti-RBAR alliance.
    For help with Performance click this link[/url]
    For tips on how to post your problems[/url]

  • RE: Temp Tables

    sestell1 (6/25/2012)


    I was always under the impression that there was no reason to create indexes on table variables because they exist only in memory.

    Does anyone know what SQL Server actually...



    --Mark Tassin
    MCITP - SQL Server DBA
    Proud member of the Anti-RBAR alliance.
    For help with Performance click this link[/url]
    For tips on how to post your problems[/url]

  • RE: Restricting updates?

    Put me in the group who'd use CASE.

    But Hugo's explanation was definitely worth the trip into the discussion of the question. 🙂



    --Mark Tassin
    MCITP - SQL Server DBA
    Proud member of the Anti-RBAR alliance.
    For help with Performance click this link[/url]
    For tips on how to post your problems[/url]

  • RE: disk space 90% full...

    If your version of sQL supports it, look at using Backup Compression to make your backups smaller.

    Make sure to clean up your backups and only keep a small number of...



    --Mark Tassin
    MCITP - SQL Server DBA
    Proud member of the Anti-RBAR alliance.
    For help with Performance click this link[/url]
    For tips on how to post your problems[/url]

  • RE: "sp_send_dbmail" Vs "SSIS Send Email Task"

    I agree with the sp_send_dbmail proponents. At least that way you can query msdb.dbo.sysmail_allitems to see the status of the emails if something goes wrong. There are also...



    --Mark Tassin
    MCITP - SQL Server DBA
    Proud member of the Anti-RBAR alliance.
    For help with Performance click this link[/url]
    For tips on how to post your problems[/url]

  • RE: Repairing with DBCC CHECKDB

    I got this right because my copy of Local Transact SQL Help says as does BOL

    ' database_name ' | database_id | 0

    Is the name or ID of the database...



    --Mark Tassin
    MCITP - SQL Server DBA
    Proud member of the Anti-RBAR alliance.
    For help with Performance click this link[/url]
    For tips on how to post your problems[/url]

  • RE: How to update/roll back two tables in separate Dbs from Stored Procedure

    I'm with Lynn. If the databases are on separate servers, Peer-to-Peer Transactional replication seems the easiest way to do it. You can just publish the necessary trables and...



    --Mark Tassin
    MCITP - SQL Server DBA
    Proud member of the Anti-RBAR alliance.
    For help with Performance click this link[/url]
    For tips on how to post your problems[/url]

  • RE: How to update/roll back two tables in separate Dbs from Stored Procedure

    Are the databases on the same server?

    If so, transactions will stretch across them.

    If not... DTS can handle your needs.



    --Mark Tassin
    MCITP - SQL Server DBA
    Proud member of the Anti-RBAR alliance.
    For help with Performance click this link[/url]
    For tips on how to post your problems[/url]

Viewing 15 posts - 286 through 300 (of 1,034 total)