Link to home
Start Free TrialLog in
Avatar of smetechit
smetechit

asked on

copy database from sql 2008 to sql 3.5

I want to copy database (table structre and records) from sql server 2008 R2 into SQL Compact edition 3.5.

I use Visual Studio 2008 Professional and Windows Mobile Device Center in development. The device is running Windows 6.1.
ASKER CERTIFIED SOLUTION
Avatar of hjgode
hjgode
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of smetechit
smetechit

ASKER

Hi hjgode,

I tried the copy utility but it throughs the attached errors , I am not sure if these errors are related to sql server version (I use 2008 but the utility is designed for sql 2005/2000).

Regarding your first suggestion, can you elaborate more how can I add connection to sql 2008 into device and copy the database, I am using Windows Mobile Device Center.

Error.png
Error.txt
It is missing a file. Unfortunately I cant read the first line of the JIT exception dialog. As far as I can see, it is looking for MSSql server assembly.

Do you have Sql Server Management Studio installed?

The required DLLs (assemblies) are part of Microsoft SQL Server 2008 R2 Shared Management Objects from the Feature Pack.
The complete errors are listed in the previously attached text file.

Hello

sorry for that, I did not relaize that a txt file was also attached.

But as said, you have to install the SQL Server Management Objects (SMO) of the Feature pack: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=ceb4346f-657f-4d28-83f5-aae0c5c83d52

Look for "Microsoft® SQL Server® 2008 R2 Shared Management Objects"
Hi higode,

I have installed SMO but the error is still existing.
I have done an installer for this. Hopefully you are now more successfull. AFAIK only basic types can be copied.

http:// www.hjgode.de/temp/SqlCopy-Release.zip

You still need Microsoft SQL Server Compact 3.5 Service Pack 2 for Windows Desktop
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=e497988a-c93a-404c-b161-3a0b323dce24

is the link to Microsoft SQL Server Compact 3.5 Service Pack 2

the latest version of the tool is sited at http://www.johnnycantcode.com/page/SQL-Server-to-SQL-Server-Compact-Edition-Database-Copy.aspx

Please let me know, when you downloaded the installer (it installs runtimes too!). Then you may copy the latest exe into the install dir (Program File\Ich...)
I will then delete the installer of my webspace

regards

Josef
Hello again

I found one more possible solution: http://www.primeworks-mobile.com/Products/DataPortWizard.html

The software in the link causes my intermec cn50 device to stop booting Windows and I had to clean boot ir.