Results 1 to 3 of 3

Thread: Insert into?

  1. #1
    Join Date
    Apr 2006
    Posts
    47

    Unanswered: Insert into?

    Why doesnt this work?

    INSERT INTO AssetMK.dbo.Eqtype(EqTypeId,EqType)
    VALUES
    SELECT [EqTypeId]
    ,[EqType]
    FROM [Asset5].[dbo].[EqType]

    I get error:
    Msg 156, Level 15, State 1, Line 4
    Incorrect syntax near the keyword 'SELECT'.

  2. #2
    Join Date
    Feb 2004
    Location
    One Flump in One Place
    Posts
    14,912
    Hi

    You use either SELECT or VALUES in an insert statement - not both

    HTH
    Testimonial:
    pootle flump
    ur codings are working excelent.

  3. #3
    Join Date
    Apr 2006
    Posts
    47
    bingo bango !


    Thnks

Posting Permissions

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