Re: Fujitsu cobol and SQLServer
- From: "Pete Dashwood" <dashwood@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 13 Oct 2008 02:54:00 +1300
"Steve Rainbird" <steve.nospam.rainbird@xxxxxxxxxxxxxxxxx> wrote in message
news:6le8dmFbtr82U1@xxxxxxxxxxxxxxxxxxxxx
I have a Fujitsu Cobol program connected to an sql server database viaServer side cursors with SQL Server are not a good idea and are best
odbc.
I have one cursor already open, when I try and open another cursor I get
the
following error.
[Microsoft][SQL Native Client]Connection is busy with results for another
command
I think from googling that I need to tell the odbc driver to use server
side cursors but have
no idea about how to do this.
Any help gratefully received
Regards
--
Steve
avoided. As far as I know, there is no way in COBOL you can specify them
anyway.
Set up two connections to the database and switch between them. (See also:
"The solution" under "RDB limitation" thread in this newsgroup.)
EXEC SQL
CONNECT 'DBServer' AS 'conn1' *> assumed userid and password are in
your ODBC.inf file
END-EXEC
EXEC SQL
CONNECT 'DBServer' AS 'conn2' *> assumed userid and password are in
your ODBC.inf file
END-EXEC
Fujitsu assumes last connection until/unless you use SET CONNECTION.
Declare and open each of your 2 cursors under a separate connection.
You cannot set more than one connection to DEFAULT.
Pete.
--
"I used to write COBOL...now I can do anything."
.
- Follow-Ups:
- Re: Fujitsu cobol and SQLServer
- From: Steve Rainbird
- Re: Fujitsu cobol and SQLServer
- References:
- Fujitsu cobol and SQLServer
- From: Steve Rainbird
- Fujitsu cobol and SQLServer
- Prev by Date: The solution WAS: Re: RDB limitations
- Next by Date: Re: Fujitsu cobol and SQLServer
- Previous by thread: Fujitsu cobol and SQLServer
- Next by thread: Re: Fujitsu cobol and SQLServer
- Index(es):
Relevant Pages
|