Export SQL Query

Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Mar 2008
Posts: 64
Reputation: Maulth is an unknown quantity at this point 
Solved Threads: 5
Maulth Maulth is offline Offline
Junior Poster in Training

Export SQL Query

 
0
  #1
May 14th, 2008
I've posted something along these lines before, but it's a tad bit different this time, hopefully some of you can point me in the right direction.
I'm designing a tool that will make adding things to a database easy for people not familiar with SQL, it will basically export a query to the SQL server, and I don't really know how to do that. It will require authentication for the SQL (MySQL 5.0). Any help you can give me would very much be appreciated.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,678
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1503
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: Export SQL Query

 
0
  #2
May 14th, 2008
I'm confused -- you want to write a c++ SQL class but you don't know the SQL language yourself ??
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 64
Reputation: Maulth is an unknown quantity at this point 
Solved Threads: 5
Maulth Maulth is offline Offline
Junior Poster in Training

Re: Export SQL Query

 
0
  #3
May 14th, 2008
No, I'm sorry I just re-read that first post, I was tired when I made it, let me revise.
I'm writing a tool that will be used to create an SQL file. I know the table structure for the SQL, I just want to know how I get it to the MySQL server, actually have the program export it to the server. Sorry for my fragmented post earlier.

I saw something in an earlier post, called ODBC or something like that, would that be beneficial?
Last edited by Maulth; May 14th, 2008 at 7:15 pm.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,678
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1503
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: Export SQL Query

 
0
  #4
May 14th, 2008
yes, ODBC is one way, and is supported by most, if not all, modern SQL compliant data bases. There are already several free odbc c++ classes. So what you are trying to do has already been done several times in the past 10 or so years.

For MySql specifically, you can download free MySQL++.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 64
Reputation: Maulth is an unknown quantity at this point 
Solved Threads: 5
Maulth Maulth is offline Offline
Junior Poster in Training

Re: Export SQL Query

 
0
  #5
May 14th, 2008
Thank you Ancient.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:




Views: 1072 | Replies: 4
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC