Forum Replies Created

Viewing 15 posts - 2,821 through 2,835 (of 5,504 total)

  • RE: To insert data only if it doesnot exist if exist show the table info and print a message

    avi-631555 (9/14/2010)


    Basically i am trying to accomplish

    Inserting data into a table only if it doesnot exist and if does to show me the content of the table and...

  • RE: sum by each quarter

    Seems like a related issue posted here...

  • RE: Changing from INSERT INTO...SELECT (with a UNION) to SELECT INTO

    Jeff Moden (9/14/2010)


    Agreed. SELECT DISTINCT usually indicates that more than 1 of the exact same row was created. That usually means the join criteria was NOT sufficient or...

  • RE: Changing from INSERT INTO...SELECT (with a UNION) to SELECT INTO

    I tried to understand where the difference between the two "UNION'ed" statements is, but I couldn't figure it out.

    First I thought GLCr and GLDb were alias for different tables, but...

  • RE: Pivot Message

    What error message do you get?

    Why do you convert a date format to varchar followed by an implicit conversion back to datetime due to the month() function? Wouldn't month(Startdate))...

  • RE: Datetime in sql

    Why do you need to compare it to StartDate, EndDate instead of StartMonth, EndMonth?

    If the latter, you could compare it without any data type conversion. (not that I like storing...

  • RE: Help With Modifying this Code

    rikku0801 (9/13/2010)


    It's actually for a computer science project. Our teacher deliberately asked us to ask around forums for help in answering this query. The other student, was I think a...

  • RE: Good to do list manager

    You could try OneNote (addtl. software for your MS Office bundle) or EverNote (equivalent freeware tool).

  • RE: De-Duping runtime OLTP data

    This is the major cause for the poor performance:

    /* For each record in #JoinedUsers we iterate through the following code:

    (This is the block which takes the most time) */

    That's the...

  • RE: De-Duping runtime OLTP data

    The basic concept doesn't sound like RBAR (if done without any kind of a loop). However, it might be better to check for duplicates during signup process and not batch...

  • RE: OPENXML problem

    please provide sample data so we have something to test against (xml string, table def of target data, some sample data and your expected output).

  • RE: Integration of XQuery and T-SQL

    Will the following work?

    IF REPLACE(CAST(@xml.query('data(part/measure/note/pitch/step)') AS VARCHAR(10)),' ','') ='AFFG'

    PRINT 'true'

    ELSE

    PRINT 'false'

  • RE: Single huge view or mutiple smaller views

    Is this a theoretical question or do you have to deal with a real-world scenario?

    If the latter, you could test the effect by using two scenarios and compare the execution...

  • RE: Job running too long

    It's impossible to give any advice based on the limited information available. There are just too many questions:

    How long does it run when started from BIDS?

    What other activities do take...

  • RE: ORDER BY datetime help

    Your cast statement in the WHERE clause will return a format like 'Sep 9 2010 8:59PM'.

    Hence the messed up order.

    Did you try using the same CONVERT statement in...

Viewing 15 posts - 2,821 through 2,835 (of 5,504 total)