Forum Replies Created

Viewing 15 posts - 2,866 through 2,880 (of 3,544 total)

  • RE: How to test DOS "file in use" status?

    Sorry xp_fileexist will only wait if file is being written too not copied.

    Could write your own extended procedure.

    Edited by - davidburrows on 12/18/2003 07:02:07 AM

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

  • RE: How to test DOS "file in use" status?

    xp_fileexist will wait for file to be free but could cause you problems if the file is never released.

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

  • RE: extract email address from text column

    or

    SELECT
    
    SUBSTRING(SUBSTRING(textcol,1,CHARINDEX(' ',textcol,CHARINDEX('@', textcol))-1),
    CHARINDEX('@', textcol) - CHARINDEX(' ',
    REVERSE(SUBSTRING(textcol,1,CHARINDEX('@', textcol)-1))) + 1,255)
    FROM

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

  • RE: extract email address from text column

    If your data conforms to Franks post.

    SELECT 
    
    STUFF(SUBSTRING(textcol,1,CHARINDEX(' ',textcol,CHARINDEX('@', textcol))-1),1,
    CHARINDEX('@', textcol) - CHARINDEX(' ',
    REVERSE(SUBSTRING(textcol,1,CHARINDEX('@', textcol)-1))),'')
    FROM

    Edited by - davidburrows on 12/18/2003...

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

  • RE: 20 % records

    Create a temp table #temp with the following columns
    
    ROWID int IDENTITY(1,1), BRANID, DIVID, SALESMAN, CUSTID, CUSTNAME, GS, DISC
    INSERT INTO #temp...

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

  • RE: QOD 12/17/03

    quote:


    Hey guys! Lighten up its just a game to help us learn and mistakes happen.


    Yeh...

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

  • RE: UNION problem

    Wow what a query, still trying to get my head round it. Suggest in this case to put results in temp tables and then check / union from there.

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

  • RE: QOD Suggestion

    Agree 100%

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

  • RE: QOD 12/17/03

    Wow! wot a lot of grumps. Read the newsletter and thought about answer, then had to do some work (boss is watching). Came back and thought, got caught like this...

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

  • RE: Cursor in ExecuteSQL task "drops" some values

    quote:


    I don't understand what this does though.

    select [dbname]=db_name(), * into #sysfiles from sysfiles where 1=2

    select [dbname]=db_name(), * into #sysindexes...

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

  • RE: Importing Zip Codes

    I think a join would be faster

    INSERT INTO ZipCodes 
    
    (ZIP, City, County, State)
    SELECT ZipCode City, CountyName, State)
    FROM ZIP_CODE_IMPORT i
    LEFT OUTER JOIN ZipCodes...

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

  • RE: concatenation of Records

    You can do it using a temp table

    CREATE TABLE #temp ([ID] datetime,Notes varchar(7000)) 
    
    INSERT INTO #temp SELECT DISTINCT [ID} from
    DECLARE @max smallint,@Sequence_No smallint...

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

  • RE: Traping SQL returning errors

    Check if the key exists before inserting.

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

  • RE: UNION problem

    Is there anything common between the two recordsets? Can you post the queries?

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

  • RE: Data Scrubbing

    This would convert the data specified and I know the data may be more complex. Whether you do the conversion pre, post or during load depends on available tools and...

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

Viewing 15 posts - 2,866 through 2,880 (of 3,544 total)