Forum Replies Created

Viewing 15 posts - 3,886 through 3,900 (of 5,103 total)

  • RE: Return Records with Count > 2

    Cheers!

  • RE: View, clustered index, and QUOTED_IDENTIFIER error

    >>Given that the other procs don't reference this view...<<

    No but the reference the BASE tables that the view is using and DUE TO THE SCHEMABINDIG on the view anything touching...

  • RE: Is This possible to do ?

    I used the name DISCHARGES for the lack of one supplied by you.

    But yeah, feel free to replace it and you will be good to go

  • RE: Hexidecimal to Decimal

    why do you need to do that? varchar ---> int ---> varchar

    how about

    declare @s-2 nvarchar(40), @sval int

    set @s-2 = 'select @sval = 0x2C'

    exec sp_execsql @s-2, N'@sval int out', @sval...

  • RE: Event ID 208

    Aparently your Agent(s) are still active!

    You have to remove replication! (if you are not using it for any othe publication)

    what type of replication did you set up?

     

  • RE: Up The Wall

    Yep, you are right. I call it the cut and paste effect

     

  • RE: Up The Wall

    (H3PRBL-H3POD+H3POD+H3IOD+H3AIBL+H3FOD) / (case when [H4CURR]= 'CHF', then 1.5476 else 1 end)

    AS LNRTotalClaimEUR

    hth

     

  • RE: Select Total Count if different by 5% to yesterday

    and to add to johns' suggestions try to limit the calculations on the temp table to a date range

     

    hth

  • RE: Is This possible to do ?

    Is this what you are after ?

    select  d1.authid, d1.memid, (select max(dischargedate)

                                  from  discharges d

                                  where Subq.memid = d.memid

                                  and

                                  d.dischargedate < SubQ.MaxDate) as PrevDate

    From

    discharges d1

    join

    (select memid,...

  • RE: Adding constraint to very large table

    alter table table_name add [col] [int] NOT NULL CONSTRAINT [CON] DEFAULT (0) WITH VALUES

    go

  • RE: Complicated join

    Maybe I don't understand your problem but

    Is this what you are trying to accomplish:

    select    a.StreetCode

     , a.HouseNumber

     , a.Equal_Unequal_HouseNumbers

     , a.AreaCode1

     , b.Areacode2

    from

     TableA a

     join

     TableB b

     on a.StreetCode = b.StreetCode

        and a.HouseNumber >= b.HouseNumber_From

       ...

  • RE: SQL Newb Needs some help. (If ya''''ll can''''t help me that''''s cool)

    how about :

    select NPA, NXX, CIRC

    from test

    where CIRC = '9010'

    union all

    select NPA, NXX, CIRC

    from test t2

    where not exists ( select *

         from test t3

                where CIRC = '9010'

       ...

  • RE: Distribution cleanup

    are you sure the transactions are being delivered to all subscribers?

  • RE: Return Records with Count > 2

    I have no idea of what is unique on your data but this is a start

    Select a.Company, a.Contact, a.CustomerNumber, a.State, a.City From

       ...

  • RE: add new users to security

    this is supposed to be for internal use but... I can anticipate that x0802 means has haccess x0801 -- Does not

Viewing 15 posts - 3,886 through 3,900 (of 5,103 total)