English 中文(简体)
Sql Server Compact Edition 3.5: Does the data persist in the database file?
原标题:

I have this question in which I have a SQL Server Compact Edition database for a desktop application. I am completely new to Sql Server Compact Edition. The question is, does the data inserted in the database persist even if the application is shut down or restarted? Coz I cant seem to find my data when using Sql Server Management Studio to manage the database.

Am I missing anything/something?

EDIT: Is SQL Server Compact Edition used for caching local data only? We cant use it like what we normally do on Sql Server Express for example managing data using Sql Server Management Studio?

最佳回答

In your project, set the copy options to Copy if newer from Copy always .

If you do a rebuild, it will be deleted as well.

问题回答

SQL Server Compact Edition is, for the sake of discussion, MS SQL Server squeezed down into a single .DLL for a single user (ok, I know its a bit more complicated than that, but it will do for the sake of discussion).

So data, once written, should be persisted until deleted in pretty much the same way as you d expect it to be persisted in a server instance.

If data is not being persisted I would wonder what s happening to the data file between invocations.

I m also not certain whether it can be manipulated using SQL Server Management studio although its an .MDF file.





相关问题
Export tables from SQL Server to be imported to Oracle 10g

I m trying to export some tables from SQL Server 2005 and then create those tables and populate them in Oracle. I have about 10 tables, varying from 4 columns up to 25. I m not using any constraints/...

SQL server: Can NT accounts be mapped to SQL server accounts

In our database we have an SQL server account that has the correct roles to access some of the databases. We are now switching to windows authentication and I was wondering if we can create a NT user ...

SQL Server 2000, ADO 2.8, VB6

How to determine if a Transaction is active i.e. before issuing Begin Transaction I want to ensure that no previous transaction are open.. the platform is VB6, MS-SQL Server 2000 and ADO 2.8

热门标签