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. Web Development
  3. ASP.NET
  4. Help required in ExcelDriver Part in ASP

Help required in ExcelDriver Part in ASP

Scheduled Pinned Locked Moved ASP.NET
sysadminhelp
1 Posts 1 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.
  • P Offline
    P Offline
    priyaahh
    wrote on last edited by
    #1

    Hi Friends, The following code has been used in one of the asp page to fetch data from excel sheet and insert into table. Excel Driver part is used to do this. But however the excel sheet includes more than 130 rows. But when importing it just imports only 91 row and the remaining rows are not getting uploaded in the table. Please Please help. ExcelDriver Part: set objConn = Server.CreateObject("ADODB.Connection") set rsExcel = Server.CreateObject("ADODB.RecordSet") strName = "\Uploads\bicreports\" & strFileName servername = server.mappath(strName) ' Create a connection string. strConnectionString = "DBQ= " & servername & _ ";DefaultDir=" & SERVER.MAPPATH("/bicreports/") & _ ";Driver={Microsoft Excel Driver (*.xls)}" & _ ";DriverId=22;FIL=excel 8.0" & _ ";ImplicitCommitSync=Yes;MaxBufferSize=2048;MaxScanRows=8;PageTimeout=5" & _ ";SafeTransactions=0;Threads=3;UserCommitSync=Yes;" Is there anything wrong with above code attributes...which forces to read only 91 rows... Its very urgent...Please help... Thanks lot in advance. priyaahh

    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