Forum Replies Created

Viewing 15 posts - 3,421 through 3,435 (of 5,393 total)

  • RE: Using db_backupoperator role and adding new databases

    I don't see any way other than creating a proxy account. Why is it a problem for you?

    -- Gianluca Sartori

  • RE: Help writing a SQL - to capture counts

    I'm afraid it's overcomplicating a simple problem, anyway you could also try this:

    ;WITH FlagCounts AS (

    SELECT IND1, IND2, IND3, IND4, IND5, IND6, IND7, IND8, COUNT(*) AS CNT,

    ROW_NUMBER() OVER(ORDER BY (SELECT...

    -- Gianluca Sartori

  • RE: Help writing a SQL - to capture counts

    WITH INDS AS (

    SELECT CAST(IND1 AS int) AS IND1,

    CAST(IND2 AS int) AS IND2,

    CAST(IND3 AS int) AS IND3,

    CAST(IND4 AS int) AS IND4,

    CAST(IND5 AS int) AS IND5,

    CAST(IND6 AS int) AS IND6,

    CAST(IND7 AS...

    -- Gianluca Sartori

  • RE: Flawed Trigger in SQL 2005

    Well, amazing! 😀

    5 posters = 5 different versions of the same trigger!

    You should be able to merge everything into a single trigger...;-)

    -- Gianluca Sartori

  • RE: Flawed Trigger in SQL 2005

    I see a couple of issues:

    1) You're assuming only one row gets inserted/updated at a time.

    2) You're assigning to variables read from the source table (Table1) and not from the...

    -- Gianluca Sartori

  • RE: Delete tables script

    a_ud (2/23/2011)


    1) How do you 'create' a delete a given table/s script? I mean the 1-2-3 steps process. Once done, how do you add new tables to that script, so...

    -- Gianluca Sartori

  • RE: Tempdb not shrinking

    SKYBVI (2/22/2011)


    Gianluca Sartori (2/22/2011)


    Tempdb contains internal objects such as spools and hashes used by the queries.

    The space allocated by those objects cannot be reclaimed, even if not used.

    To reclaim that...

    -- Gianluca Sartori

  • RE: Tempdb not shrinking

    Marco V (2/22/2011)


    DBCC FREEPROCCACHE

    GO

    Please note that DBCC FREEPROCCACHE flushes the procedure cache for the whole server. Depending on your database load, your server could suffer for some minutes due to...

    -- Gianluca Sartori

  • RE: Tempdb not shrinking

    Tempdb contains internal objects such as spools and hashes used by the queries.

    The space allocated by those objects cannot be reclaimed, even if not used.

    To reclaim that space, in SQL...

    -- Gianluca Sartori

  • RE: help to find 90% records.

    abhas (2/21/2011)


    hi Sartori,

    table structure is same as presented in below link.

    http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/c93b2856-76c4-4348-9d46-8a60612c3b23.mspx?mfr=true

    and i want to display servernames as mentioned condition above post.

    thank u

    Abhas

    I guess you have to extract top 50 rows...

    -- Gianluca Sartori

  • RE: Sub Query problem

    Your query can't execute, it is missing some GROUP BY clauses.

    Can you post some sample data from the tables involved?

    -- Gianluca Sartori

  • RE: Are the posted questions getting worse?

    Grant Fritchey (2/21/2011)


    And this post makes 10,000 points. On to getting 10,000 posts.

    Figured I'd break the threshold on The Thread.

    Congratulations, Grant!

    -- Gianluca Sartori

  • RE: help to find 90% records.

    top 50 records from average of top 90% records

    Top by what? Can you post table creation script, some sample data and the expected results?

    -- Gianluca Sartori

  • RE: generating sequential number in sql 2000

    I suppose you mean a replacement for ROW_NUMBER function in SQL 2000, right?

    -- Gianluca Sartori

  • RE: Sub Query problem

    You're not saying where those results come from.

    Take a look at the article linked in my signature line. You will see how to improve your question and get a quicker...

    -- Gianluca Sartori

Viewing 15 posts - 3,421 through 3,435 (of 5,393 total)