Forum Replies Created

Viewing 15 posts - 1,411 through 1,425 (of 1,472 total)

  • RE: Job processing all views in DB

    In this particular case, I don't believe a cursor is a bad solution to go with. What you are doing isn't really set based to start with.

    That...

  • RE: How to use logparser in sql query

    I'm not familiar with logparser, so I may be off base, but it seems like your error here at this point is trying to use SELECT INTO repeatedly....

  • RE: SP_SEND_DBMAIL and the conversion of a char data type

    ISNULL([Beaufort].[dbo].[dpic300].[uitdnst_dt], '30-12-2099')

    When I select this:

    SELECT CAST('30-12-2099' as datetime)

    I receive this:

    Server: Msg 242, Level 16, State 3, Line 1

    The conversion of a char data type to a datetime data type resulted...

  • RE: Dense_Rank Challenging

    Ok, now I get what you're trying to do. Amazing how much more sense it made as soon as you put the lines in between your groups...

  • RE: Dense_Rank Challenging

    What I still don't understand:

    What you are grouping by to establish those "dense ranks" that you've given in your original data. The positions are all over the...

  • RE: Dense_Rank Challenging

    I doubt I'm going to be the only one bewildered by this request.

    According to wikipedia:

    Dense ranking ("1223" ranking)

    In dense ranking, items that compare equal receive the same ranking number, and...

  • RE: connect to a different database

    You can reference the main database by name in your from clause.

    FROM MainDb.dbo.DF_Claim

    You can do that from your own database. If you want to insert the results...

  • RE: Updating NULL Values

    That said, I went ahead and wrote a script to do this, mainly because it interested me.

    The following script assumes several things. One is that there is no other...

  • RE: Updating NULL Values

    Please reference the post in my signature for how to post data on this forum.

  • RE: Convert rows into columns

    Not sure if this would work as I haven't done much cross version stuff yet, but couldn't you select the data you need into a temp table on your SQL...

  • RE: Changing sql keywords to lower or upper

    Correct. And for the record, I do the same thing that Gail and Lynn do with the formatting. A lot of the SP's in our db declare variables...

  • RE: Changing sql keywords to lower or upper

    If your goal is to make your procedures more easily readable and maintain proper formatting... why wouldn't you upcase all the key words rather than lower case them? This...

  • RE: SP_SEND_DBMAIL and the conversion of a char data type

    If you could post your query, or failing that, the line that you reference your view in, it'd help.

  • RE: updating 2 or more columns, using a join

    Any reason something like this wouldn't work?

    UPDATE Table1

    SET organizationid = t.organizationid ,

    contactid = t.contactid

    FROM tempTable AS t join Table1 AS t1 ON t.contractorID = t1.contractorID

  • RE: Extracting a portion of string from a field

    Nice, a new function(REVERSE) to play with. Thanks Steve.

Viewing 15 posts - 1,411 through 1,425 (of 1,472 total)