.NET Framework Data Provider for ODBC
2012-10-17 16:18
549 查看
Connection strings for Sybase Adaptive
Providers for Sybase AdaptiveASE ADO.NET Data Provider (AseConnection)
Adaptive Server Anywhere OLE DB Provider
Adaptive Server Anywhere ODBC Driver
Sybase ASE OLE DB Provider
.NET Framework Data Provider for OLE DB (OleDbConnection)
Adaptive Server Enterprise ODBC driver
Intersolv 3.60
Intersolv 3.10
Sybase SQL Anywhere (former Watcom SQL) ODBC driver
.NET Framework Data Provider for ODBC (OdbcConnection)
Community Forums
Find solutions and post questions regarding connection string related issues.
Forum for Sybase Adaptive
ASE ADO.NET Data Provider
TYPE .NET Framework Class LibraryUSAGE Sybase.Data.AseClient.AseConnection
MANUFACTURER Sybase
More info and class library Downloads »
Set example values
Standard
Data Source='myASEserver';Port=5000;Database=myDataBase;Uid=myUsername;Pwd=myPassword;
Using the sql.ini file
If the server isn't aliased, you have to use the ip address and port number in the connection string, not ideal as these may change occassionally. Installing sybase on a machine, you will have a "sql.ini" file that maps an alias name to an ip address and a port. That file can be rolled out to all users, and the sql.ini updated when necessary. Use the following connection string to force the AseConnection object to use the interface file.DSURL='file://c:\sybase\ini\sql.ini?SQL_MIDOFF_OPC1';Database=myDataBase;UID=myUsername;
PWD=myPassword;APP=myAppName;
Adaptive Server Anywhere OLE DB Provider
TYPE OLE DB ProviderUSAGE Provider=ASAProv
MANUFACTURER Sybase
More info and provider Downloads »
Set example values
Standard
Provider=ASAProv;Data source=myASA;
TCP/IP
Provider=ASAProv.90;Eng=server.database_name;Uid=myUsername;Pwd=myPassword;
Links=tcpip(Host=servername);
Use this when connecting to a server located on the other side of a router. Without the Links=tcpip(Host=servername) the error "Server could not be found" can arise when connecting.
Adaptive Server Anywhere ODBC Driver
TYPE ODBC DriverUSAGE Driver=Adaptive Server Anywhere 7.0
MANUFACTURER Sybase
More info and driver Downloads »
Set example values
Standard
Driver=Adaptive Server Anywhere 7.0;ENG=server.database_name;UID=myUsername;
PWD=myPassword;DBN=myDataBase;LINKS=TCPIP(HOST=serverNameOrAddress);
Specific port
Driver=Adaptive Server Anywhere 7.0;ENG=server.database_name;UID=myUsername;
PWD=myPassword;DBN=myDataBase;LINKS=TCPIP(HOST=serverNameOrAddress:1234);
Multiple servers
Driver=Adaptive Server Anywhere 7.0;ENG=server.database_name;UID=myUsername;
PWD=myPassword;DBN=myDataBase;LINKS=TCPIP(HOST=Server1,Server2);
Multiple servers with different TCP/IP ports
Driver=Adaptive Server Anywhere 7.0;ENG=server.database_name;UID=myUsername;
PWD=myPassword;DBN=myDataBase;LINKS=TCPIP(HOST=Server1:3322,Server2:7799);
Sybase ASE OLE DB Provider
TYPE OLE DB ProviderUSAGE Provider=ASEOLEDB
MANUFACTURER Sybase
More info and provider Downloads »
Set example values
With Data Source .IDS file
Provider=Sybase ASE OLE DB Provider;Data source=myASE;
Note that you must create a Data Source .IDS file using the Sybase Data Administrator. These .IDS files resemble ODBC DSNs.
Adaptive Server Enterprise (ASE) alternative 1
Provider=Sybase.ASEOLEDBProvider;Srvr=myASEserver,5000;Catalog=myDataBase;
User Id=myUsername;Password=myPassword;
Some reports on problem using the above one, try the following as an alternative.
Adaptive Server Enterprise (ASE) alternative 2
Provider=Sybase.ASEOLEDBProvider;Server Name=myASEserver,5000;
Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword;
Some other reports on problem using the above one, try the following as an alternative
Adaptive Server Enterprise (ASE) 12.5
Provider=Sybase.ASEOLEDBProvider.2;Server Name=myASEserver;Server Port Address=5000;
Initial Catalog=myDataBase;User ID=myUsername;Password=myPassword;
This one works only from Open Client 12.5 where the server port number feature works, allowing fully qualified connection strings to be used without defining any .IDS Data Source files.
Adaptive Server Enterprise (ASE) 15.0
Provider=ASEOLEDB;Data Source=myASEserver:5000;Catalog=myDataBase;User Id=myUsername;
Password=myPassword;
Adaptive Server Enterprise (ASE) 15.0 alternative
This one is included because of reported problems with using the "Catalog" key which was solved by using the 12.5 syntax key "Initial Catalog" instead.Provider=ASEOLEDB;Data Source=myASEserver:5000;Initial Catalog=myDataBase;
User Id=myUsername;Password=myPassword;
.NET Framework Data Provider for OLE DB
TYPE .NET Framework Wrapper Class LibraryUSAGE System.Data.OleDb.OleDbConnection
MANUFACTURER Microsoft
More info and wrapper class library Downloads »
Set example values
Bridging to Adaptive Server Anywhere OLE DB Provider
This is just one connection string sample for the wrapping OleDbConnection class that calls the underlying OLEDB provider. See respective OLE DB provider for more connection strings to use with this class.Provider=ASAProv;Data source=myASA;
Adaptive Server Enterprise ODBC driver
TYPE ODBC DriverUSAGE Driver={Adaptive Server Enterprise}
MANUFACTURER Sybase
More info and driver Downloads »
Set example values
Adaptive Server Enterprise 15.0
Driver={Adaptive Server Enterprise};app=myAppName;server=myServerAddress;
port=myPortnumber;db=myDataBase;uid=myUsername;pwd=myPassword;
The key "app" is optional
Standard Sybase System 12 Enterprise Open Client
Driver={SYBASE ASE ODBC Driver};Srvr=myServerAddress;Uid=myUsername;Pwd=myPassword;
Standard Sybase System 12.5 Enterprise Open Client
Driver={SYBASE ASE ODBC Driver};NA=Hostname,Portnumber;Uid=myUsername;Pwd=myPassword;
TDS based ODBC driver (from Sybase OCS 12.5)
Driver={Sybase ASE ODBC Driver};NetworkAddress=myServerAddress,5000;Db=myDataBase;
Uid=myUsername;Pwd=myPassword;
Standard Sybase System 11
Driver={SYBASE SYSTEM 11};Srvr=myServerAddress;Uid=myUsername;Pwd=myPassword;
Database=myDataBase;
Intersolv 3.60
TYPE ODBC DriverUSAGE Driver={INTERSOLV 3.60 32-BIT Sybase}
MANUFACTURER DataDirect Technologies
More info and driver Downloads »
Set example values
Standard
Driver={INTERSOLV 3.60 32-BIT Sybase};Srvr=myServerAddress;Database=myDataBase;
Uid=myUsername;Pwd=myPassword;
Intersolv 3.10
TYPE ODBC DriverUSAGE Driver={INTERSOLV 3.10 32-BIT Sybase}
MANUFACTURER DataDirect Technologies
More info and driver Downloads »
Set example values
Intersolv 3.10
Driver={INTERSOLV 3.10 32-BIT Sybase};Srvr=myServerAddress;Uid=myUsername;
Pwd=myPassword;
Sybase SQL Anywhere (former Watcom SQL) ODBC driver
TYPE ODBC DriverUSAGE Driver=Sybase SQL Anywhere 5.0
MANUFACTURER Sybase
More info and driver Downloads »
Set example values
Default local database engine
Driver={Sybase SQL Anywhere 5.0};DefaultDir=c:\dbfolder\;Dbf=c:\mydatabase.db;
Uid=myUsername;Pwd=myPassword;Dsn="";
The empty DSN parameter could be critical if experiencing error 7778.
Remember to start the connection string with "odbc:" if you are using PHP PDO_ODBC
Database engine not running
Driver={Sybase SQL Anywhere 5.0};Uid=myUsername;Pwd=myPassword;
EngineName=myServerAddress;DatabaseName=myDataBase;Start=c:\sqlany50\win32\dbclient.exe;
DatabaseSwitches=-commandSwitch1 -commandSwitch2;DatabaseFile=c:\pb\ex\psdemodb.db;AutoStop=NO;
If AutoStop is set to YES then the database is unloaded automatically as soon as there are no more open connections to it.
When the engine starts the database specified by DatabaseFile, the engine will use the supplied DatabaseSwitches as command line options to determine startup options for the database. The Sybase manual contains a List of DatabaseSwitch values.
.NET Framework Data Provider for ODBC
TYPE .NET Framework Wrapper Class LibraryUSAGE System.Data.Odbc.OdbcConnection
MANUFACTURER Microsoft
More info and wrapper class library Downloads »
Set example values
Bridging to Adaptive Server Enterprise ODBC driver
This is just one connection string sample for the wrapping OdbcConnection class that calls the underlying ODBC Driver. See respective ODBC driver for more connection strings to use with this class.Driver={Adaptive Server Enterprise};server=myServerAddress;port=myPortnumber;
db=myDataBase;uid=myUsername;pwd=myPassword;
相关文章推荐
- Comparing the Microsoft .NET Framework 1.1 Data Provider for Oracle and the Oracle Data Provider for .NET
- .NET Compact Framework Data Provider for SQL Server CE
- No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClie
- 如何添加".Net Framework Data Provider for MySQL"配置信息到目标主机中?
- EF Provider for Access/ODBC 以及ADO.Net Entity Framework 与Linq to SQL的比较和适用场景
- 在 .NET Framework Data Provider for Microsoft SQL Server Compact 3.5 中发生错误
- 如何添加".Net Framework Data Provider for MySQL"配置信息到目标主机中?
- EF Provider for Access/ODBC 以及ADO.Net Entity Framework 与Linq to SQL的比较和适用场景:
- .NET Framework Data Provider for SQL Server
- CodeSimth - .Net Framework Data Provider 可能没有安装。解决方法[转载 ]
- Retrieve multiple Oracle Ref Cursor using .NET data Provider for Oracle
- 找不到请求的 .Net Framework Data Provider。可能没有安装
- 找不到请求的 .Net Framework Data Provider
- entity framework 连接 oracle 发布后出现的问题(Unable to find the requested .Net Framework Data Provider)
- 找不到请求的 .Net Framework Data Provider。可能没有安装
- MVC项目使用Oracle数据库运行提示:找不到请求的 .Net Framework Data Provider。可能没有安装
- Oracle Data Provider for .NET
- 找不到请求的 .Net Framework Data Provider。可能没有安装. .
- Oracle Data Provider for .NET 的使用经验(1)
- Oracle Data Provider for .NET连接oracle数据库(02)