Solved

Microsoft ODBC SQL Server Driver Invalid

Posted on 2004-09-22
4
591 Views
Last Modified: 2011-09-20
Hi,
I have the following stored procedure which produces the correct results but still generates an errror message " Microsoft ODBC SQL Server Driver Invalid cursor state".
Thanks for your help.


CREATE procedure mod_ma_ae(
     @ea_id  int,
     @tbl_mitarbeiter_id int,
     @tbl_eintritteaustritte_id int,
     @tbl_prozessstatus_id int,
     @date_modified smalldatetime,
     @modified_by varchar(100)
)
as
begin
 update tblMAAustritteEintritte   set        
     tbl_mitarbeiter_id = @tbl_mitarbeiter_id,
     tbl_eintritteaustritte_id = @tbl_eintritteaustritte_id,
     tbl_prozessstatus_id = @tbl_prozessstatus_id,
     date_modified = @date_modified,
     modified_by = @modified_by

Where
     id = @ea_id

end
GO
0
Comment
Question by:lanter007
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 15

Expert Comment

by:jdlambert1
ID: 12125248
I don't see an error in syntax. Could you have an update trigger on tblMAAustritteEintritte that's producing the error?
0
 

Author Comment

by:lanter007
ID: 12130789
No at moment there arent' any triggers. Could ths be a Application reasen (programming) or as I already read a transaction log reason? Do you have any ideas what else I could check!
Thanks
0
 
LVL 15

Accepted Solution

by:
jdlambert1 earned 250 total points
ID: 12132807
I don't think it a logging problem. Try executing it from Query Analyzer and see if you get the error (substituting legitimate values in this:

EXEC mod_ma_ae 1, 1, 1, 1, '1/1/2004', 'asdf'

If this doesn't produce the error in QA, the problem's probably in the code you use to execute the stored procedure.
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 12133130
jdlambert1,

>>I don't think it a logging problem. <<
The questioner is no doubt referring to this article from MSDN:
Invalid cursor state
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vdbref/html/dvrefsaveincompletedialogbox.asp
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL Query (lookup) 8 65
Access PS SQLSERVER from powershell 1 30
VMware PVSCSI SQL Server 2016 AlwaysOn 2 37
Query Task 8 22
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question