I need to convert a SQL Server Compact database file to SQL Server, so I think generate script is the best way, but I can't find anything in SQL Server CE Toolbox 3.5
Is there a workaround?
Related
I'm new to SQL Server CE, I'd like to ask if I start out small with a file based SQL Server CE database and in the future I want to move up to the regular SQL Server 2008 database, how and what is the best way to convert what I already have up to SQL Server 2008?
Description
At first, it is a good idea to start with SqlCE and go to Sql Server later.
Looks like you have to write own code to build the tables and populate them with data OR (and this is what i suggest) use a third party tool like primeworks DataPort.
More Information
Primeworks - Data Port Console
Extracting Data from SQL CE SDF file
How can I import data from SQL CE to SQL Server
Generate Script & Export Data From SQL CE (Compact Edition) 3.5
I have developed a VB.NET program using a strongly typed dataset. This dataset has its connection to a SQL Server 2008 R2. The software should now be additionally used offline. The database should be exported to a *.sdf database. If no connection to the SQL server is produced, the software have to try to connect to the *.sdf database.
I would like to achieve:
1. Export the data in the SQL Server 2008 R2 database to a local *.sdf file.
2. This *.sdf file has to work as an alternate connection string in the strongly typed dataset.
How can I achieve this?
My SQL Server Compact Toolbox can help you with question 1. http://erikej.blogspot.com/2010/02/how-to-use-exportsqlce-to-migrate-from.html
I have some questions about SQL Server Compact Edition.
Now we are using SQL Server 2008 and developing in Visual Studio 2008 C#.net
and linq for connect database.
My questions are:
Is it possible to change our database to SQL Server Compact Edition?
What is the differece between both of this?
Is there any limitions when using SQL Server CE, for eg. database size, data size?
Can CE version support all data type from SQL Server 2008?
best regards,
Indi
As of my experience using sql server compact edition.
(1) Is it possible to change our database to sql server compact edition?
Yes
Maybe you can use this :
Convert sql server to sql compact
Or
Prime works Dataport wizard
(2) What is the differece between both of this?
Differences Between Sql server compact and sqlser server
(3) Is there any limitions to use sqlserver ce,for eg.database size,data size?
Yes, sql compact support only limited storage capacity.
Working with SQL Server Compact
(4) Can CE version supports all data type from sqlserver2008?
Not All
Regards
You can alos try my Export2SqlCe command line utility: http://exportsqlce.codeplex.com
Simple problem. I have an SQL Server database (MyData.mdf) and I want to convert it to a Compact database. (MyData.sdf) Just can't find the proper tool which can do this for me.
And I would also be able to convert the compact database back to a regular SQL Server database...
They aren't directly convertible from one to the other; many aspects of SQL Server aren't supported in SQL Compact.
You might consider using SQL Server Integration Services (SSIS) to help manage the transformations.
Have you tried any hidden options from SQL Server Studio?
Is there a way to generate the sql statement for tables in sql server compact ?
same as for sql server express+ ?
Essentially a create table( .... ) statement as output ?
There is a project on Codeplex that someone has actually built the functionality to be able to do scripting for sql server compact edition databases.
There is a tool to do this. Check out http://www.antipodeansoftware.com/Home/Products
This will iterate the entire SQL server, and write all the table, view, stored procedure and UDF scripts to a local drive. Great for adding SQL schema or DDL to source control.
The plugin SQLite & SQL Server Compact Toolbox has versions for Visual Studio and SQL Server Management Studio. I've used the latter version successfully to add columns and export the schema as CREATE TABLE statements from SQL Server Compact Edition 3.5.
You can connect to SQL Server Compact Edition using SQL Server Management Studio(SSMS), which in turn allows you to script out all database objects.
Please refer to: Managing SQL Server Compact Edition with SQL Server Management Studio
and then also, How to: Generate a Script