Forum Replies Created

Viewing 15 posts - 7,381 through 7,395 (of 8,760 total)

  • RE: High value of work files and Work table

    WhiteLotus (8/19/2014)


    Yes I use SOLARWIND to monitor SQL Performance and It shows that Workfiles Created/Sec and Worktables created /sec are in CRITICAL status.

    I guess the threshold is a configured value...

  • RE: Need unique number for groups of records

    CELKO (8/19/2014)


    This is called a hash function. You can Google it or get a book on freshman computing, or data structures.

    Out of curiosity, isn't this a slight contradiction on...

  • RE: Query Help

    Here is a very well performing solution which adds a covering filtered index, simply blazing fast.;-) Even without the index it is still more than three times faster than previous...

  • RE: Matching the value after using STUFF

    dwain.c (8/24/2014)


    Maybe I'm missing something here but I think there's no reason to construct a delimited list at all.

    SELECT a.CVID, a.JobNoticeID, IsMatch=CASE WHEN b.JobNoticeID IS NOT NULL THEN 1 ELSE...

  • RE: PIVOT

    Steve Jones - SSC Editor (8/24/2014)


    Added "functions" to the QotD, though I think you're being a bit pedantic, Tom.

    That's an understatement if I ever seen one:-D

    😎

  • RE: Question regarding the difference between two different ways to populate a new table in TSQL

    TomThomson (8/24/2014)


    Jeff Moden (8/23/2014)


    There's nothing wrong with challenging a DA when it comes to performance

    up to there I agree with you 100%

    because, and with absolutely no malice in my...

  • RE: comlex query (order time record changes)

    Here is yet another solution, similar to Lutz's apart from the grouping. Tends to be slightly quicker on small sets.

    😎

    USE tempdb;

    GO

    create table #test (name nvarchar (10),point_of_time datetime)

    insert #test (name,point_of_time)

    select 'd','2014-08-19...

  • RE: TSQL to create Excel 2013 file

    vinu512 (8/24/2014)


    LutzM (8/24/2014)


    What permission does the user have who's running that code?

    Based on MS Technet

    Only members of the sysadmin fixed server role can execute sp_OASetProperty.

    If you're not a member of...

  • RE: PIVOT

    Since you wrote such a long post Tom, I guess you really got it wrong:-P

    😎

    BTW thanks for the question Steve.

  • RE: TSQL to create Excel 2013 file

    vinu512 (8/24/2014)


    Eirikur Eiriksson (8/24/2014)


    vinu512 (8/24/2014)


    Eirikur Eiriksson (8/24/2014)


    Further on Lutz's question, what is the output of the code in your initial post? Note that all the sp_OA* procedure return 0 if...

  • RE: comlex query (order time record changes)

    Here is a quick code demonstrating the grouping of the set, not a solution but should get you started. BTW, Itzik Ben-Gan and Dwain Camps have written excellent articles on...

  • RE: Query Help

    JackTimber (8/24/2014)


    Hi Eirikur ,

    Actually i was trying at my end and due to slow internet connectivity downtown, i was not able reply to you.

    Thanks for the solution :-).

    I got a...

  • RE: TSQL to create Excel 2013 file

    vinu512 (8/24/2014)


    Eirikur Eiriksson (8/24/2014)


    Further on Lutz's question, what is the output of the code in your initial post? Note that all the sp_OA* procedure return 0 if successful, otherwise a...

  • RE: TSQL to create Excel 2013 file

    Further on Lutz's question, what is the output of the code in your initial post? Note that all the sp_OA* procedure return 0 if successful, otherwise a non-zero value.

    😎

  • RE: TSQL to create Excel 2013 file

    Quick thought, looks to me that the only thing missing is to enable Ole Automation Procedures

    😎

    Enable Ole Automation Procedures in T-SQL

    sp_configure 'show advanced options', 1;

    GO

    RECONFIGURE;

    GO

    sp_configure 'Ole Automation Procedures', 1;

    GO

    RECONFIGURE;

    GO

Viewing 15 posts - 7,381 through 7,395 (of 8,760 total)