dbTalk Databases Forums  

Passing DB-Connection

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss Passing DB-Connection in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Thomas Kehl
 
Posts: n/a

Default Passing DB-Connection - 04-12-2006 , 07:12 AM






Hi.
I have a Win32-application which opens with Windows-API-Functions an
ODBC-Connection to a database. Now, I use in this application a DLL which is
written in C# which uses the ADO.NET-Provider from Sybase.
I call methods from this DLL over COM. In this DLL, there
should also executed database-calls. Now, is there a possibility to move my
Connectionhandle from my Mainapplication to the C#-DLL and then to
instantiate with this Handle an ASAConnection-Object in the C#-DLL? - The
goal is to use the same connection to the database in my Win32-Mainapp and
in the C#-DLL, so I can make correct Transactionhandling which contains
DB-Transactions in the Main-win32App and the C#-DLL.

Does anybody have an idea? - Thanks!

Thomas



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.