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. ERROR [S1000] [Microsoft][ODBC Visual FoxPro Driver]Cannot update the cursor

ERROR [S1000] [Microsoft][ODBC Visual FoxPro Driver]Cannot update the cursor

Scheduled Pinned Locked Moved ASP.NET
helpcsharpcssasp-netsysadmin
2 Posts 2 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.
  • W Offline
    W Offline
    wongeva
    wrote on last edited by
    #1

    Hi dear, i face a problem here, use asp.net with c#.... conConnectionOTHER= new OdbcConnection( "PWD=; SourceType=DBC;DSN=payroll;Collate=Machine;Deleted=Yes;BackgroundFetch=Yes;Exclusive=Yes; SourceDB=C:\\payroll\\data\\myapp.dbc;Null=Yes;UID="); ======================================================================================= //Success conConnectionOTHER.Open(); OdbcCommand cmdGetHistory; OdbcDataReader dtrGetHistory; string strGetHistory="select * from sol where employeeid='000007'"; cmdGetHistory=new OdbcCommand(strGetHistory,conConnectionOTHER); dtrGetHistory=cmdGetHistory.ExecuteReader(); DataGrid2.DataSource=dtrGetHistory; DataGrid2.DataBind(); conConnectionOTHER.Close(); //end Result is success, it can bind and show in data grid ====================================================================================== //Fail Here conConnectionOTHER.Open(); OdbcCommand cmdUpdate; string strUpdate="Update sol set type='LEA' where employeeid='000007'"; cmdUpdate=new OdbcCommand(strUpdate,conConnectionOTHER); cmdUpdate.ExecuteNonQuery(); conConnectionOTHER.Close(); //end Result is fail, cannot update record Server Error in '/linkToPayroll' Application. -------------------------------------------------------------------------------- ERROR [S1000] [Microsoft][ODBC Visual FoxPro Driver]Cannot update the cursor. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.Odbc.OdbcException: ERROR [S1000] [Microsoft][ODBC Visual FoxPro Driver]Cannot update the cursor. Source Error: Line 37: string strUpdate="Update sol set type='LEA' where employeeid='000007'"; Line 38: cmdUpdate=new OdbcCommand(strUpdate,conConnectionOTHER); Line 39: cmdUpdate.ExecuteNonQuery(); Line 40: conConnectionOTHER.Close(); Line 41: Source File: c:\inetpub\wwwroot\linktopayroll\webform1.aspx.cs Line: 39 ======================================================================================== Please need your guideline.......help Thank you very much from : eva

    E 1 Reply Last reply
    0
    • W wongeva

      Hi dear, i face a problem here, use asp.net with c#.... conConnectionOTHER= new OdbcConnection( "PWD=; SourceType=DBC;DSN=payroll;Collate=Machine;Deleted=Yes;BackgroundFetch=Yes;Exclusive=Yes; SourceDB=C:\\payroll\\data\\myapp.dbc;Null=Yes;UID="); ======================================================================================= //Success conConnectionOTHER.Open(); OdbcCommand cmdGetHistory; OdbcDataReader dtrGetHistory; string strGetHistory="select * from sol where employeeid='000007'"; cmdGetHistory=new OdbcCommand(strGetHistory,conConnectionOTHER); dtrGetHistory=cmdGetHistory.ExecuteReader(); DataGrid2.DataSource=dtrGetHistory; DataGrid2.DataBind(); conConnectionOTHER.Close(); //end Result is success, it can bind and show in data grid ====================================================================================== //Fail Here conConnectionOTHER.Open(); OdbcCommand cmdUpdate; string strUpdate="Update sol set type='LEA' where employeeid='000007'"; cmdUpdate=new OdbcCommand(strUpdate,conConnectionOTHER); cmdUpdate.ExecuteNonQuery(); conConnectionOTHER.Close(); //end Result is fail, cannot update record Server Error in '/linkToPayroll' Application. -------------------------------------------------------------------------------- ERROR [S1000] [Microsoft][ODBC Visual FoxPro Driver]Cannot update the cursor. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.Odbc.OdbcException: ERROR [S1000] [Microsoft][ODBC Visual FoxPro Driver]Cannot update the cursor. Source Error: Line 37: string strUpdate="Update sol set type='LEA' where employeeid='000007'"; Line 38: cmdUpdate=new OdbcCommand(strUpdate,conConnectionOTHER); Line 39: cmdUpdate.ExecuteNonQuery(); Line 40: conConnectionOTHER.Close(); Line 41: Source File: c:\inetpub\wwwroot\linktopayroll\webform1.aspx.cs Line: 39 ======================================================================================== Please need your guideline.......help Thank you very much from : eva

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      try running the query in query analyzer in sql server to see if it works

      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