Forum Replies Created

Viewing 15 posts - 1,741 through 1,755 (of 1,920 total)

  • RE: Services

    Am sorry buddy, i cant be of much help to u in this.. lets wait for our SSC bigwigs to attend this...

    Cheers!!

  • RE: works but getting error on sp_executesql

    For the below statment,

    IF @PARTNER_CODE <> '' AND @PARTNER_NAME <> ''

    add ISNULL check also and try mate.. lets see if that help...

    P.S: I am writing this from home where i...

  • RE: Auto generating the id?

    Without Table structure, or sample data we cant proceed further buddy :(.. and thats the reason tho u have 20 views, u have only 2 replies...

    But for a starter, i...

  • RE: Services

    Oh i get it... hmmm... i dont think we have a way to check that out using T-SQL, BUT I MAY BE WRONG.. probably with little bit of a helping...

  • RE: works but getting error on sp_executesql

    1. After the first EXEC(@SQL), flush the @sql variable; like , SET @sql = ''

    2. Check if the partnercode and partnername column values are not null and then use it...

  • RE: Auto generating the id?

    Buddy, request unclear.. can u pls post some visual representation of your desired result based on the location and track number??

  • RE: Services

    Buddy, dint get ur question fully... u mean, u now need a way to find out if the SQLSERVER and its entourage services are running using T-SQL code, am i...

  • RE: Pivoting name value pairs

    karthikeyan-444867 (4/19/2010)


    but it is producing the exact same execution plan as the one from Jeff.

    Yes. I tested both the query plan...i didn't see any difference.

    Thanks Karthikeyan!! I wonder how an...

  • RE: Pivoting name value pairs

    Jeff Moden (4/19/2010)


    You still might want to read the articles that Lutz pointed out, though. I know the guy that wrote them and he put some good stuff in...

  • RE: Pivoting name value pairs

    As you said no dynamic sql, i had come up with this approach.. one dis-advantage i am thinking of in this one will be the ; (semi-colon)character i am...

  • RE: Pivoting name value pairs

    Hey hi, i know Jeff has given a code for your requirement, which will be 100% fast and reliable..

    I just tried out some other way of coding your requirement...

  • RE: Insert a text column from a flatfile into a Datetime Column in a Table

    I second Jeff.. any import from a flatfile should be put up in some holding table which will have nvarchar or varchar columns.. then apply your business logic and insert...

  • RE: Insert a text column from a flatfile into a Datetime Column in a Table

    Buddy, how are u trying to import it? BCP , BULK insert, SSIS package, how?

  • RE: Return the records that equal the sum.

    Paul White NZ (4/18/2010)


    Always nice to find that I've answered a thread before I've seen it :laugh:

    Thanks, Cold Coffee!

    coool 😎

    You're welcome mate 🙂

  • RE: remove duplicate records, but keep most "current"

    Will the below code help you buddy??

    WITH MAX_DATE_FOR_A_MACHINE_CTE(MACHINE_NAME, MAX_DATE)

    AS

    (

    SELECT

    NAME

    , MAX(DATE) MAX_DATE

    FROM

    ...

Viewing 15 posts - 1,741 through 1,755 (of 1,920 total)