Forum Replies Created

Viewing 15 posts - 2,146 through 2,160 (of 5,393 total)

  • RE: Quick Opinion on @@ROWCOUNT vs EXISTS

    SQL Kiwi (1/11/2012)


    None of them for the reasons already stated, plus option 2 also contains a race condition.

    DECLARE @MYCODE int = NULL

    DECLARE @ID int = NULL

    DECLARE @OUTPUT TABLE (ID int)

    MERGE...

    -- Gianluca Sartori

  • RE: SQL 2005 Standard Edition 64bit not using all available memory

    Something else is eating all the memory, apparently.

    What else is running on this box?

    Also, are you sure you're having memory issues? What's the PLE for this instance?

    -- Gianluca Sartori

  • RE: Returning results for the previous year

    I can't make your sample data for dbo.account fit into the table defintion you posted.

    I get "string or binary data would be truncated".

    -- Gianluca Sartori

  • RE: Returning results for the previous year

    Sachin 80451 (1/11/2012) - via Private Message


    does this help:

    CREATE TABLE dbo.account

    ( ID INT IDENTITY(1,1) PRIMARY KEY CLUSTERED,

    accountid Varchar(50),

    name varchar(50),

    Tpl_Traderred INT,

    ownerid uniqueidentifier

    )

    CREATE TABLE dbo.contact

    ( ownerid uniqueidentifier,

    Owneridname nvarchar(160)

    )

    CREATE...

    -- Gianluca Sartori

  • RE: Are the posted questions getting worse?

    Brandie Tarvin (1/11/2012)


    Gianluca Sartori (1/11/2012)


    WayneS (1/11/2012)


    Looks like the same hat to me.

    It is. I spent two hours with PhotoShop to put Roy's hat in Don's head. Don stole it from...

    -- Gianluca Sartori

  • RE: T-log file blows up during reindexing - how to prevent this?

    GilaMonster (1/11/2012)


    Rebuild only what needs rebuilding, not everything.

    You could use Ola Hallengren's[/url] maintenance solution for this particular point.

    It's a great script.

    -- Gianluca Sartori

  • RE: unable to select the column

    May be an issue with the column name.

    Have you tried enclosing the name in square brackets?

    SELECT [Column Name]

    FROM SomeTable

    -- Gianluca Sartori

  • RE: SQL BACK-UP TIP

    I did a quick Google search and I found a fix for your issue.

    Here you go:

    http://support.microsoft.com/kb/972828/en-us

    -- Gianluca Sartori

  • RE: SQL BACK-UP TIP

    Well, maybe the backup media got currupted in the network copy. Wouldn't be the first time.

    I don't know if you should blame RDP or not.

    Is the behaviour consistent?

    Is there any...

    -- Gianluca Sartori

  • RE: Are the posted questions getting worse?

    WayneS (1/11/2012)


    Looks like the same hat to me.

    It is. I spent two hours with PhotoShop to put Roy's hat in Don's head. 😛

    -- Gianluca Sartori

  • RE: SQL BACK-UP TIP

    Interesting.

    Care to link documentation for this bug?

    -- Gianluca Sartori

  • RE: .ldf deleted and now cant attach database

    Really?

    Do you understand what each step of that procedure does?

    If so, would you still recommend it?

    -- Gianluca Sartori

  • RE: Are the posted questions getting worse?

    Roy Ernest (1/11/2012)


    WayneS (1/10/2012)


    Roy Ernest (1/9/2012)


    I see lots of comments regarding post counts... Does everybody have a target? I have never thought about it at all.

    When I get time...

    -- Gianluca Sartori

  • RE: Returning results for the previous year

    Maybe, indented properly it's less confusing: 😉

    WITH MeaningfulCTEName AS (

    SELECT c.owneridname as BSC,

    z.Tpl_TotalGWP as Total2012,

    ...

    -- Gianluca Sartori

  • RE: Fix orphan users in SQL Server 2005

    Well, first of all you have to decide what to do with your orphaned users. Fix? Delete?

    For windows logins, you probably want to fix.

    For SQL logins, you have to decide....

    -- Gianluca Sartori

Viewing 15 posts - 2,146 through 2,160 (of 5,393 total)