Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Error While Improting from Excel

Error While Improting from Excel

Scheduled Pinned Locked Moved Database
databasehelpsql-serversysadmin
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chetan Patel
    wrote on last edited by
    #1

    i am importing data from Excel to Sql Server Table but I got follwing error. Heterogeneous queries require the ANSI_NULLS AND ANSI_WARNINGS my code Insert Into JewelryUploadTemp SELECT * FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0', 'Excel 8.0;Database=D:\share\JewelryUploadSampleMar2008.xls','select * from [chetan$]') in stored procedure I am waiting for help...

    Best Regards, Chetan Patel

    P N 2 Replies Last reply
    0
    • C Chetan Patel

      i am importing data from Excel to Sql Server Table but I got follwing error. Heterogeneous queries require the ANSI_NULLS AND ANSI_WARNINGS my code Insert Into JewelryUploadTemp SELECT * FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0', 'Excel 8.0;Database=D:\share\JewelryUploadSampleMar2008.xls','select * from [chetan$]') in stored procedure I am waiting for help...

      Best Regards, Chetan Patel

      P Offline
      P Offline
      pmarfleet
      wrote on last edited by
      #2

      Did you not try searching Google[^] to find out what the error message means?

      Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

      1 Reply Last reply
      0
      • C Chetan Patel

        i am importing data from Excel to Sql Server Table but I got follwing error. Heterogeneous queries require the ANSI_NULLS AND ANSI_WARNINGS my code Insert Into JewelryUploadTemp SELECT * FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0', 'Excel 8.0;Database=D:\share\JewelryUploadSampleMar2008.xls','select * from [chetan$]') in stored procedure I am waiting for help...

        Best Regards, Chetan Patel

        N Offline
        N Offline
        new2pgrmg
        wrote on last edited by
        #3

        Hi, Are you using a SP. Try this; Generally the error is due to needing to set the properties when you create the stored procedure. Try recreating your stored procedure using: SET ANSI_NULLS ON GO SET ANSI_WARNINGS ON GoodLuck

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups