BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MSSQL and batch command (Ramesh ?)

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress)
View previous topic :: View next topic  
Author Message
Dmitry Arefiev [gs-soft.r
Guest





PostPosted: Mon Jan 19, 2004 9:26 pm    Post subject: MSSQL and batch command (Ramesh ?) Reply with quote



Hello All !

I am executing following batch command:

INSERT INTO [master_autoinc] (NAME1) VALUES (?);
SELECT @@IDENTITY AS ID1

There [master_autoinc] table has 2 fields:
ID1 INT IDENTITY(1,1)
NAME1 VARCHAR(10)

Using dbExpress API i am performing steps:
- FCommandIntf.execute(FCursorIntf), FCursorIntf -> NIL
- FCommandIntf.getNextCursor(FCursorIntf), FCursorIntf -> cursor
returning result set of "SELECT @@IDENTITY AS ID1".

But in second step i am getting NIL as FCursorIntf. Is
that limitation, bug or what other ?

PS: Latest MSSQL dbExpress driver version.

Regards,
Dmitry

--
Dmitry Arefiev, gs-soft Company, community.gs-soft.com
Personal - www.da-soft.com

SAPx - Delphi to SAP R/3 direct access
Saphir - SAP R/3 metadata on your fingertips
MetaBase - ERWIN model in Delphi applications
NCOCI8 - Freeware Delphi to ORACLE direct access
Back to top
Ramesh Theivendran
Guest





PostPosted: Wed Jan 21, 2004 12:45 am    Post subject: Re: MSSQL and batch command (Ramesh ?) Reply with quote



getNextCursor() is mainly for SP returning multiple cursors. If the SQLOLEDB
ICommandText->Execute() supports returning a RowSet for batch command then i
would say its probably a feature not yet surfaced. Please log a case in QC
and i'll take a look.

T.Ramesh.

"Dmitry Arefiev [gs-soft.ru]" <darefiev (AT) gs-soft (DOT) ru> wrote

Quote:
Hello All !

I am executing following batch command:

INSERT INTO [master_autoinc] (NAME1) VALUES (?);
SELECT @@IDENTITY AS ID1

There [master_autoinc] table has 2 fields:
ID1 INT IDENTITY(1,1)
NAME1 VARCHAR(10)

Using dbExpress API i am performing steps:
- FCommandIntf.execute(FCursorIntf), FCursorIntf -> NIL
- FCommandIntf.getNextCursor(FCursorIntf), FCursorIntf -> cursor
returning result set of "SELECT @@IDENTITY AS ID1".

But in second step i am getting NIL as FCursorIntf. Is
that limitation, bug or what other ?

PS: Latest MSSQL dbExpress driver version.

Regards,
Dmitry

--
Dmitry Arefiev, gs-soft Company, community.gs-soft.com
Personal - www.da-soft.com

SAPx - Delphi to SAP R/3 direct access
Saphir - SAP R/3 metadata on your fingertips
MetaBase - ERWIN model in Delphi applications
NCOCI8 - Freeware Delphi to ORACLE direct access



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.