vba - What determines which connection string to use for SQL Server database for each client computer? -


we have 1 sql server 2012 database (on remote server) connecting 3 different client computers via excel add-in. original connection string used worked fine 2 of computers. however, third computer, reason had use different connection string same exact database.

the first 2 computers operating on windows 7 pro, 64-bit , original connection string use them is:

provider=sqlncli11;server={myserver};database={mydb}; ... 

the third computer operating on windows 7 enterprise, 64-bit , original connection string had use is:

provider=sqloledb;datasource={myds};initialcatalog={mydb};  ... 

why have use 2 different connection strings same database? besides type of database itself, determines connection string , provider use? drivers installed on each client computer? if so, how account that? or... else?

any , advice appreciated!

provider tells client machine network/connection library use when connecting database server. use provider, have have installed. use provider performance, functionality , support reasons. example, sqlncli11 comes sql server 2012. if client machine not have sql 2012 client libraries installed, cannot use provider, nor client connection features supports, such alwayson (application intent readonly, etc.)

sqloledb old school stuff, don't know if installed default nowadays or not. if have that, won't have access above mentioned functionality, or other specific sql related client connectivity functionality (like mirroring's failoverpartner parameter) in connection string.


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -