XPO connectionstring connection string of each database

Source: Internet
Author: User
Tags mssqlserver

It is impossible to identify the database type by a connection string. so, XPO requires you to add an additional parameter into the connection string to specify the provider type. the parameter name is XpoProvider. so, the connection string will be like this:XpoProvider = Provider name; Connection string.You can obtain the provider name from a XpoProviderTypeString public constant. Each provider has this constant defined. Below is a list of values of the XpoProvider parameter for each existing database provider:

AccessConnectionProvider: MSAccess
XpoProvider = MSAccess; Provider = Microsoft. Jet. OLEDB.4.0; Data Source = C: \ mydatabase. mdb; User Id = admin; Password =;
DataSetDataStore: XmlDataSet
XpoProvider = XmlDataSet; Data Source = C: \ mydatabase. xml; Read Only = false
InMemoryDataStore: InMemoryDataStore
XpoProvider = InmemoryDataStore; Data Source = C: \ mydatabase. xml; Read Only = false
MSSqlConnectionProvider: MSSqlServer
XpoProvider = MSSqlServer; Data Source = (local); User ID = username; Password = password; Initial Catalog = database; Persist Security Info = true
AdvantageConnectionProvider: Advantage
XpoProvider = Advantage; \ myserver \ myvolume \ mypat \ mydd. add; ServerType = local; User ID = ASSSYS; TrimTrailingSpaces = true
AsaConnectionProvider: Asa
XpoProvider = Asa; Uid = MyUsername; PWD = MyPassword; DBF = c: \ mydatabase. db; Persist Security Info = true
AseConnectionPrvider: Ase
XpoProvider = Ase; Port = 5000; Data Source = MyAseServer; User ID = MyUserName; Password = MyPassword; Initial Catalog = MyDatabase; Persist Security Info = true
DB2ConnectionProvider: DB2
XpoProvider = DB2; Server = MyAddress: MyPortNumber; User ID = MyUserName; Password = MyPassword; Database = MyDatabase; Persist Security Info = true
FirebirdConnectionProvider: Firebird
XpoProvider = Firebird; DataSource = localhost; User = SYSDBA; Password = masterkey; Database = MyDatabase. fdb; ServerType = 0; Charset = NONE
MSSqlCEConnectionProvider: MSSqlServerCE
XpoProvider = MSSqlServerCE; Data Source = MyDatabase. sdf; Password = MyPassword
MySqlConnectionProvider: MySql
XpoProvider = MySql; Server = MyServerAddress; User ID = MyUserName; Password = MyPassword; Database = MyDatabase; Persist Security Info = true; Charset = utf8
ODPConnectionProvider: ODP
XpoProvider = ODP; Data Source = TORCL; User ID = MyUserName; Password = MyPassword
OracleConnectionProvider: Oracle
XpoProvider = Oracle; Data Source = TORCL; User ID = MyUserName; Password = MyPassword
PervasiveSqlConnectionProvider: Pervasive
XpoProvider = Pervasive; Server = MyServerAddress; UID = MyUserName; PWD = MyPassword; ServerDSN = MyDatabase
PostgreSqlConnectionProvider: S
XpoProvider = s; Server = 127.0.0.1; User ID = MyUserName; Password = MyPassword; Database = MyDatabase; Encoding = UNICODE
SQLiteConnectionProvider: SQLite
XpoProvider = SQLite; Data Source = filename
VistaDBConnectionProvider: VistaDB
XpoProvider = VistaDB; Data Source = C: \ mydatabase. vdb4

See Also:
How to connect XPO to a database other than SQL Server or Access
Database Engines Supported by XPO
The Connection String Reference
How to use ms SQL Server instead of MS Access as a persistent storage

 

Http://www.devexpress.com/Support/Center/p/K18445.aspx

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.