Forum Replies Created

Viewing 15 posts - 1,906 through 1,920 (of 2,894 total)

  • RE: Need ideas on query performance

    mayur birari (3/13/2012)


    Thanks for the reply.

    But I cannot do that because A is a physical table in the database and all I'm doing is a clean up stuff. I cannot...

  • RE: Linked serve limitation

    John Chiu (3/13/2012)


    Application group like 'control' and don't want use SSIS

    I love it!!!

    I always thought that SSIS (or any other 3-rd party ETL tool) gives "Application group" much more...

  • RE: Need ideas on query performance

    Try:

    1. Use SELECT INTO to insert records you want to stay into new table using INNER JOIN, IN or EXIST

    2. Drop the old table

    3. Rename new one to old name

  • RE: Need Year & the Month of a Date Field Formated as 'YYYYMM'

    Lynn Pettis (3/13/2012)


    Eugene Elutin (3/13/2012)


    Can someone explain why everyone suggesting huge concatenation logic when date in YYYYMMDD format can be produced as a simple convert with option 112 for ISO?...

  • RE: Fast execution of query

    what the following sentence from this article does mean than? :

    After the first number_rows are returned, the query continues execution and produces its full result set

    It may be possible to...

  • RE: Need Year & the Month of a Date Field Formated as 'YYYYMM'

    Can someone explain why everyone suggesting huge concatenation logic when date in YYYYMMDD format can be produced as a simple convert with option 112 for ISO?

  • RE: Fast execution of query

    HowardW (3/13/2012)


    Eugene Elutin (3/13/2012)


    pallavi.unde (3/13/2012)

    ...

    I read Option(fast n) executes query fast and gives o/p soon.

    ...

    Where have you read this from?

    It does not make query to run any faster! It just...

  • RE: Update a Self Joined Table

    That is different story, if I understand you right, then:

    UPDATE S

    SET AmtAuth = A.AmtAuth

    FROM ##TempTm S

    JOIN ##TempTm A -- we join to the record of type A

    ON A.ReferenceNumber = S.ReferenceNumber...

  • RE: HELP with date time query

    Lynn Pettis (3/13/2012)


    SGT_squeequal (3/13/2012)


    DOH why dindt i think of that worked perfect thanks 🙂

    You really should consider passing the datetime in using the ISO standard format. SQL will properly...

  • RE: how to create temporary table inside the store proc for getting result

    Could you please edit your post. It's impossible to read...

  • RE: Update a Self Joined Table

    texpic (3/13/2012)


    Guess I didn't indicate the result I needed. Need the 0 in AuthAmount when Source = S to be updated to 100. It does not update.

    Why did...

  • RE: Problem with update from another table

    Your data sets cannot be inserted to the tables created by provided DDL's. After I've spend time to make it run, I found that your data sample is absolute useless...

  • RE: Update a Self Joined Table

    UPDATE A

    SET AmtAuth = B.AmtAuth

    FROM ##TempTm A

    JOIN ##TempTm B

    ON A.ReferenceNumber = B.ReferenceNumber

    AND A.CardNumber = B.CardNumber

  • RE: Need Year & the Month of a Date Field Formated as 'YYYYMM'

    And if you want convert DateTime to string and format it as YYYYMM, you can simply do this:

    select LEFT(CONVERT(VARCHAR,GETDATE(),112),6)

    - 112 - is code for ISO format

    Edited: I can see that...

  • RE: Need Year & the Month of a Date Field Formated as 'YYYYMM'

    Welsh Corgi (3/13/2012)


    I need the Year & the Month of a Date Field Formatted as 'YYYYMM'.

    Any help would be greatly appreciated.

    Thanks.

    Your question is quite obscure or incorrect (whatever you like)!

    "Date...

Viewing 15 posts - 1,906 through 1,920 (of 2,894 total)