Forum Replies Created

Viewing 15 posts - 466 through 480 (of 920 total)

  • RE: Concatenation of two fields from Two Separate TABLES

    Yes, Lutz is correct (as usual). I didn't expect the implicit conversion of '-' to be a zero, but that's what happens. The execution engine is smarter than...


    And then again, I might be wrong ...
    David Webb

  • RE: Concatenation of two fields from Two Separate TABLES

    give this a try:

    SELECT DISTINCT

    pt.FIRST_NAME+ ' '+ pt.LAST_NAME AS 'Patient Name',

    pt.PATIENT_ID AS...


    And then again, I might be wrong ...
    David Webb

  • RE: Concatenation of two fields from Two Separate TABLES

    The '+' is used as a mathematical operator and a string concatenation operator. If the datatypes of the arguments on both sides are numerical (int, smallint, numeric, float, etc)...


    And then again, I might be wrong ...
    David Webb

  • RE: Concatenation of two fields from Two Separate TABLES

    Can't see the datatypes from the code, but if either are int, you'll need to wrap them in a cast or convert before you use string concatenation.


    And then again, I might be wrong ...
    David Webb

  • RE: Error: Subquery returned more than 1 value

    Check for the presence of a trigger on the table. My guess is that the trigger contains the subquery and that is only built to handle single row operations.


    And then again, I might be wrong ...
    David Webb

  • RE: SQL updates on table with over 7 million rows throws out of memory exception

    Simple recovery mode doesn't mean nothing will be logged. The server still needs to log updates so it can back the transaction out if something happens. In simple...


    And then again, I might be wrong ...
    David Webb

  • RE: Are the posted questions getting worse?

    Thinking back on it, the best, most creative IT people I have known, if they had degrees at all, had degrees in somehting other than IT. I used to...


    And then again, I might be wrong ...
    David Webb

  • RE: Collation question for sql 2005

    The -CI- in the name means case-insensitive. You can check with:

    declare @v1 char(1)

    declare @v2 char(1)

    set @v1 = 'a'

    set @v2 = 'A'

    if @v1 = @v2

    print 'case insensitive'


    And then again, I might be wrong ...
    David Webb

  • RE: Store procedure

    This statement:

    set @Qurey ='Select Status from Clientprofile where ClientID'+@clientID

    isn't doing what you think it's doing. It's not executing the query, it's just setting the variable equal to the string....


    And then again, I might be wrong ...
    David Webb

  • RE: Cant bring Database back Online

    The database you took offline is the default database for the id you are trying to log in with. Come in with another id with admin rights, change your...


    And then again, I might be wrong ...
    David Webb

  • RE: Update - Sub Query Error

    Is there an update trigger on the table? If so, you might want to make sure it can handle multiple row updates.


    And then again, I might be wrong ...
    David Webb

  • RE: Getting Colorful

    a PIG program (production if good)


    And then again, I might be wrong ...
    David Webb

  • RE: What is the most efficient way to delete records?

    Just another possible plan of attack.

    create another table to hold the 30 million rows you want to keep

    copy the 30 million rows to the new table in batches based on...


    And then again, I might be wrong ...
    David Webb

  • RE: SQL2000 Standard vs Developer

    You should be OK, then. I think the licensing requires each developer to have their own license, but as stated above, they're only about $50.

    Your problem may be that...


    And then again, I might be wrong ...
    David Webb

  • RE: SQL2000 Standard vs Developer

    It's not legal to use a Developer license for 'production'. Is moving to SQL Server 2005 an option?

    Have you looked at other ways to optimize/tune the workload?


    And then again, I might be wrong ...
    David Webb

Viewing 15 posts - 466 through 480 (of 920 total)