Change your OLEDB connectionstring:
Dim rdaOleDbConnectionString As String = "Provider=SQLOLEDB;Data Source=SKYWALKER;Initial_ Catalog=ristobar;User ID=MobileUser;Password=pippo;"
or
Dim rdaOleDbConnectionString As String = "Provider=SQLOLEDB;Data Source=192.168.0.199;Initial_ Catalog=ristobar;User ID=MobileUser;Password=pippo;"
Thanks for your reply Erik,
unfortunately it didn't work.
I tried both using Data Source=SKYWALKER and using Data Source=192.168.0.199 but I am receiving the same error.
Shall I use a particular port to connect to the SQL server
By the way....reading other posts I noticed a couple of things: 1) shall I indicate the full path of the SQL server That is, if SQL Server Express is running on my machine (default name SQLEXPRESS): 192.168.0.199\SQLEXPRESS,1433 Port 1433 should be opened, is that right
2) Shall I specify TCP/IP connection inside the connection string even if I am using a pocket pc emulator configured to use DMA access or it is not necessary
Thank you for your help
Cristian
You did not mentions SQL Server Express... Yes, a connection string with IP address and \SQLEXPRESS,1433 is required and port 1433 must be open for connections.
It is not required to specify TCP/IP connection in the connectionstrin when cradled via DMA.
You need to install the latest version of the SQL Compact Server Tools, build 5300. See this post:
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1368182&SiteID=1 for installtion tips
(install the msi from an elevated command prompt!)
The latest version of the tools can be downloaded from http://www.microsoft.com/downloads/details.aspx FamilyID=4e45f676-e69a-4f7f-a016-c1585acf4310&displaylang=en
After installation, the sqlcesa30.dll file should be build version 5300.
Also see this KB article, under the heading: Known issues for SQL Server Compact Edition 3.1 on Windows Vista
http://support.microsoft.com/ kbid=920700
Thanks again for your help.
I will try to install SQL Compact Server Tools at the link you specified from the command prompt (and will look to known issues on Vista)
Anyway I was pretty sure to have already installed that build...perhaps not in the right way.
If I am getting the same error after the installation sould I install MRDAC 2.8 or MRDAC 2.8 SP1 to solve this issue
Cristian
To get all the error information look at this sample: http://msdn2.microsoft.com/en-us/library/ms174079.aspx