Are you saying that that you have
two separate ODBC drivers? If so, that doesn't make sense. The ODBC driver is specific to the back end. If you are using "MS SQL" (SQL Server?), then you only need a driver for that back end. It doesn't matter how many databases you have on the back end. You will only need one driver.
If you are asking how to access two
databases from the same form, that's another matter. Assuming you are using SQL Server, you simply add the database name to the table / schema path, using a dot as the separator. So, for example, if you want to get data from a Customer table, you would normally do this:
Code:
SELECT Name, ID, ... FROM Customer
This assumes that Customer is a table in the default database.
But if you want to get data from a Customer table in a
different database, you would do this:
Code:
SELECT Name, ID, ... FROM [b]Test.[/b]dbo.Customer
where Test is the name of the database (and dbo is a place-holder for the schema name).
Keep in mind that the above syntax is specific to SQL Server. It will be different for other back ends.
Does that answer your question?
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro articles, tips and downloads