SQL Server Compact 3.5/4.0 - Client / Server .sdf database file compatibility

I am considering connecting autonomous Windows Desktop PCs with SQL Server Compact 3.5 SP2 databases via an ASP Website and would like to provide database upload/download capabilities.
If I use SQL Server Compact 4.0 as the Website database, will the desktop and website files be interchangeable so database files can be uploaded and downloaded without conversion?
I presume that since the database structure is ado.net in both cases, it will not matter that the ASP website could be using Entity Framework and the Desktop PCs using Linq to SQL as OR/M?
Thanks for any guidance.
-BGood

>>  I can upload .sdf files to the ASP website and have the website convert to 4.0,
Yes, you can use SqlCeEngine.Upgrade for this
>> for download purposes I need to develop a REST API 
No neccesarily, as you could use my scripting libs to script the 4.0 database file to a script, then
create a new file (alos using my scripting libs) and run the script against the database file (also using my scripting libs) - all on the web server. Remeber to allow 3.5 to run on the web server: http://blogs.msdn.com/b/stevelasker/archive/2006/11/27/sql-server-compact-edition-under-asp-net-and-iis.aspx
Please mark as answer, if this was it. Visit my SQL Server Compact blog http://erikej.blogspot.com

Similar Messages

  • Windows 7 and SQL Server Compact 3.5

    Im trying to connect to a SQL Server Compact 3.5 that I have installed on Windows Embedded Compact 7 (Windows CE basically) running on ARM. I got the DB up and running but I cant connect to it.
    Ive read there is no ODBC driver for it. What is the best way to connect to it thru Windows 7?
    Thank you

    You cannot connect to SQL Server Compact remotely, it is an embedded, in-process database.
    If you can establish a ActiveSync/WMDC connection to your devcice, you can connect using SQL Server management Studio Express 2008 R2 (via the ActiveSync connection)
    Please mark as answer, if this was it. Visit my SQL Server Compact blog http://erikej.blogspot.com

  • Questions about downloading SQL Server Compact 3.5

    I want to use SQL Server Compact 3.5 with Microsoft Visual Basic 2008 Express Edition, but when I go to "Get It" it gives me two options: to download Visual Studio 2010, download Microsoft SQL Server Compact 3.5 Service Pack 2 for Windows
    Desktop or download Microsoft SQL Server Compact 3.5 Service Pack 2 Server Tools. Are any of the last two the actual SQL Server Compact 3.5 (or what do they mean with "Service Pack"?) or is there another way to download SQL Server Compact 3.5?

    Are any of the last two the actual SQL Server Compact 3.5 (or what do they mean
    with "Service Pack"?) or is there another way to download SQL Server Compact 3.5?
    Hello,
    This means it's an updated Version = SQL Server Compact 3.5 including Service Pack; you should download that "Microsoft SQL Server Compact 3.5 Service Pack 2"
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • FRM-40735 on the Web, in client/server without error

    We have 2 types of Form modules.
    Type 1 are simple multirecord modules,
    which uses PL/SQL library module PL1.plx.
    Type 2 are complex (master-detail) modules,
    which uses PL/SQL library module PL2.plx.
    In client/server, both types of Form modules work fine.
    On the Web (Intranet), type 1 modules works fine, but loading of type 2 modules finishes with error: FRM-40735 PRE-FORM trigger raised unhandled exception ORA-06508.
    In both cases database schema and fmx/plx modules are the same.
    Implementation of WebForms is noncartridge
    (without Oracle Application Server).
    Clients use Jinitiator and IE4.
    Forms version is 5 + patch 7.
    DBMS version is 7.3.4.0.
    Thanks and regards.

    Two questions:
    Are you running your application against one DB, while it was compiled against another?
    If any of your forms or libraries is calling DB stored package that are passing parameters in between database and modules?
    If the answer to both questions is yes, then you're dealing with Oracle bug. Oracle support points to interaction between forms
    PL/SQL 8.0.5.1.0 and database PL/SQL 2.3.4.
    This problem should be fixed in the forms
    PL/SQL 8.1.6 which is not available at present time. The only work around is to maintain forms executable and/or compiled libraries for each of your DB.
    Good luck.
    null

  • My Tcp/ip multi-client server is not passing the data string into the flatten to string vi

    I am using labview Multi-connection cleint and server to build my own multi-client server connection.
      The problem i am having is that the data does not get through the flatten to string vi. Would anyone be kind enough to tell me why is that happening? and what I do to fix it.
      Attached code . My goal is to send data to the client via tcp/ip and use the data to perform certain task.
      Thanks a whole lot
    Attachments:
    multiconnection-server.vi ‏39 KB
    multiconnection-client.vi ‏21 KB

    Instead, I decided to upload the code and recent mods I have made to it .
    see attached
    Attachments:
    multiconnection-clienttest.vi ‏43 KB
    multiconnection-servertest.vi ‏21 KB

  • Client\server Forms

    Oracle Forms6i in a client\server environment is a great product that still works very well for us. We do not need (or want) a web-based solution. Our system only needs to support our in-house users (about 400 currently).
    I am very disappointed in the direction that Oracle is forcing us to go (web-based) if we want to stay with the Oracle tools that we know well. This isn't so much a request for help, it's more an attempt to communicate to the Oracle Forms manager(s) that going away from client\server is very disappointing to us and looks to be a bad business decision.

    Mark,
    I must appologize, but I though that things are easier to search and find on this forum. I tried for half an hour but wasn't able to spot the main thread ;-(
    The summary of it is that there was a big discussion on this forum after Oracle announced its desupport date for Forms and Reports client/server (sometime in July if I remember well). Along with this desupport date there was a discussion whether or not Oracle Forms supports XP. The initial decision of not supporting XP was reverted and XP now is supported since patch 13.
    For client/server the desupport date is January 1st 2005 for error correction and January 1st 2008 for extended assistance support. Thus Forms6i client/server will be around until end of 2007.
    Most discussions on this forum were about the cost going with moving Forms to the Web, especially keeping in mind that client/server runtime was for free.
    Another issue was the size of the Oracle9iAS installation which is 6GB all in all though Forms users may not use all the Oracle Application Server components.
    Last but not least, many customers didn't feel ready to move their applications to the Web in this period of time, especially those that run character mode applications.
    The installation issue gets fixed with the upcoming Oracle Application Server 10g which has a installation option that only installs the software required to run Forms and Reports.
    The migration is assisted by a Forms Migration Assistant in Forms9i as well as material that we compiled and published on OTN. The WebUtil library finally was developed to close the gap between client/server functionality and teh Web functionality.
    I can't talk about pricing, because this is not in the scope of my professional work, but OTN offered a special upgrade promotion for Forms users when moving their applications to teh Web.
    Client/server as it is in Forms6i will not come back, this is how it seems.
    There have been discussions on this forum if one could simulate client/server using the Forms Web components installed on a local client. Webstart was mentioned as one possible solution as it would allow you to have Forms applications started and run from an icon on the user desktop. Currently there are some investigations in Forms development going into this direction.
    The majority of customers that posted their opinion on the client/server desupport did not like the client/server desupport plan at all.
    The OTN forum postings where brought to Oracle senior management attention by Forms Product Managers monitoring this list.
    The benefit of a Web only version of Forms - and you may disagree - is integration with the J2EE stack Oracle has within Oracle9iAS and OracleAS 10g.
    J2EE is a technology that more and more customers evaluate for future development efforts. Having Forms integrating with J2EE applications(as seamlessly as possible)is the best way to make sure that Forms users can leverage their investment in the Forms technology. Even more, you can extend Forms applications with J2EE or have it communicating with it (the same applies to Reports)
    Many new features that we implemented in Forms6i and Forms9i worked on the Web only (SSO, Enterprise Manager monitoring, client side Java etc).
    Mark, hope that this summary gives you a good idea of what the discussions were about and that we do care of what customers do with Forms.
    Just in case that I missed an argument or presented it too positive (my memory is subjective and not perfect), I am sure that the forum members which already contributed to this posting will add additional comments. Others may join in too.
    Frank

  • Host realtime server program on DAQ-PC or on Server

    As the attached diagram, we have existing system, now need to upgrade with realtime data polling function.
    Should I use solution 1 or 2. Any suggestion, thanks.
    Attachments:
    Diagram.JPG ‏40 KB

    According to me you should follow the step 1
    1. Real Time Server is directly connected with your Client application no database Server Required.
    2. Database server you can use only in the condition of generating the Historical Trend or various reports.
    3. Database server work independently to store your acquire the data.
    Thanks and Regards
    Himanshu Goyal
    Thanks and Regards
    Himanshu Goyal | LabVIEW Engineer- Power System Automation
    Values that steer us ahead: Passion | Innovation | Ambition | Diligence | Teamwork
    It Only gets BETTER!!!

  • Inserting data to a . SDF database (SQL Server Compact Edition connection)

    Hi, all.
    I'm working on a project that worked fine while connecting to SQL Server 2008. I used a connection string like this:
    Driver={SQL Server Native Client 10.0};Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;
    Now, I've replaced all database connections in my project to work with SQL Server Compact Edition, and my connection string is something like this:
    Provider=Microsoft.SQLSERVER.CE.OLEDB.3.5;Data Source=myDir\myDataBase.sdf; 
    After changing the type of connection, I'm getting an error on "DB Tools Insert Data.vi". This is what I get:
    Error -2147217872 occurred at NI_Database_API.lvlib:Cmd Execute.vi->NI_Database_API.lvlib: DB Tools Insert Data.vi->Main.vi
    Possible reason(s):ADO Error: 0x80040E30 Exception occured in Microsoft SQL Server Compact OLE DB Provider: The given type name was unrecognized. [,,,,,] in NI_Database_API.lvlib:Rec Create - Command.vi->NI_Database_API.lvlib:Cmd Execute.vi->NI_Database_API.lvlib: DB Tools Insert Data.vi->Main.vi
    This is a simplified block diagram (as I said, it worked perfectly while using SQL Server 2008 connection):
    Could you please help me?
    Thanks in advance,
    Francisco

    Hi, Steve. Thanks for your answers.
    I worked around this problem by using directly a SQL query instead of this function (you were right, using DBTools Execute Query VI). But now I'm getting problems with other functions, when inserting data into the DB including NULL values.
    I make a SQL query like this using DBTools Execute Query VI:
    INSERT INTO Table1 (Column1, Column2, Column3, Column4, Column5, Column6) VALUES ('Value1', 'Value2', 'Value3', 'NULL', 'Value5', 'Value6') 
    and get the following error:
    ADO Error: 0x80040E07Exception occured in Microsoft SQL Server Compact OLE DB Provider: A literal value in the command could not be converted to the correct type due to a reason other than data overflow. [,,,,,] in NI_Database_API.lvlib:Conn Execute.vi->INSERT (new) restricción (DBCT).vi->Restricciones a Base de Datos (DBCT).vi->Definir - editar restricciones.vi->Main.vi
    The same SQL query worked perfectly when using the SQL Server 2008 connection, so it's not a database structure issue.
    Could somebody please help me?
    Regards,
    Francisco

  • SQL Server Compact 3.5 Check if database has changed

    Hi,
       Is there an easy way to determine if any table in an SQL Server CE 3.5 database has changed? (Any insert, update or delete in any table).
    Thanks
    Paul.
    Paul Wainwright

     I am currently using the change tracking mechanism as the application synchronizes databases. I was considering using a FileSystemWatcher to check the LastWrite to the database file but wondered if something global in a SDF database could be used instead.
    Hi Paul,
    Based on my research, besides using the change tracking mechanism and FileSystemWatcher, ADO.NET SqlDependency mechanism is also helpful for detecting SQL Server compact database changes if you're using client side ADO.NET with C# or VB.NET.
    A SqlDependency object can be associated with a SqlCommand in order to detect when query results differ from those originally retrieved. You can also assign a delegate to the OnChange event, which will fire when the results change for an associated command.
    For more details about SqlDependency, please review the following link.
    Detecting Changes with SqlDependency:
    http://msdn.microsoft.com/en-us/library/62xk7953.aspx
    Thanks,
    Lydia Zhang

  • SQL Server Compact 3.5 Merge Replication With SQL Server 2012 - Causing IIS App Pool to Crash

    Hi, I may be the only person in the world doing this but I wanted to give this information to anyone else who may follow this path in the future, and hopefully avoid a headache, or at least a paid support call to Microsoft.
    My original scenario was we had a SQL Server 2008 Server using Merge Replication through and IIS (web server) to several Windows Mobile 6 devices.  This has worked fairly well for a few years.
    Recently we upgraded our SQL server to version 2012 SP 1.  After moving the database over to the new server, and re-setting the merge replication stuff, we couldn't get merge replication to work on the Windows Mobile 6 handheld devices.  The replication
    would appear to start, and then we would get a message saying that the device could not get to the web site.  The message on the handheld device was this:
    "The IIS service is not available."
    After doing some more research, we found that the start of the replication process was causing the Thread Pool that was running the SQLCESA35.dll to crash.  
    The SQLCESALOG.txt file had this information:
    Date Time == SQLCESA Version ==> 3.5.8088.0
    Date Time Hr=80004005 ERR:Couldn't find existing RSCB 1
    After 2 days of trying to figure out the issue on our own, we gave in and called for paid Microsoft support.  They eventually found a known issue where a cumulative update was able to fix the problem.
    We installed the update on the IIS server and everything ran smoothly again.
    FIX: Merge replication fails when you use SQL Server Compact to perform a merge replication that synchronizes changes with a publisher in SQL Server 2012
    http://support.microsoft.com/kb/2845550
    Seth O'Neal

    Hi sonealtx,
    Glad to hear that the issue is resolved. Thanks for your sharing, other community members could benefit from your solution.
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • How to get Cumulative Update packages for SQL Server Compact v3.5 SP2 for use on a Windows Mobile device

    There are links on the pages for various Cummulative Updates for SQL Compact v3.5 SP2 which look to relate to the desktop version, but are these also available for Windows Mobile devices?  If so, what is the process to get hold of them?
    We are seeing intermittent problems with corrupted databases on devices which are using SQL Compact v3.5 SP2 and have seen that some of the Cumulative Updates do relate to corruption and would like to see if these can help to solve the issue.

    Just select the KB article, at the top of each there is a link to request a hotfix, you will then get a email with a download link. The 8088 and 8109 hotfixes also apply to Windows Mobile.
    http://erikej.blogspot.dk/2010/08/sql-server-compact-35-sp2-downloadable.html
    Please mark as answer, if this was it. Visit my SQL Server Compact blog http://erikej.blogspot.com

  • System.Data.SqlServerCe.SqlCeException (0x80004005): Native components of SQL Server Compact engine are not loaded. Please reinstall Microsoft SQL Server Compact.

    Hi
    I have followed http://technet.microsoft.com/en-us/library/ms173298(v=sql.110).aspx to support private deployment for my application in anycpu mode.
    Though its working fine on several XP and Windows 7 , on on particular XP machine , I get this
    System.Data.SqlServerCe.SqlCeException (0x80004005): Native components of SQL Server Compact engine are not loaded. Please reinstall Microsoft SQL Server Compact.
       at System.Data.SqlServerCe.NativeMethods.ThrowIfNativeLibraryNotLoaded()
       at System.Data.SqlServerCe.SqlCeEngine.Dispose(Boolean disposing)
       at System.Data.SqlServerCe.SqlCeEngine.Finalize()
    Can anybody give me directions on this?

    Do you use LINQ to SQL or EF or ADO.NET, is what 
    Yes, I would start by investigating:
    - Do you REALLY need "any CPU", or can you cope with just x86 to make things simpler (See my LINQ to SQL blog post)
    - Is SQL Server Compact installed on this PC, and which build (is it same or different from the one you distribute)
    - Use Process Explorer from sysinternals on the machine to find out where the app tries to load the native libraries from (and fails)
    Please mark as answer, if this was it. Visit my SQL Server Compact blog http://erikej.blogspot.com

  • How to calculate a rolling average within SQL Server Compact

    There are at least a dozen ways to skin this cat in regular SQL Server, but I am trying to solve this problem within the limitations of SQL CE. I have a table of stock values:
    Stock, Date, Open, High, Low, Close
    and I want to add 1 column "RollingAVG" which is simply the AVG(Close) over a specified timeframe (say 30 days)
    This code here works in SQL Server 2012 just fine (of course) but I need something that produces the same results in SQL CE.  Any thoughts?  Thanks!
    SELECT b.Symbol,b.DateTrade, b.ValueClose,
    (SELECT
    AVG(a.ValueClose)
    FROM
    HistoryPrice a
    WHERE
    a.DateTrade >= DATEADD(d,-30,b.DateTrade)
    AND a.DateTrade <= b.DateTrade
    AND a.Symbol = b.Symbol
    ) as Rolling30Close
    (SELECT
    MIN(a.ValueLow)
    FROM
    HistoryPrice a
    WHERE
    a.DateTrade >= DATEADD(d,-30,b.DateTrade)
    AND a.DateTrade <= b.DateTrade
    AND a.Symbol = b.Symbol
    ) as Min30Day
    (SELECT
    MAX(a.ValueHigh)
    FROM
    HistoryPrice a
    WHERE
    a.DateTrade >= DATEADD(d,-30,b.DateTrade)
    AND a.DateTrade <= b.DateTrade
    AND a.Symbol = b.Symbol
    ) as Max30Day
    FROM
    HistoryPrice b
    order by Symbol,DateTrade desc
    Shane

    Hi,
    AVG function is supported in SQL Server Compact. However, embedded select clause is not supported in Visual Studio and a SQL Execution error will be thrown out.
    I suggest you optimize your query. You can refer to the below code:
    AVG (SQL Server Compact)
    http://technet.microsoft.com/en-us/library/ms174124.aspx
    If you have any feedback on our support, please click here.
    Thanks.
    Tracy Cai
    TechNet Community Support

  • JDBC driver for SQL Server Compact Edition

    Hi,
    I'm trying to run pc java application on Pocket Pc (Mobile 5.0) with SQL Server Compact edition.
    The error message is:
    java.lang.UnsatisfiedLinkError: java/sql/DriverManager.getCallerClassLoader()Ljava/lang/ClassLoader;
    at java.sql.DriverManager.getConnection(Unknown Source)...
    Should I use a special jdbc driver for SQL Server Compact Edition? Is there one?
    Mixxo

    Hi,
    I got an answer from msdn forum:
    http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2307542&SiteID=1.
    There is no jdbc driver for SQL Server Compact Edition. OleDB and ADO.net are available. Now I need to know how to use them (in Java)...
    Thanks, Mixxo

  • How to deploy a sql server compact 4.0 in windows xp?

    My program is developed by visual basic 6.0 with sql server compact 4.0.   How can I deploy it in windows xp sp3?
    Should I install .netframework version X in windows xp before sql server compact 4.0 ? 
    When I copy my program  to windows xp and run it , it shows not found provider error.

    I you use ADO, the OLEDB provider must be registered. To do the simply install the SQL Server Compact 4.0 SP1 runtime MSI
    Please mark as answer, if this was it. Visit my SQL Server Compact blog http://erikej.blogspot.com

Maybe you are looking for

  • Error while starting manager in SuccessionPlanning application

    Hello! I've got that error while launch SuccessionPlanning Manager Application: Server Error in '/SuccessionPlanning' Application. 'column' argument cannot be null. Parameter name: column Description: An unhandled exception occurred during the execut

  • Workflow step IN PROCESS while the workflow is actually completed.

    Hi All, I'm having problem in the terminatuion eform workflow. In this workflow we have a activity step say "PROCESS_DATA" with agent determined by a Rule AC93000026. The task that is associated with this step has a terminatiopn event "COMPLETED" of

  • Pavilion dv7 - heating and fan problems, hinge broken - DO NOT PURCHASE THIS JUNK!!!

    This message is targetted towards people looking to purchase an HP Pavilion dv7 series of notebooks. Hopefully they are scanning these boards prior to purchase, something I (very) regretfully did not do. My system: Intel i7 Q720 @ 1.60GHz, 8GB, ATI m

  • Select *from - special character in datetime 'slash'

    I have table with DateTime colun : id dateTime 1 12/08/03 11:23:25,563563456345634563456 2 12/08/03 11:23:25,34333333 I select the rows that were created today , for example 2012-08-03 but when use : select * from TEST_TABLE where DATETIME like '12/0

  • BW Netweaver 7.00 SP12

    Hi! We have a problem after apply the SP 12 for BW 7.00 , the Business Content has been activated with error and now we haven't the button "Business Cont" and also we can't change the Content objects!!! Can you help me? Thank you