Member Login

Username
Password
Forget Password
New Sign Up
Search Forum

Buy Support
Incidents

If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:

Click Here
If you can't login and post questions or you are having trouble viewing forum posts:
Click Here
Callback
Support

If you live in USA, UK, Canada, Australia or New Zealand, you can leave us details on your question and request us to call you back and discuss them with you personally  (charges apply).

Click Here
 
Buy Support
Incidents
If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:
Click Here

Forum : Using MySQL with VBDemoSearch Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC SQL Sample Scripts Forum

 New Topic 
 
 Post Reply 
[1]  
 Using MySQL with VBDemo 
 Author   Message 
  MrB398 
  
 Group: Members 
 Posts: 3 
 Joined: 2007-06-12 
 Profile
 Posted : 2007-06-12 23:34:20
I am in the process of inserting a lot of data into quickbooks. I have MySQL tables filled with information. I have VB Demo connected to my MySQL tables.

Now my question is how do i use VB Demo to actually import the data? Or do I have to write some procedures in navicat? If thats the case where does VB Demo come into play?

Im not a poor programmer, I just never had had to setup the appropriate connections and links before. 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-06-13 02:30:26

MySQL is a database product, not an ODBC front-end product. You need to use the tool you manipulate data with (ALpha, Access, Visual Basic, PHP etc.) to move the actual data between databases such as QuickBooks (via QODBC) and MySQL.

MySQL Server doesn't support the SELECT ... INTO TABLE Sybase SQL extension. Instead, MySQL Server supports the INSERT INTO ... SELECT standard SQL syntax, which is basically the same thing. For example:

INSERT INTO tbl_temp2 (fld_id)
    SELECT tbl_temp1.fld_order_id
    FROM tbl_temp1 WHERE tbl_temp1.fld_order_id > 100;

Alternatively, you can use SELECT ... INTO OUTFILE or CREATE TABLE ... SELECT.  As of MySQL 5.0, you can use SELECT ... INTO with user-defined variables. The same syntax can also be used inside stored routines using cursors and local variables.

You can't use VB Demo to do this because VB Demo only supports a single ODBC connection.

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to