ASP DNS Connections

From Lunarpages Web Hosting Wiki
Jump to: navigation, search

Q: Do your servers support DSN connections?

A: Since DSN connections are only for Microsoft based servers, we do not support DSN connections at the moment. You will need to utilize DSN-less connections.

A DSN-less connection is a method of connecting to a database without specifying a named data source. DSN-less connections don't require the creation of an ODBC DSN. Instead of relying on information stored in a file or in the system registry (as DSN connections do), DSN-less connections specify the driver name and all driver-specific information in the connection string.

connect_string = "Driver={Mysql}; Server=localhost; Database=mydatabase; UID=myuser; PWD=Shh!-dont_tell!"
Share |
Want to read this in another language?