Forum Replies Created

Viewing 15 posts - 14,881 through 14,895 (of 15,381 total)

  • RE: ISDATE difference from client and server

    So you are saying the you open SSMS on your local machine and connect to Server1 and the IsDate check returns 1.

    Then you RDP to Server1, open SSMS and...

  • RE: View with 2 fields combined

    Lowell (2/28/2011)


    I think you can do what you want as a set of case statements

    let me know if this model works for you:

    SELECT

    OtherFields,

    CASE

    ...

  • RE: SQL Server Conditional Join

    It is a pretty odd requirement but then this is obviously not the real table structure and data.

    I created the ddl statements and data inserts so that I can test...

  • RE: null vs IS NOT NULL

    Are the "missing" ones NULL or empty string? have you tried something like

    Where IsNull(open, '') <> ''

  • RE: SQL Server Conditional Join

    What exactly are you trying to do? Given the data you posted what is the desired output?

  • RE: Compare Time of DateTime

    Ashwin9 (3/16/2011)


    ok, let me explain it.

    I’m sending messages to all staff members.

    But I want to validate this when we are off.

    i.e. messages should not be sent except office hours.

    I know...

  • RE: Updating column in a table with it's own column with Int to Datetime conversion

    In spite of the very legitimate questions about your architecture I believe the following should get you what you need.

    update TableName set asofdate2 = Cast(cast(asofdate as varchar) as datetime)

  • RE: how to replace a particular values in coumn names

    Wow changing columns names from 'H#res' to 'H.res' is going to open an enormous can of nastiness.

    things like

    select #gorge, H#res, Er#es

    will have to become

    select [.gorge], [H.res], [Er.es]

    Just...

  • RE: Problems Deleting Records

    The Edit rows feature is by no means anything you should be using to edit your data. The edit feature runs a transaction until you close it and when you...

  • RE: Reset Row_Number() against column

    WayneS (3/15/2011)


    Sean Lange (3/15/2011)


    Wayne it was your signature I was thinking of as I was adding my reply. Applies 100% in this case.

    šŸ˜€

    (You didn't think of my article for explaining...

  • RE: Hash Join Pegging CPU

    you try this...

    [/code]

    left join PLNotice pln on pln.PolicyID = hm.PolicyID and pln.InceptionDate = hm.InceptionDate

    and (

    (hm.CodeDesc ='UNDERWRITING' and pln.noticetype = 'UW')

    or

    (hm.CodeDesc = 'NONRENEW' and pln.noticetype = 'NR')

    or

    (hm.CodeDesc In ('RENEWALDNOC','DNOC')...

  • RE: Reset Row_Number() against column

    Wayne it was your signature I was thinking of as I was adding my reply. Applies 100% in this case.

  • RE: How to script a remove 'IDENTITY(1,1)'

    Why does your customer care if it is identity or not? Micro managing customers are the worst.

    Unfortuantely you can't just remove the identity property directly. You will have to...

  • RE: UPDATE with JOINS to change a column

    You are pretty close but you cant set a column equal to a select statement.

    UPDATE TABLE_PRODS

    SET PRODNO = RIGHT(TP.PRODNO, TPL.PRODNOLEN)

    ...

  • RE: Reset Row_Number() against column

    Looks a lot like homework.

    select ROW_NUMBER() over (partition by deptname order by deptname), ename, deptname from t1 order by ename

    You should read up on the ROW_NUMBER function and by all...

Viewing 15 posts - 14,881 through 14,895 (of 15,381 total)