Visual studio 2010 and Mysql server - c++

I am trying to connect VS2010 and mySQL server to write simple console application.
For 3 days i am trying to set everything up,but no luck.
I have some skills in c++ OOP,but never done anything like this.
So can someone point mi to tutorial or help here ,how to install and prepare all this thing before i could write any code.
i am using:
mysql server 5.6 and
mysql connector c++
Main problem is mysql connector/c++ i followed documentation on their site but it is too hard for me.(what are boosts,Cmake).

I guess you need .NET connector.
http://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/7bd1889e-f169-4c14-9a55-7043a5dd8881
http://www.c-sharpcorner.com/UploadFile/65fc13/working-with-mysql-to-visual-studio-2010/

Related

Visual studio: No sql server compact option in data connections

It is really unbelievable that I am not able to find such a simple thing, I have searched everywhere.
Actually I want to open sdf file which is a part of my project. I found that it can be opened with sql server management studio, external tools etc. but I want to open it in Visual studio by adding a simple data connection.
Am I asking too much? But Man! I am not able to find this simple thing on internet.
I my add connection window I don't see option for sql server compact data connection.
I already installed compact edition and when I am trying to install it again it is saying that it is already installed.
But for some reason visual studio is not showing up in the list of Data Sources Types.
I found this question, he is facing the same issue and his issue was also not resolved even after applying what was told in the answer
Adding SQL Server Compact Edition data source to Visual Studio?
Could somebody help to get this simple thing working?
Install the SQL Server Compact Toolbox, it will also install a DDEX provider, that allows you to connect in Server Explorer (for 4.0 only, however)

Simple c++ program with mysql DataBase connection using Eclipse on Ubuntu

So, the title says it all.
How can i create a simple c++ application on ubuntu and connect it to a simple mysql DataBase?
Is there a good link or description that I can go with ?
I want to make a simple web service for now and then make it more complex to fit my needs and embbed my c++ code that I already got.
I am using Ubuntu 12.04 LTS.
Thanks in advance.

Saving to a Database using C++

I am developing a C++ application and I have a problem when it comes to save ta a database.
I am using Visual Studio 2010 and the database that I am using is the Microsoft SQL Server Database.
Can please someone help to achieve this task since I am a beginner in C++?
If you're working with MS tools, you want to use the SQL Server Native client

Is there any way to connect to oracle db using simple c++ not vc++ or proc

I am struggling to connect to oracle db using GNU C++.Is there any library which I have to install to connect to oracle db using simple c++ (oops).
Please provide me some sample code as well, this is new for me. Appreciate your help.
I asked a similar question before but forgot to mention that I am not using vc++ and proc.
You would need the oracle C++ libraries (OCCI) from oracle. You can find them here:
http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html
Google "Oracle OCCI tutorial" and you should find pretty much everything you need.
Check out SOCI. It supports several database backends, including Oracle, MySQL, Postgre, ODBC, etc. Using this library would make it easier for you to migrate your application to a different DB, if necessary.
There's a code sample here. And several more peppered in the documentation.

Connecting to oracle database using C++, the basics

i have a question about the theory here, i'm just starting a project which is based on C++ applications integrating with oracle DB's, i've came to two choices, OCCI, and OCI
the OCCI is said to be aimed at C++ environment, but i was wondering, if it would be any good to use the OCI libraries from my C++ app since it is said to have better performance, or would i run into compatibility issues ?
thanks in advance :)
You can have a look at OTL it's a wrapper above the OCI or OCCI (not sure) will give some templates and samples to start with oracle connection in c++.
In my case, my company have about a thousand stores.
To connect Oracle / Oracle thru an MS C++ multi-thread service we perform the following tests on each thread:
Validate DNS (gethostbyname)
Try to open SCManager of the store (OpenSCManager)
Verify if Oracle Service exists on the store (OpenService)
Verify if Oracle Service is running (QueryServiceStatus)
After all, we try to connect (ado->Open)
This procedures minimize possible errors like 0xE06D7363 when connecting to a external server.