DX devexpress xpoprovider database parameter connection Configuration

Source: Internet
Author: User
Tags mssqlserver
How to Create a correct connection string for xpo providers?

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 =; 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

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.