Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't add SQL Compact Edition to my VB.net Application

I am new to using SQL Compact Edition with VB.net 2012.

I have come across the following site that should hopefully help me get started: http://sharecom-clemo.blogspot.com.au/2012/05/code-sample-demonstrating-how-to_07.html

However it says 'Go to the References page of the project properties and reference the SQL Server CE assembly first. Then you can import the SQL Server CE namespace.'

I hope I am correct in doing this by click on 'Project' > 'Add Reference'

Then choosing 'Microsoft SQL Server Compact Control'.

However when selecting that and clicking on 'OK' I get a error not allowing me to add it as it says that it can't register the ActiveX type library.

enter image description here

Does anyone know what I am doing wrong, and is this what I should be doing?

like image 425
Aaron Avatar asked Dec 03 '25 23:12

Aaron


1 Answers

Go to the Assemblies tab (not COM), and browse to C:\Program Files (x86)\Microsoft SQL Server Compact Edition\v4.0\Desktop and a a reference to System.Data.SqlServerCe.dll

like image 65
ErikEJ Avatar answered Dec 05 '25 12:12

ErikEJ



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!