Forum Replies Created

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

  • RE: HELP! HOWTO Create new tables from a sql text file

    isql /S servername /U username /P password -d databasename /i textfilename

    Look up isql and osql in BOL.

    Far away is close at hand in the images of elsewhere.
    Anon.

  • 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...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • 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...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • 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...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • 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.

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Bypassing Triggers

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

    Far away is close at hand in the images of elsewhere.
    Anon.

  • 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...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • 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...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • 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.

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Full Text Search - Decimal Point

    Put quotes around text you want found

    where contains(indexedcolumn,"3.0") 

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: cross tabs quesry?

    quote:


    can't let loose from work?


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

    Far away is close at hand in the images of elsewhere.
    Anon.

  • 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...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • 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...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • 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...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • 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...

    Far away is close at hand in the images of elsewhere.
    Anon.

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