DSN, DSN-less and OLEDB Connections, Which One?

Solution

When connecting�a database, DSN-less connections�are superior to System DSN connections in performance. However, there will be no noticeable improvement in performance for smaller sites which have few concurrent connections only.

Although a DSN-less connection is operationally identical to a DSN but it doesn't have to access registry during connecting process.�For DSN-less connection, all required information�will be specified in the connection string instead of storing in registry.

In practice, youre recommended to use OLEDB connections over these two type of�connections. Why? Its because OLEDB can provide better�performance in�database connections and faster access to data.

The Connection String for OLEDB would be:

"Provider=ProviderName; Data Source=DatabaseSource; Initial Catalog=DatabaseName; User ID=UserID; Password=Password"

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

SQL (Structured Query Language)

Solution The Structured Query Language (SQL) comprises one of the fundamental building blocks of...

How to change all MySQL database table collation

Solution After change the collation of a database, only the new tables will be created with the...

Do you guys support MySQL InnoDB Engine on your shared web hosting package?

InnoDB has had a history of being a unstable storage engine and InnoDB tables are very prone to...

Do you guys have a limitation on the database size on your shared web hosting package?

We will honestly answer you yes.The limit of our database is 300MB which is around 50,000-200,000...