Home > Software engineering >  Vb connection. SDF database
Vb connection. SDF database

Time:09-18

Dim aa As String
Dim conn As New ADODB library. The Connection, the rs As New ADODB. You
Aa="Provider=Microsoft. Essentially. CE. The OLEDB. 3.5. The Data Source=D: \ Data. SDF; SSCE: DataBase Password="
Conn. Open aa
No password, the database can be used in open but the use of VB connection is not successful, which ace to give directions,
Online to see another option is to Imports System. Data. SqlServerCe found to be invalid external call, after I try to please the great god to give directions, thank you

CodePudding user response:

http://bbs.csdn.net/topics/392143402

CodePudding user response:

We recommend you do
A, you use adodc control first, then the control right select properties on the connection data operation, you select the "connection string" generated, and then select your engine, will generate connection string, you can operate it by adodc database,
Two, if you are to use references ado to connect to the database, then you will be automatically generated by the connection string, copy it out on your aa="" quotation marks inside the place to go, you can operate it by reference to ado database

I estimate that the problem is "Microsoft. Essentially. CE. The OLEDB. 3.5", if not the database engine
  • Related