Forum Replies Created

Viewing 15 posts - 376 through 390 (of 902 total)

  • RE: Update All columns in table

    Demon correct, but you can use the $Action on the output statement will show the action that was performed for that row of data.

  • RE: Need to optimize query

    You might get away with changing this to use a Recursive CTE for the Parent Child Relationship rather than a Join to iterate through the tree.

    But I think the...

  • RE: Inputs Required!!

    No problem, let me know how it turns out.

  • RE: Inputs Required!!

    Its a nice script, I have a question wont scheduled Index Maintenance plans have the effect of showing up in the last_user_update?

    You could also change the nested CTE to simply...

  • RE: Stored procedure very slow execution

    You can do a targeted Update Statistics on single tables, the BoL should help lookup the UPDATE STATISTICS TSQL page.

    You can I beleive run an EXEC sp_updateStats in line as...

  • RE: CTE Vs temp table

    in a nutsehell yes, or at least look trying to split up the query so that its more manageable, I often find that complex queries will perform better if they...

  • RE: CTE Vs temp table

    Posted in error

  • RE: CTE Vs temp table

    purushottam2 (1/25/2013)


    Hi Grant,

    Thanks for your reply,

    Surely i will remove coalesce. Should i remove nolock, does it also affect my performance. Performance is our first priority.

    Personally I would have thought...

  • RE: Stored procedure very slow execution

    Sounds like a badplan query plan or a case of Paramater sniffing not selecting the optimal plan for the paramaters.

    Theres a simple way to test if its parameter sniffing,...

  • RE: Partition Tables

    read the MS white paper located here http://msdn.microsoft.com/en-us/library/dd578580(v=sql.100).aspx (Page 43) for details on the sliding window concept that it appears you want to introduce.

    As for moving the initial data over...

  • RE: Sql 2000 DB migration to SQL 2008

    Ignore, mis read at the end of the day.

  • RE: User defened Datatypes Default values.

    In the original example it may also because you have a round bracket instead of a square one at the end of the INTEGER key word.

    CREATE TYPE [XyzUDT] FROM...

  • RE: Need Alternate Solution

    I would personally format the data in the front end tool as you are more likley to have better functions (pre 2012) to handle this, such as the vb/c#/RS, FORMAT...

  • RE: Recommendations on "Sql Server Books" for newbies

    I've heard the Accidental DBA is a very good book and frequently mentioned on these forums, Kalen Delaney's SQL Server 2008 Internals is another good book, and worth having ont...

  • RE: Bug when aggregate in select?

    Michael,

    Sorry I meant the way you wrote the query, will over write the NULL value, if you do

    Select Sum(1)

    From Master.sys.objects

    where 1=0

    You will get a NULL cell returned, however...

Viewing 15 posts - 376 through 390 (of 902 total)