Forum Replies Created

Viewing 15 posts - 916 through 930 (of 5,502 total)

  • RE: Are the posted questions getting worse?

    Jack Corbett (10/1/2011)


    Hey guys I got some really cool news today. I was awarded MVP status!

    I just hope I can honor that award the way that all the MVP's...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: procedure

    You could also spend some time and google for some more hints. This is a common question and there are several solutions out there.



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: How to change query so that it does not have to group by the Unit ID column

    You might want to look into CROSS APPLY.

    Sounds like one possible solution to the problem.

    For details please follow the advice given by Lynn.



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Can I see which stored procedures are used in SSRS reports

    I guess the problem is not really caused by XQuery but rather by the values for the date variables: Both show the same date but the query will find no...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: pivot sql query help

    Or turn the pivot into a classic CrossTab (as described in the related link in my signature).

    It's much more flexible and seems to be faster, too.



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: How to loop columns of dynamic temporary table which is created inside storedprocedure in sql server 2005

    You mmight try to get the list of column names via the sys,columns table:

    SELECT name

    FROM sys.columns WHERE object_id=object_id('#temp')

    ORDER BY column_id

    But if you want to insert data...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Sql Server Agent producing different results then execution of a sp

    Usually, stuff like this is related to missing permissions, e.g. access to the file system.

    But without knowing what the sproc and SSIS package do, it's hard to tell.



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Help need for better query

    Depending on your definition of "week1" and the like, a classic CrossTab should do it. Have a look at the related article referenced in my signature.

    If you need further explanation,...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: pivot problem

    If you want to list a known number of languages, you could use the CrossTab method as described in the related link in my signature.

    In case you're trying to pivot...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: problem using ISDATE in a Function

    The only reference I have is BOL.

    Why the function return the data the way it does is beyond me.

    Regarding the function [fnDDMMYYYYHHMMSStoDate]:

    Wouldn't it be easier to simply use CONVERT...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Delete duplicate rows

    Depending on what you consider as "less data" you could use

    ROW_NUMBER() OVER (PARTITION BY Empid ORDER BY EmpName desc, City desc, nuumber desc)



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Are the posted questions getting worse?

    L' Eomot Inversé (9/21/2011)


    ...

    Difficult to disagree with that - but it could be worse, at least they aren't trying to use DB2.

    I don't know why I suddenly think about the...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Are the posted questions getting worse?

    Gianluca Sartori (9/21/2011)


    ...

    :-D:hehe:

    Today we had an Oracle consultant (BI systems engineer, not a DBA) in our offices and I was discussing some (very serious) issues with an Oracle database....



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Optimize this Query

    I think you can remove this block:

    OR A.[MESSAGE] LIKE '%[$][0-9] OFF%'

    OR A.[MESSAGE] LIKE '%[$][0-9][0-9] OFF%'

    OR A.[MESSAGE] LIKE '%[$][0-9][0-9][0-9] OFF%'

    OR A.[MESSAGE] LIKE '%[$][0-9].[0-9][0-9] OFF%'

    OR A.[MESSAGE] LIKE '%[$][0-9][0-9].[0-9][0-9] OFF%'

    OR A.[MESSAGE] LIKE '%[$][0-9][0-9][0-9].[0-9][0-9]...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Using TRY-CATCH with Multiple DELETE DMLs

    Why don't you use referential integrity (foreign key) with cascade delete?



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

Viewing 15 posts - 916 through 930 (of 5,502 total)