What is the difference between these two SQL Server connection strings

user2753523

When I use the following connection strings, the first one is working and the second is not working on my system. May I know the difference between these two connections strings?

DSN=ABCD;DATABASE=db1;UID=userid;PWD=passwd

and the second one

Data Source=ABCD;DATABASE=db1;UID=userid;PWD=passwd

Error thrown by second string

[unixODBC][Driver Manager]Data source name not found, and no default driver specified (0) (SQLDriverConnect)

I am new to using SQL Server, so confused the difference between DSN and Data Source

Rahul Tripathi

There can be many reasons as to why your second connection string is not working. You need to check Why do I get error "Data source name not found and no default driver specified"?

The ODBC Driver Manager relies on the Driver attribute to know which ODBC driver to load.

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

Two sided PDFs, what's the difference?

What is the difference between (a+b)* and (a*b*)*?

what is the difference between SAS ARRAY and SAS IF-THEN

What is the difference between /opt and /usr/local?

sql server 中的 between 子句

SQL Server 2008 BETWEEN函数

What is the difference between Runtime Exception in java and Runtime Error in java?

What's the difference between `make:console` and `make:command`?

What is the difference between PWA and Angular 2/4 application?

事务内的SQL Server 2014 sp_reset_connection行为

Calculating time difference in hours between two different rows per gorup with a 'lag' in one column

如何在SQL Server中封装Between语句

What is the difference between running a .bat from cmd line vs. double click?

What is the difference between parametric polymorphism with upper-bound and subtype polymorphism in these methods?

What is the difference between component 'mat-table' and the directive '<table mat-table>'?

在Sql Server Profiler中,“ exec sp_reset_connection”是什么意思?

尝试从SQL Server Profiler获取过程名称时,显示“ sp_reset_connection”

Python ODBC使用服务帐户连接到SQL Server(trusted_connection = no)

Matlab - [Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmt

如何在Azure VM USign Hybrid Connection Manager中从SSMS连接到OnPremise SQL Server

Difference between mail and mailx?

Difference between nohup, disown and &

SQL Server AND AND OR AND AND AND

Difference between @Inject and @ValueMapValue annotations

A difference between Unicode and ASCII operators

SQL Server:具有Between函数的GETDATE不会返回所需的数据

SQL Server 上的 ASP 經典選擇日期 BETWEEN 日期

Connection to two different databases in Spring JPA fails

What is the difference between `java -Dspring.profiles.active -jar xxx.jar` and `java -jar xxx.jar --spring.profiles.active`