• ny66 (8/20/2010)


    havent gotten that far yet on the insert into, need to get the syntax together prior to creating the new table.

    it's pretty basic:

    --get just the data we need to test against

    SELECT

    (ns.f1) AS f1

    INTO #temp

    FROM dbo.NEWDUNDD_SEAF0

    --pazste the results to SQL Server Central:

    SELECT 'INSERT INTO #TEMP(f1) VALUES('' + f1 + '') UNION ALL '

    from #temp

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!