Sybase |
ODBC |
标准 Sybase System 12 (or 12.5) Enterprise Open Client |
"Driver={SYBASE ASE ODBC Driver}; Srvr=Aron1; Uid=username; Pwd=password" |
标准 Sybase System 11 |
"Driver={SYBASE SYSTEM 11}; Srvr=Aron1; Uid=username; Pwd=password; Database=mydb" |
Intersolv 3.10 |
"Driver={INTERSOLV 3.10 32-BIT Sybase}; Srvr=Aron1; Uid=username; Pwd=password;" |
Sybase SQL Anywhere (former Watcom SQL ODBC driver) |
"ODBC; Driver=Sybase SQL Anywhere 5.0; DefaultDir=c:dbfolder; Dbf=c:mydatabase.db; Uid=username; Pwd=password; Dsn=""""" |
OLE DB |
Adaptive Server Anywhere (ASA) |
"Provider=ASAProv; Data source=myASA" |
Adaptive Server Enterprise (ASE) with Data Source .IDS file |
"Provider=Sybase ASE OLE DB Provider; Data source=myASE" |
Adaptive Server Enterprise (ASE) |
"Provider=Sybase.ASEOLEDBProvider; Srvr=myASEserver,5000; Catalog=myDBname; User Id=username; Password=password" - some reports on problem using the above one, try the following as an alternative -
"Provider=Sybase.ASEOLEDBProvider; Server Name=myASEserver,5000; Initial Catalog=myDBname; User Id=username; Password=password" This one works only from Open Client 12.5 where the server port number feature works,following fully qualified connection strings to be used without definingfony .IDS Data Source files.
|
AseConnection (.NET) |
标准 |
"Data Source='myASEserver'; Port=5000; Database='myDBname'; UID='username'; PWD='password'; " |
定义AseConnection连接对象 |
C#: using Sybase.Data.AseClient; AseConnection oCon = new AseConnection(); oCon.ConnectionString="my connection string"; oCon.Open(); |
VB.NET: Imports System.Data.AseClient Dim oCon As AseConnection = New AseConnection() oCon.ConnectionString="my connection string" oCon.Open() |
|
Informix |
ODBC |
Informix 3.30 |
"Dsn=''; Driver={INFORMIX 3.30 32 BIT}; Host=hostname; Server=myserver; Service=service-name; Protocol=olsoctcp; Database=mydb; UID=username; PWD=myPwd" |
Informix-CLI 2.5 |
"Driver={Informix-CLI 2.5 (32 Bit)}; Server=myserver; Database=mydb; Uid=username; Pwd=myPwd" |
OLE DB |
IBM Informix OLE DB Provider |
"Provider=Ifxoledbc.2; password=myPw; User ID=myUser; Data Source=dbName@serverName; Persist Security Info=true" |
|
Ingres |
ODBC |
DSN-less |
"Provider=MSDASQL.1; DRIVER=Ingres; SRVR=xxxxx; DB=xxxxx; Persist Security Info=False; uid=xxxx; pwd=xxxxx; SELECTLOOPS=N; Extended Properties="""SERVER=xxxxx; DATABASE=xxxxx; SERVERTYPE=INGRES"" |
|
Mimer SQL |
ODBC |
标准安全 |
"Driver={MIMER}; Database=mydb; Uid=myuser; Pwd=mypw; " |
提示输入用户名和密码 |
"Driver={MIMER}; Database=mydb;" |
|
Lightbase |
标准 |
标准 |
"user=USERLOGIN; password=PASSWORD; UDB=USERBASE; server=SERVERNAME" |
|
PostgreSQL |
Core Labs PostgreSQLDirect (.NET) |
标准 |
"User ID=root; Password=pwd; Host=localhost; Port=5432; Database=testdb; Pooling=true; Min Pool Size=0; Max Pool Size=100; Connection Lifetime=0" |
PostgreSQL driver |
标准 |
"DRIVER={PostgreSQL}; SERVER=ipaddress; port=5432; DATABASE=dbname; UID=username; PWD=password; " |
Npgsql by pgFoundry (.NET) |
SSL activated |
"Server=127.0.0.1; Port=5432; Userid=myuserid; password=mypw; Protocol=3; SSL=true; Pooling=true; MinPoolSize=3; MaxPoolSize=20; Encoding=UNICODE; Timeout=20; SslMode=Require" |
Without SSL |
"Server=127.0.0.1; Port=5432; Userid=myuserid; password=mypw; Protocol=3; SSL=false; Pooling=true; MinPoolSize=1; MaxPoolSize=20; Encoding=UNICODE; Timeout=15; SslMode=Disable" |
|
Paradox |
ODBC |
5.X |
"Driver={Microsoft Paradox Driver (*.db )}; DriverID=538; Fil=Paradox 5.X; DefaultDir=c:pathToDb; Dbq=c:pathToDb; CollatingSequence=ASCII" |
7.X |
"Provider=MSDASQL.1; Persist Security Info=False; Mode=Read; Extended Properties='DSN=Paradox; DBQ=C:myDb; DefaultDir=C:myDb; DriverId=538; FIL=Paradox 7.X; MaxBufferSize=2048; PageTimeout=600; '; Initial Catalog=C:myDb" |
OleDbConnection (.NET) |
标准 |
"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=c:myDb; Extended Properties=Paradox 5.x;" |
|
DNS |
ODBC |
DSN |
"DSN=myDsn; Uid=username; Pwd=; " |
File DSN |
"FILEDSN=c:myData.dsn; Uid=username; Pwd=;" |
昵称:
退出登录 订阅评论
[Ctrl+Enter快捷键提交]
· Airbnb去年清掉923处不合规定的房源
· 谷歌开源“Guetzli”JPEG图像编码器:提升压缩比、网页加载更顺滑
· 万宝龙推出首款Android Wear智能手表
· Apple Music大使计划 推特推广可免费获得3个月会员
· Windows 10 Build 15060发布:本周的第三个版本更新
» 更多新闻...
· 垃圾回收原来是这么回事
· 「代码家」的学习过程和学习经验分享
· 写给未来的程序媛
· 高质量的工程代码为什么难写