473,587 Members | 2,494 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to write portable database access code?

I can access Microsoft Access database via ODBC on windows 2000
using C++ . Now, I would like to use the SAME piece of code to
access MS SQL on Windows. Can I achieve this without any modification
to my existing codes?

Then, I would like to use the SAME piece of codes to access Oracle on
Windows? Is it possible?

thanks in advance
Jul 22 '05 #1
2 1826
nickel wrote:
I can access Microsoft Access database
via ODBC on windows 2000 using C++.
Now, I would like to use the SAME piece of code
to access MS SQL on Windows.
Of course.
Can I achieve this without any modification to my existing codes?

Then, I would like to use the SAME piece of codes
to access Oracle on Windows.
Is it possible?


Unfortunately, you're asking in the wrong place.
Try one of the Microsoft Windows newsgroups.
Come back here when you have some specific questions
about [standard] C++. Best of luck to you.

Jul 22 '05 #2
"nickel" <MG**@winbond.c om.tw> wrote...
I can access Microsoft Access database via ODBC on windows 2000
using C++ . Now, I would like to use the SAME piece of code to
access MS SQL on Windows. Can I achieve this without any modification
to my existing codes?

Then, I would like to use the SAME piece of codes to access Oracle on
Windows? Is it possible?


Probably. You should ask in a newsgroup that discusses ODBC. This
one (comp.lang.c++) is not it. Here we discuss standard C++ language,
which incidentally has nothing to do with ODBC.
Jul 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2876
by: nickel | last post by:
I can access Microsoft Access database via ODBC on Windows 2000 using C++. Now, I would like to use the SAME piece of code to access MS SQL on Windows. Can I achieve this without any modification to my existing codes? Then, I would like to use the SAME piece of codes to access Oracle on Windows? Is it possible? Thanks in advance!
5
2009
by: Henri Schomäcker | last post by:
Hi folks, I have a quite big class, which I want to use on UNIX-like systems and on win32. Until now, everything is absolutely portable. But now I need to read a directory and use the os dependent functions. So need to define and include different libraries and functions for both OS-types. How can I do this using e.g. compiler #define's that all compilers understand? And can I do this also inside of a function?
1
2138
by: webguynow | last post by:
I'm trying to build a good DB Layer on top of Pear::DB Are there any forums or knowledge base sites on this direct topic ? I've been using the documentation at: http://pear.php.net/package/DB/docs But since I'm not always online, is there a way I can download this ? Or if the documentation is derived from the classes, How can I build it?
6
9214
by: sambuela | last post by:
How can I write message to the file located in the wwwroot directory? It seems that IIS protect these files. Let make me cannot do the I/O writing sucessfully. I try to open file's write privileage by file manager and IIS manager. However, one PC is okay and another PC is not. Any help on this will be greatly appreciated. Regards, --sambuela
4
1932
by: marcmc | last post by:
Hi, I hope to create a XML file that will hold my Connection data to a SQL Db. I want to write an XML file from 4 Text Box named UserName, Password, Database & Server and later read from it. My XMLSchema elements are named dbLogin, dbPassword, dbDatabase & dbServer I receive a 'System.NullReferenceException Info: Object refernece not set to an instance of an object' on the following line of code: dtSettings = Settings.Tables("Settings")...
2
1486
by: Tull Clancey | last post by:
Hi all. I'm nearing completion of a host app that needs to send data to, and receive data back from a portable, an HP device. The application running on the portable will be a .net application. Basically I need to know the best practice, or most reliable way of sending and receiving data on a serial connection. In VB6/EVB I used to use the RAPI commands for sending data, until the 2003
6
1314
by: Timothy Madden | last post by:
Hello I have an application using an internal database (user doesn't know about it) and I would like to know if I can use some IBM product with a run-time that I could emmbed in my app and redistribute, to provide SQL access to database and possibly to let me create the database on first run (after my app is installed). All that without the user having to provide me an working instalation of a server. I would like just some lite...
0
1824
by: musosmiffy | last post by:
Hi, I have been trying to get the following working for days - I wonder if anyone could help me? I am trying to list a set of database entries as a newspaper column. I am using classic ASP (not NET). It would seem that things fail when the code gets to if DataArray(i,j) <> "" then The following code has been working great when connected to an Access database. I wish to swop the database to MySQL. I have proven that I am connecting OK...
36
2355
by: CK | last post by:
How do I write a set based query? I have a groupSets table with fields setId, idField, datasource, nameField, prefix, active Data: 1,someIDfield, someTable, someField, pre1, 1 2,someotherIDfield, someTable, someotherField, pre2, 1 3,somethirdIDfield, someTable, somethirdField, pre3, 1 4,somefourthIDfield, someotherTable, somefourthField, pre4, 1 I need to generate records in another table by constructing queries from the data in groups...
0
7854
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8349
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7978
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8221
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5722
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5395
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3845
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1455
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1192
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.