Solved

Accessing Sybase ASA using OLE DB from C++

Posted on 2006-06-22
5
238 Views
Last Modified: 2013-11-20
I need to write some code to access an ASA database using plain OLE DB.  It needs to be the same code that will work both in Windows CE and Windows XP.  Are there any good samples out there?  Thanks.

Timothy Dean
0
Comment
Question by:kevinbenedict
5 Comments
 

Author Comment

by:kevinbenedict
ID: 16964593
This should be similar to accessing SQL Server CE using OLE DB, so if no ASA sample is available, a SQL Server CE sample might also be useful.  Thanks.

Timothy Dean
0
 
LVL 22

Accepted Solution

by:
mahesh1402 earned 500 total points
ID: 16967366
You may use following connection string to connect to a Sybase DB using OLE DB. Hopefully, this will give you a start.

strConnection.Format("Provider=Sybase.ASEOLEDBProvider;Persist Security Info=True;Data Source=%s", m_acServer);    // Connection string ...
m_pConn->Open ((_bstr_t)strConnection, m_bstrLogin, m_bstrPass, adConnectUnspecified);    //Open the connection

>>so if no ASA sample is available, a SQL Server CE sample might also be useful

http://www.codeproject.com/ce/mysqlce.asp <==

-MAHESH
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Importing Special Characters in Dynamics GP Through Integration Manager 3 88
NotAlone Challenge 20 87
noX challenge 17 134
JQuery serialize and unserialize 8 179
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

680 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