Hi, thanks in advance.
I am using vfp6 to attach to Sql 7/2000 databases. I can connect on my system using a connection string and do what I want. BUT
What I need to do is to be able to have the users connect to different Sql databases. The structure and format of the databases will be the same. Each user will have many different SQL Databases to connect to and work with.
Where I am having the problem is creating a command base connection string to access the SQL DBF.
In my project I have a database
Under the data Tab I have:
Databases
EmpConver
Tables
Table1
Tabel2
Etc…
Remote View
V_Per_master
V_val_ValTabel1
V_val_tabTable2
Etc..
Connections
EmpConnections
Here is the connection string :
DRIVER=SQL Server;SERVER=XXXsql;UID=CONVERSION;PWD=123456;APP=Microsoft® Visual FoxPro®;WSID=JAG;DATABASE=SJIMGTEST
Should I set this up using command line in my startup program instead of using the project manager?
Is there a way to use this connection string from a program. When I use it I always get the request for the password even if the connection is has the button “Display ODBC Login prompts” set to never
What I now want to do is change the connection on the fly to a new database. It will always have the same table structure and layout just different names.
I could use variables for the Server, data name, password and users
Thanks for any help you can give I know Im making this harder then it is.
Jim
I am using vfp6 to attach to Sql 7/2000 databases. I can connect on my system using a connection string and do what I want. BUT
What I need to do is to be able to have the users connect to different Sql databases. The structure and format of the databases will be the same. Each user will have many different SQL Databases to connect to and work with.
Where I am having the problem is creating a command base connection string to access the SQL DBF.
In my project I have a database
Under the data Tab I have:
Databases
EmpConver
Tables
Table1
Tabel2
Etc…
Remote View
V_Per_master
V_val_ValTabel1
V_val_tabTable2
Etc..
Connections
EmpConnections
Here is the connection string :
DRIVER=SQL Server;SERVER=XXXsql;UID=CONVERSION;PWD=123456;APP=Microsoft® Visual FoxPro®;WSID=JAG;DATABASE=SJIMGTEST
Should I set this up using command line in my startup program instead of using the project manager?
Is there a way to use this connection string from a program. When I use it I always get the request for the password even if the connection is has the button “Display ODBC Login prompts” set to never
What I now want to do is change the connection on the fly to a new database. It will always have the same table structure and layout just different names.
I could use variables for the Server, data name, password and users
Thanks for any help you can give I know Im making this harder then it is.
Jim