ASP on WinCE5 IIS - connect to SQL Compact v3.5

Posted on 2011-10-17
Last Modified: 2013-12-27
We have some ASP code running on a WinCE 5 device with IIS. The ASP-app is connecting to a SQL Compact database (.sdf). The code is as follows:
Set cn = CreateObject("ADOCE.Connection.3.1")
 Set rs = CreateObject("ADOCE.Recordset.3.1")
 cn.Open "Provider=Microsoft.SqlServer.Mobile.OleDb.3.0; Data Source=\Flash Storage\database.sdf; SSCE:Database Password='12345'"
 rs.Open "SELECT * from table", cn

After we upgraded the SQL Compact file to v3.5 we are not able to connect anymore. We tried changing the provider to Microsoft.SqlServer.Mobile.OleDb.3.5 and also Microsoft.SqlServerCe.Client.3.5 , but we get the error
 Parse error in script
ASP scripting compilation error: '800a0e7a'
Description: ADO could not find the specified provider.
We tried installing the following files:
but still same error. Are we installing the correct files? and is the connection string correct?

Question by:kbjornst
    1 Comment

    Accepted Solution

    Solved it! Used provider Microsoft.SQLSERVER.CE.OLEDB.3.5 and installed

    worked great!

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Suggested Solutions

    In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
    In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
    This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
    Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now