` Printed Icetips Article

Icetips Article



SQL Related Articles: Connecting to a remote MSSQL databaes
2004-03-21 -- Mark Riffey
 
Newsgroups: sv.clarion.documentation

> It would be nice to have an example of how to connect to a remote database.
> Connecting to a SQL server on a local machine or LAN is pretty
> straightforward, but if I want my users to be able to connect to a MS SQL
> server running on machine SOLACE-2000 at IP address 81.133.147.54, what
> would be the connection string

Its slightly different than MySQL, but not much. The key is to use the IP
address, not the machine name, otherwise the string really doesnt change
for MSSQL. And open port 1433, if necessary.

Example for MSSQL:

Provider=SQLOLEDB.1;Password=yourpassword;Persist Security Info=True;User
ID=yourusername;Initial Catalog=yourcatalog;server=81.133.147.54

Mark



Printed November 21, 2024, 6:27 am
This article has been viewed/printed 35248 times.
Google search has resulted in 72 hits on this article since January 25, 2004.