how to connect a remote mssql database in PB?

Just starting out? Need help? Post your questions and find answers here.
end7
User
User
Posts: 10
Joined: Thu Jun 01, 2006 9:07 am

how to connect a remote mssql database in PB?

Post by end7 »

how to connect a remote mssql database in PB?
anybody can help me?
Tranquil
Addict
Addict
Posts: 952
Joined: Mon Apr 28, 2003 2:22 pm
Location: Europe

Post by Tranquil »

On a windows system you can use the ODBC driver provided by M$. On my XP its installed as default. You just need to go to your ODBC configuration tool and set up a user DNS for this.

After that, you can use OpenDatabase() to connect to the server.
If you want to create the ODBC connection withing your code, just do a search on the purearea.net .

http://www.purearea.net/pb/CodeArchiv/D ... the-fly.pb

I think this is what you are searching for.
Tranquil
Post Reply