Solved

Microsoft ODBC SQL Server Driver Invalid

Posted on 2004-09-22
4
543 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
  • 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Performance is the key factor for any successful data integration project, knowing the type of transformation that you’re using is the first step on optimizing the SSIS flow performance, by utilizing the correct transformation or the design alternat…
Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now