Forum Replies Created

Viewing 15 posts - 586 through 600 (of 5,502 total)

  • RE: Count delimiters in field containing CSV

    The solution below is based on the DelimitedSplit8K fuction referenced in my signature expanded by an additional output column

    Position = CHARINDEX(@pDelimiter,@pString,s.N1),

    This allows to check for the number of...



    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: Bulk insert - 0 row(s) affected

    Duplicate post. No replies please.

    Discussion already started here



    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: Bulk Insert - (0 row(s) affected)

    For a new line character you should use "\ n" without the space.



    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 needed

    It depends if you're looking for an additional criteria:

    WHERE CABWO_CABLE_WORK_ORDERS.WO_NO=[Please Enter WO Number] AND CABWO_CABLE_WORK_ORDERS.ISS_NO)=[Please Enter Issue Number] AND CABWO_WO_DETAILS.TITLE)=[Please Enter Title];

    or an alternative criteria:

    WHERE ((CABWO_CABLE_WORK_ORDERS.WO_NO=[Please Enter WO Number] AND...



    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: Concurrency Issue

    The question what isolation level to use depends on the expected result for a given scenario.

    In your case:

    What should App2 return as amount while App1 update the amount column from...



    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: Converting data of column into column name

    I'd use the CrossTab method as described in the related link in my signature.

    To apply the concep to your scenario, it would look something like

    SELECT

    MAX(CASE WHEN display_value='BROADCAST_2'THEN Param_value ELSE NULL...



    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: converting column data as column name

    Duplicate post. No replies please.

    Discussion already started here.



    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: Query Very Slow - Access 2010 upsize to SQL Server 2008 RTM

    I'd recommend to create the view at SQL Server level and tune that view. Once the view is tuned, link it to Access.

    A few checks to consider:

    Do you have a...



    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 Script Help....

    Great you found the solution.

    Would you mind sharing it so others might benefit? Remeber, it's a two-way street here 😉



    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: i NEED ONLY DATE IN MY REPORT

    Edit: complaint no longer valid. Immediately fixed by the OP. Well done!



    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: Select the most recent record closest to primary record date,tricky

    I guess the OUTER APPLY approach will return the data you're looking for:

    SELECT *

    FROM #temp1

    OUTER APPLY

    (

    SELECT TOP 1 *

    FROM #temp2

    WHERE ...



    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: Need help aggregate &count functions with date consideration

    What is the data type of EndDate and StartDate?



    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: Need help aggregate &count functions with date consideration

    Are you looking for a simple DATEDIFF() statement?

    SELECT CableBoxID,DATEDIFF(dd,StartDate, EndDate)

    FROM CableBoxTable



    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: Need help aggregate &count functions with date consideration

    Can you please provide some ready to use sample data and your expected result?

    For a guideline how to do that please see the first link in my signature.

    This will not...



    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: URGENT - ODBC Connectivity issue

    A google search for "connection is busy with results for another hstmt" indicates there's an issue with more than one acive cursor per connection:

    This error generally happens because an ODBC...



    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 - 586 through 600 (of 5,502 total)