Results 1 to 2 of 2

Thread: SQL Server Insert

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2001
    Location
    Pennsylvania
    Posts
    133

    SQL Server Insert

    How can I insert the results of a view into a table which has already been designed and has extra columns in it?

    The problem is the extra columns. I tried
    INSERT [view] INTO [table]

    I also tried to use update. but with no records in the table it would not work. I also tried insert into but that isn't really practical since I have to drop the table to recreate it.

  2. #2
    Lively Member
    Join Date
    Feb 2002
    Location
    North Carolina, US
    Posts
    81
    INSERT INTO [Table] ([Field1], [Field2], ...) VALUES ([Value1], [Value2],...)

    For variables:

    INSERT INTO [Table] ([Field1], [Field2], ...) VALUES ('" & [Value1] & "', '" & [Value2] & "', '"...)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width