Forum Replies Created

Viewing 15 posts - 226 through 240 (of 709 total)

  • RE: Composite clustering key

    Simon E Doubt - Monday, February 27, 2017 2:54 PM

    We have a table that stores ~3 billion rows with...

    Eddie Wuerch
    MCM: SQL

  • RE: Find Stored Proc name from ObjectId in Profiler

    lmarkum - Friday, February 24, 2017 12:42 PM

    [...]
    update AGENTSTATUS set LASTRUNGMT = @P0 , MAIL = 0, VERSION_BUILD =...

    Eddie Wuerch
    MCM: SQL

  • RE: Script to list objects by file group

    Because each index in each object may be on a separate filegroup or partition scheme, drive your query off of sys.indexes, and join the data_space_id column to sys.filegroups.data_space_id.
    Here's one...

    Eddie Wuerch
    MCM: SQL

  • RE: Remove partitioning

    Indianrock - Tuesday, February 14, 2017 9:30 AM

    ALTER TABLE [dbo].[ACCOUNT_OWNERSHIP_DOC_SUMMARY] ADD CONSTRAINT [ACCOUNT_OWNERSHIP_DOC_SUMMARY_UC1] UNIQUE NONCLUSTERED
    (
        [CLIENT_ID] ASC,
        [ACCOUNT_ID] ASC,
        [OWNERSHIP_DOC_ID] ASC
    )

    If the index...

    Eddie Wuerch
    MCM: SQL

  • RE: Service broker trigger without xml

    TryingToLearn - Tuesday, February 14, 2017 10:29 AM

                  -- This line of code works: 
                  SET @messageBody =

    Eddie Wuerch
    MCM: SQL

  • RE: Identifying all the values in a column that can be cast as numeric(3,1) in SQL Server 2008R2

    So, you want numeric values greater than (-100) and less than 100:
    CREATE TABLE #testr (id int not null primary key, OrigVarchar varchar(7) NOT NULL);
    GO

    INSERT...

    Eddie Wuerch
    MCM: SQL

  • RE: Failover Cluster - Better option

    You give yourself far more flexibility by creating a single Windows Failover Cluster out of all four servers, and installing both FCIs on each of them. Are there any security...

    Eddie Wuerch
    MCM: SQL

  • RE: Is is possible put IF inside the WHERE statement

    servat - Thursday, January 26, 2017 10:46 PM

    I don't think that'll do what I want. Let me explain it a little differently....

    Eddie Wuerch
    MCM: SQL

  • RE: Is is possible put IF inside the WHERE statement

    servat - Thursday, January 26, 2017 10:05 PM

    How can I do something like this? 


    Select * FROM A
    WHERE
        If Status =...

    Eddie Wuerch
    MCM: SQL

  • RE: Database Corruption

    All of this is absolutely terrible advice, and can only make a bad situation worse:

    johnwalker10 (12/6/2016)


    > Detach SQL Server database and move your MDF to save location.

    > Create new...

    Eddie Wuerch
    MCM: SQL

  • RE: Incremental refresh and error recovery question

    Redesign the refresh to finish every night, no matter what.

    Instead of blast-refreshing all of the rows, do it in smaller, fully-COMMITted batches, walking each source table in some key...

    Eddie Wuerch
    MCM: SQL

  • RE: DBCC PAGE Not Returning Data Due to Arithmetic Overflow Error

    Page (1:2090354), slot 34 in object ID 1811133843, index ID 7, partition ID 72057594060275712...

    1. Index ID #7 is a non-clustered index. It contains copies of table data (the index keys),...

    Eddie Wuerch
    MCM: SQL

  • RE: Connection over VPN

    When you connected to your instance over the VPN with SSMS, did you ensure you are also using Named Pipes for communication, and not TCP/IP, so you're attempting the same...

    Eddie Wuerch
    MCM: SQL

  • RE: Full and T-log backups in two different shared path

    That will not break the transaction log chain, because you still have every transaction log backup you've taken. The oldest of them reside in one location, the newest reside in...

    Eddie Wuerch
    MCM: SQL

  • RE: Full and T-log backups in two different shared path

    Describe 'in two backup paths'.

    Are you backing up to two locations at the same time using the MIRROR TO keyword of the BACKUP command? If that's what you mean, then...

    Eddie Wuerch
    MCM: SQL

Viewing 15 posts - 226 through 240 (of 709 total)