Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Accessing Sybase ASA using OLE DB from C++

Posted on 2006-06-22
5
Medium Priority
?
246 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 2000 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Screencast - Getting to Know the Pipeline
Suggested Courses

927 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