Forum Replies Created

Viewing 15 posts - 2,971 through 2,985 (of 3,543 total)

  • RE: RETURNING TOP X RECORDS

    Why not terminate your loop after 40 and why all the cursors?

    DECLARE @temp nvarchar(200) 
    
    DECLARE @email_campaign_id as int,
    @status int,
    @start_datetime datetime,
    @email_max_quantity int,
    @email_quantity...
  • RE: Grouping and duplicates

    If id is sequential, then try this

    select a.field1, a.field2, a.id 
    
    from table a
    left outer join table b
    on b.id = (a.id -1)
    and (b.field1...
  • RE: Full Text Search - Decimal Point

    quote:


    CONTAINS(ctx_desc,'"Bohrer" AND "Hartmetall" AND "3.0"')


    This is exactly how I use Full Text Search.

    I...

  • RE: Full Text Search - Decimal Point

    The query I posted worked fine for me, with single or double quotes.

    However ckempste's does not?

    What version of sql are you on, I'm on SLQ7 SP4.

  • RE: Bypassing Triggers

    Andy, cannot find the content, is there a problem?

  • RE: Accessing multiple tables using ASP

    The last time I did something like this was to use a same name for the fields which results in an array of results. I then use the length of...

  • RE: Update Or?

    Update dbo.table
    
    set c_alias = 'Test'
    where c_alias IN ('Work', 'Book', 'Event')

    This will replace c_alias with Test where it is either Work,Book or Event. Is this what...

  • RE: BCP Import Error- numbers interpreted as ascii

    Use SQLCHAR for the input fields, sql server will convert where necessary. SQLINT expects the data to be binary.

  • RE: Full Text Search - Decimal Point

    Put quotes around text you want found

    where contains(indexedcolumn,"3.0") 
  • RE: cross tabs quesry?

    quote:


    can't let loose from work?


    Nah! Week hols Frank, just keeping in touch with the...

  • RE: cross tabs quesry?

    Sure interesting the number of times this type of problem crops up. For problems like this cursors seem the best bet as trying to build a dynamic query can sometimes...

  • RE: Could use help with merging tables?

    OK now I understand the problem. My suggestion is that if you want to avoid cursors, I would do the following

    On each table (tdSei and tdSit in this eaxmple) add...

  • RE: Could use help with merging tables?

    This is my original attempt

    SELECTa.SEQ,a.KukS,
    
    b.SeRyCD,b.SeFl,
    c.SiRyCD,c.SiFl
    FROMtdKuk a
    LEFT OUTER JOIN tdSei b
    ON b.SEQ = a.SEQ AND b.KukS = a.KukS
    LEFT OUTER JOIN tdSit c
    ON c.SEQ = a.SEQ...
  • RE: Merging two tables (either Insert or Update)

    In the target database, I would update matches first

    UPDATE d 
    
    SET d.col1=s.col1,
    d.col2=s.col2
    ...
    FROM destinationtable d
    INNER JOIN sourcedatabase..sourcetable s
    ON s.key = d.key...
  • RE: Updateable Cursors

    My solution was similar to Jonathan's but I had reservations about performance using it against 200,000 records. If it is a one off then... as long as it works. I'd...

Viewing 15 posts - 2,971 through 2,985 (of 3,543 total)