Forum Replies Created

Viewing 15 posts - 3,001 through 3,015 (of 3,543 total)

  • RE: Incremental SUM

    How about creating a table of possible margin values (counter in my case containing 1 to 100) then doing

    select sum([count]) as [count], c.number as margin...
  • RE: BCP with each field on its own line

    To get your required results with BCP the data has to match exactly the definition in your fmt file, 6 lines per record separated by CR/LF including blank lines. To...

  • RE: filter data from a linked server (Access DB)

    where ss is not null

  • RE: Comparison Query

    Change the inner join to left outer join and add a where clause

    WHERE JoiningTable.key IS NULL

  • RE: Frequently Asked Questions

    Hi Frank,

    Nah1 But you can cook Salmon!!!

    No Kidding

  • RE: Updating a table with min and max values from a ch

    This might work

    update p
    
    set p.mindate = x.mindate,
    p.maxdate = x.maxdate
    from parent p
    left outer join(SELECT keyid,min(date) as mindate, max(date) as maxdate
    from child grouped by keyid) x
    on...
  • RE: server connection

    I understand it to be machine, an old generic term for pc/server.

    nb pc is personal computer

    nb nb is ... oh b******s

  • RE: Row size?

    I have no problem accessing 1600 byte fixed length records with DTS. Are you sure all records are 1600 bytes and as ghughes stated have got CR/LF. If your data...

  • RE: Nested Stored Procedure Error Handling

    Can you use an OUTPUT parameter in the top proc to return either error value (@ERR or @Result in my example) and test for this.

  • RE: Nested Stored Procedure Error Handling

    One way is to use RETURN to return non sql critical errors or user defined errors and to trap both errors after proc call

    DECLARE @Result...
  • RE: Row size?

    Is the data fixed column or separated by a delimiter. It looks like you specified delimited data in DTS but the data does not contain the delimiter specified.

    p.s. DTS wizard...

  • RE: single sql statement needed

    If you know the max no of colours (3 in your example) then, not elegant but....

    select b.Manufacturer,b.c1+
    
    coalesce(', '+b.c2,'')+
    coalesce(', '+b.c3,'') as 'ColorsAvailable'
    from (select a.Manufacturer,
    max(case when a.Colorct...
  • RE: SQL 6.5 Transaction Log Full - Error 1105

    If I remember right from when I used 6.5 you have to extend the log first to enable sql to commit/rollback trans to put the database in the right state....

  • RE: URGENT: Arithmetic overflow error converting numer

    If the query you posted is accurate and id is varchar then I think the problem is with the difference in implicit/explicit conversion between 7 & 2000, you will need...

  • RE: How to split records into a temp table?

    Personally I would not use spt_values. I would create temp table containg int column containing values from 1 to max number of days between dtTripStart and dtTripEnd and join that...

Viewing 15 posts - 3,001 through 3,015 (of 3,543 total)