Forum Replies Created

Viewing 10 posts - 1 through 10 (of 10 total)

  • RE: Database log file is full?

    - Add a second log file.

    - To find out what is filling the transaction log

    USE [DBNAME];

    DBCC OPENTRAN;

    - check log backups

    - if you have replication, check the log reader is running.

    -...

  • RE: Poor performance - SQL server 2012 standard edition

    Not a solution but something to look into...

    MERGE will request a HASH join. Run the following when the query is running to see how much memory it is requesting.

    SELECT...

  • RE: Reclaiming Free Space in Database

    You could add a new filegroup set the size you require. Then rebuild the index on the new filegroup (ON <<new filegroup>>) using ONLINE = ON, DROP_EXISTING = ON....

  • RE: Single Quotation Marks in SQL

    Michael R. OBrien Jr (1/2/2013)


    I guess I have never been a fan of triple quoting, I usually use CHAR(39) I find it is a lot easier to read for others:

    SELECT...

  • RE: Single Quotation Marks in SQL

    I agree, much tidier.

    EXEC ('SELECT ''O'' + CHAR(39) + ''Neal''')

  • RE: Moving Large Table to Different File Group

    Yes there can be performance benefits. Have a read of this article first though...

  • RE: Transactional publication with updatable subscriptions on SQL2012 release.

    From books online:

    The MERGE statement should not be used when using queued updating replication. The MERGE and queued updating trigger are not compatible. Replace the MERGE statement with an insert...

  • RE: Moving Large Table to Different File Group

    jayant-479472 (10/16/2008)


    how would we move a table without clustered index to a different filegroup ?

    To move a heap you would need to create a clustered index on the new filegroup...

  • RE: The Ratio

    For me it like a scene from the film Zulu... I'm massively outnumbered from an enemy with very blunt instruments. The odd one can shoot but normally misses.

    I have...

  • RE: Non-relational data and dynamic queries

    To give more context this is my table.

    CREATE TABLE [dbo].[LabelValues](

    [UserAccountID] [int] NOT NULL,

    [ContactID] [int] NOT NULL,

    [STRING1] [nvarchar](255) NULL,

    [STRING2] [nvarchar](255) NULL,

    [STRING3] [nvarchar](255) NULL,

    [STRING4] [nvarchar](255) NULL,

    [STRING5] [nvarchar](255) NULL,

    [STRING6] [nvarchar](255) NULL,

    [STRING7] [nvarchar](255)...

Viewing 10 posts - 1 through 10 (of 10 total)