0% found this document useful (0 votes)
165 views

How To Migrate - Downsize A SQL Server Database To SQL Server Compact 4.0

The document describes how to migrate data from a SQL Server database to a SQL Server Compact database using a command line utility called Export2SqlCe. Export2SqlCe generates a T-SQL script from the SQL Server database that can then be used to create the SQL Server Compact database structure and populate it with data. The steps are to run Export2SqlCe, use sqlcecmd to create an empty database from the script, then run the script against the empty database to populate it.

Uploaded by

devloic
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
165 views

How To Migrate - Downsize A SQL Server Database To SQL Server Compact 4.0

The document describes how to migrate data from a SQL Server database to a SQL Server Compact database using a command line utility called Export2SqlCe. Export2SqlCe generates a T-SQL script from the SQL Server database that can then be used to create the SQL Server Compact database structure and populate it with data. The steps are to run Export2SqlCe, use sqlcecmd to create an empty database from the script, then run the script against the empty database to populate it.

Uploaded by

devloic
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

16/5/2015

EverythingSQLServerCompact:HowtoMigrate/DownsizeaSQLServerdatabasetoSQLServerCompact4.0(and3.5)

EverythingSQLServerCompact
ThisblogtriestokeepupwitheverythingSQLCompactrelated,includingforaysinto
subjectslikeMicrosoftSyncFramework,WindowsPhoneandSQLServerReplication
Home

Contents

Phone

4.0

Tools

Forum

Twitter

Saturday,August21,2010

HowtoMigrate/DownsizeaSQLServerdatabaseto
SQLServerCompact4.0(and3.5)
Release3.0.0.6ofmySQLCompactschemaanddatascriptutilityonCodeplexcontainsa
commandlineutility,namedExport2SqlCe,thatallowsyoutoexportschemaanddatafrom
aSQLServer2005/2008databaseinaSQLCompactcompatibleSQLformat.
TheExport2SqlCetooldoesnotcreateaSQLCompactsdfdatabasefile,butjustcreatesa
TSQLscript,thatyoucanrunwithatoollikemySqlCeCmdCodeplexutilityorSQLServer
ManagementStudio2008.Thisapproachgivesyoutheflexibilitytomodifythescriptina
texteditorbeforecreatingthesdffilebutrequiresanextrastep.
BelowarethestepsrequiredtomigrateaSQLServerdatabase(tablesandtable
indexes/constraintsonly)toaSQLServerCompactdatabase.
First,runExport2SqlCeagainstyourSQLServerdatabase(2005and2008aresupported),
usingacommandlinesimilarto:
Export2sqlce"DataSource=(local)InitialCatalog=AdventureworksLTIntegrated
Security=True"AW.sqlce

CodePlex

Follow@ErikEJ

AboutMe
ErikEJ
SQLServer
MVP,.NETand
DataAccess
Developer,
TechnicalSubjectMatter
ExpertatNNITA/S
http://www.nnit.comContact:
ejlskov(at)hotmail.com
Viewmycompleteprofile

SubscribeTo
Posts
Comments

PopularPosts
SQLCompact3rdpartytools
ComparisonofSQLServer
Compact,SQLite,SQLServer
ExpressandLocalDB

ThiswillcreateafilenamedC:\aw.sqlceletshavealook:

VisualStudioToolsforSQL
ServerCompact4now
available
SQLServerCompact4.0
released!
UsingSQLServerCompact
4.0withDesktopPrivate
DeploymentandaSetup
project(MSI)(part2)
HowtoMigrate/Downsizea
SQLServerdatabasetoSQL
ServerCompact4.0(and3.5)
GenerateaWindowsPhone8
LocalDatabaseDataContext
fromanexistingdatabase

Thisfilecontainsascripttocreatetables,dataandconstraints(indexesandforeignkeys),
allinSQLServerCompact3.5/4.0compatibleTSQLscript.

Migratingdatabasesbetween
SQLServerandSQLServer
Compact

Thenyoucaneitheropentheaw.sqlcescriptinSQLServerManagementStudio2008oruse
sqlcecmdtocreatethesdffileandpopulatethefilebasedonthescriptmeaningthewhole

EntityFramework6&SQL
ServerCompact4(2)Easy

http://erikej.blogspot.com/2010/02/howtouseexportsqlcetomigratefrom.html

1/10

16/5/2015

EverythingSQLServerCompact:HowtoMigrate/DownsizeaSQLServerdatabasetoSQLServerCompact4.0(and3.5)

processcanberunfromabatchfileandcompletelyautomated!

PrivateDesktopDeployment

(TomanageSQLServer4.0databases,useSqlCeCmd40.exe,for3.5useSqlCeCmd.exe)

UsingEntityFrameworkwith
SQLServerCompact4.0CTP
andASP.NETtips&tricks
(partone)

Firstcreatethedatabase:
sqlcecmd40d"DataSource=C:\aw.sdf"ecreate
Thenrunthegeneratedscriptagainstthedatabase:
sqlcecmd40d"DataSource=C:\aw.sdf"iaw.sqlce>log.txt
Examinethelog.txttoensurenoerrorsoccurredsearchforerrorcodepleaseletme
knowifyouencounteranyerrors,sotheycanpossiblybefixedinanupdatetotheutility.

BlogArchive
2015(8)
2014(22)
2013(38)

Entirebatchfile:
Export2sqlce"DataSource=(local);InitialCatalog=AdventureworksLT;Integrate
dSecurity=True"AW.sqlce
sqlcecmd40d"DataSource=C:\aw.sdf"ecreate

2012(28)
2011(38)
2010(53)
December2010(2)
November2010(4)
October2010(3)
September2010(4)
August2010(6)

sqlcecmd40d"DataSource=C:\aw.sdf"iaw.sqlce>log.txt

SQLServer
Compact4.0
ASP.NET
Membership
provider...
SQLServer
Compact
version
detector

dellog.txt

for%%fin(aw*.sqlce)dosqlcecmdd"DataSource=C:\aw.sdf"i%%f>>lo
g.txtt
IndsendtafErikEJkl.6:57PM
Etiketter:SQLCompact3.5

53comments:
excabsaid...
Hello
Iamstrugglingtoconnecttoasdffilefromssms2008canyougivemeany
advice?Igetanerrorsayingtheeditorisnotinstalled.IhaveSP1applied.

Howto
Migrate/Downsi
zeaSQL
Server
databasetoS...
SQLServer
Compact4.0
newsroundup
SQLServer
Compact3.5
Toolbox
updated
HOWTO:
Upgradea
version3.x
databasefileto
SQL...
July2010(5)

Thanks

June2010(4)

February8,2010at7:38PM

May2010(6)

ErikEJsaid...

April2010(6)

TrytoreinstallSSMS2008couldyousharetheexacterrormesssage?

March2010(5)

February8,2010at8:51PM

February2010(2)
January2010(6)

archa30nsaid...
Igetthiserror:
>sqlcecmdd".\Foo.sdf"q"select*
formprops"
Error:System.DllNotFoundException:UnabletoloadDLL'sqlceme35.dll':The
specifiedmodulecouldnotbefound.(Except
http://erikej.blogspot.com/2010/02/howtouseexportsqlcetomigratefrom.html

2009(51)
2008(36)
2007(8)

2/10

16/5/2015

EverythingSQLServerCompact:HowtoMigrate/DownsizeaSQLServerdatabasetoSQLServerCompact4.0(and3.5)

ionfromHRESULT:0x8007007E)
atSystem.Data.SqlServerCe.NativeMethods.DllAddRef()
atSystem.Data.SqlServerCe.SqlCeConnection..ctor()
atSqlCeCmd.SqlCeCommandHelper..ctor(StringconnectionString)
atSqlCeCmd.Program.Main(String[]args)
IamusingWinMobile6ProDK.
IfItryitwithsqlcecmd40,Iget:
>sqlcecmd40d".\Foo.sdf"q"select
*formprops"
UnhandledException:System.IO.FileNotFoundException:Couldnotloadfileor
assembly'System.Data.SqlServerCe,Version=
4.0.0.0,Culture=neutral,PublicKeyToken=89845dcd8080cc91'oroneofits
dependencies.Thesystemcannotfindthefiles
pecified.
Filename:'System.Data.SqlServerCe,Version=4.0.0.0,Culture=neutral,
PublicKeyToken=89845dcd8080cc91'
atSqlCeCmd.Program.Main(String[]args)
WRN:AssemblybindingloggingisturnedOFF.
Toenableassemblybindfailurelogging,settheregistryvalue
[HKLM\Software\Microsoft\Fusion!EnableLog](DWORD)to1.
Note:Thereissomeperformancepenaltyassociatedwithassemblybindfailure
logging.
Toturnthisfeatureoff,removetheregistryvalue
[HKLM\Software\Microsoft\Fusion!EnableLog].
August30,2010at11:58PM
ErikEJsaid...
YoumusthavetheSQLServerCompact3.5SP2msiinstalledonyourdekstop
forthecommandlineutilitytowork.SqlCeCmddoesnotrunonWindows
Mobile.
August31,2010at9:22AM
MartinoBordinsaid...
Isitpossibletoperformthereverse,Imeanfromsqlce4tosqlserver(express
orstandard)?
Thanks
September23,2010at6:23PM
ErikEJsaid...
Martino:Sure,youcanusetheExportSqlCe4.exeutility
(http://exportsqlce.codeplex.com)togeneratesascriptdumpofyourdatabase,
thatyoucanrunagainstanemptySQLServerdatabase.Youcanalsouse
WebMatrixtoMigratetoSQLServerfromCompact4.0
September23,2010at9:24PM
Dvidsaid...
HiErik,
Canyouprovidemoredetailabouttheparametersintheexample:"Data
Source=(local)InitialCatalog=AdventureworksLTIntegratedSecurity=True"
AW.sqlce
Thanks,
David
December4,2010at6:40AM
ErikEJsaid...
SureDavid:
"DataSource=(local)InitialCatalog=AdventureworksLTIntegratedSecurity=True"
isaSQLServerConnectionstring,thatspecifiesthedatabasetoexport(see
connectionstrings.comforsamples)
http://erikej.blogspot.com/2010/02/howtouseexportsqlcetomigratefrom.html

3/10

16/5/2015

EverythingSQLServerCompact:HowtoMigrate/DownsizeaSQLServerdatabasetoSQLServerCompact4.0(and3.5)

AW.sqlceisthename(andpath)ofthefileyouareexportingto.
December4,2010at1:50PM
Albertsaid...
Imhavingalittlebitofdifficultiescreatingthe.sdffile,thisiswhatIget,I
appreciateanyhelp:
C:\ProgramFiles(x86)\MicrosoftSQLServerCompact
Edition\v3.5>Export2SqlCE.ex
e"DataSource=MIRAK\SQLEXPRESSInitialCatalog=MiniMobileDBIntegrated
Security
=True"MiniMobileDB.sqlce
Generatingthetables....
Generatingthedata....
Generatingtheprimarykeys....
Generatingtheindexes....
Generatingtheforeignkeys....
Sentscripttooutputfile(s):MiniMobileDB.sqlcein256ms
C:\ProgramFiles(x86)\MicrosoftSQLServerCompactEdition\v3.5>sqlcecmdd
"Da
taSource=C:\ProgramFiles(x86)\MicrosoftSQLServerCompact
Edition\v3.5\MiniM
obile.sdf"ecreate
Error:System.BadImageFormatException:Anattemptwasmadetoloada
programwit
hanincorrectformat.(ExceptionfromHRESULT:0x8007000B)
atSystem.Data.SqlServerCe.NativeMethods.DllAddRef()
atSystem.Data.SqlServerCe.SqlCeEngine..ctor()
atSystem.Data.SqlServerCe.SqlCeEngine..ctor(StringconnectionString)
atSqlCeCmd.SqlCeEngineHelper.Execute(EngineActionaction,String
newConnecti
onString)
atSqlCeCmd.Program.Main(String[]args)
January17,2011at11:13PM
ErikEJsaid...
Youneedtoinstallthex64SQLServerCompact3.5dektopruntimeonyour
computer.
January18,2011at9:02AM
Albertsaid...
Completelyrightthank'salot:D
January18,2011at2:14PM
PrashanthJoysaid...
HiErikihavesomedoubtplzhelpme..
:)
istartedaSmartDevice(WindowsCompactApplication)c#project.iwantto
connecttoSQL2000Server..ifitrytoopenconnectionitshowing"Unkown
ConnectionOptioninConnectionString:initialcatalog."
macode
conn.ConnectionString="datasource=servernameInitialCatalog=dbnameUser
ID=unamePassword=pasrd"
plztellmeaboutconnectionString..

ThankYou..
March12,2011at8:37AM
ErikEJsaid...
Prashant:SuggestyouaskintheMSDNForumandprovidemoredetails/acode
sampleofwhatyoutryingtoachieve.
http://erikej.blogspot.com/2010/02/howtouseexportsqlcetomigratefrom.html

4/10

16/5/2015

EverythingSQLServerCompact:HowtoMigrate/DownsizeaSQLServerdatabasetoSQLServerCompact4.0(and3.5)

March13,2011at2:34PM
PrashanthJoysaid...
Hi,
Hello,
I'mtryingtoimport/Exportatablefrom/Todesktopserver(SQL2000)to/from
SQLCEdatabase.
I'mnotgettingclearideasfromnet.
CanyouHelpme..

ThankYou....
March17,2011at12:07PM
ErikEJsaid...
Prashant:Ishalltry:
FromSQLCE=>SQL2000:useexportsqlceandrunthegeneratedscript
againttheSQL200db.
FromSQL2000=>SQLCE:UpgradetheSQL2000dbto2005(Express)and
useexport2sqlceoraccomodatethecurrentexportsqlcecodetoworkwithSQL
Server2000metadata(Iwouldincludethatcontributioninthebasecodethen).
March17,2011at1:14PM
PrashanthJoysaid...
ThankYouErik..
March18,2011at5:06AM
PrashanthJoysaid...
HelloErik..
IhaveTwoSystemsoneisTabletPC(OS:WindowsCE)andaServer
PC(OS:WindowsXP)..,BothconnectedWiFi,andMyServerPChave
connectedtoaPrinter,NowiwanttoprintadocumentfromTabletPCtomy
serverPCPrinter.
1)HowCanigetSharedPrinterinWindowsCE..?
2)orHowcaniPrintaDocument,ThroughNetwork..?
3)OrHowCaniSendafiletoMyServerPC..?
IhopeYouCanHelpMeOutformyDoubt(Issues)

ThankYou....
March18,2011at9:17AM
ErikEJsaid...
Parshant:SuggestyouaskintheMSDNCompactFrameworkforum
March18,2011at10:10AM
PrashanthJoysaid...
hello
HowtosyncdatafromSQLSERVER2000toSQLCE3.5andviceversa.....
thankyou
March28,2011at1:58PM
ErikEJsaid...
Prashant:ThatisnotsupportedbyanyMStechnologyIknowof,upgradeyour
SQLServer.
http://erikej.blogspot.com/2010/02/howtouseexportsqlcetomigratefrom.html

5/10

16/5/2015

EverythingSQLServerCompact:HowtoMigrate/DownsizeaSQLServerdatabasetoSQLServerCompact4.0(and3.5)

March28,2011at2:04PM
PrashanthJoysaid...
Oki..Thankyouerikforyourvaluableresponce...nowagainihavesomedoubt..
pleasedn'tmindok...
I'mdevelopingSmartDeviceapplication,Inthatihavesetofstatement,which
establishesconnectionwithsqlServer2000Database.WheneverItrytoopen
SqlConnection,Imgettingerror"Can'tfindPInvokeDLL'dbnetlib.dll'.".
MysystemsOSisWINDOWSCE...
ThankYou....
March28,2011at4:07PM
ErikEJsaid...
Prashant:PleaseaskintheMSDNSmartDeviceDevforum.
March28,2011at5:27PM
PrashanthJoysaid...
HelloEric

ThisismyC#codeforPrintReportsUsingCrystalReport.
ButNowiamusingSQLCE..hereidon'tknowhowtowritecodeforprintusing
SQLCE.pleasehelpme...
Thankyou

publicvoidprintreport(stringReportname,intBillnumber,stringSetupFileName)
{
try
{
timer1.Stop()
ReportDocumentrptDoc=newReportDocument()
rptDoc.Load(Application.StartupPath+"\\Reports\\"+Reportname)
//rptDoc.Load(Application.StartupPath+"\\Reports\\")
rptDoc.SetDatabaseLogon(Globvar.Database,Globvar.DBPassword)
foreach(CrystalDecisions.CrystalReports.Engine.TableCurrTablein
rptDoc.Database.Tables)
{
TableLogOnInfotabloginfo=CurrTable.LogOnInfo
tabloginfo.ConnectionInfo.ServerName=Globvar.DBServerName
tabloginfo.ConnectionInfo.DatabaseName=Globvar.Database
tabloginfo.ConnectionInfo.UserID=Globvar.DBUserName
tabloginfo.ConnectionInfo.Password=Globvar.DBPassword
CurrTable.ApplyLogOnInfo(tabloginfo)
break
}
rptDoc.SetParameterValue("BllNo",Billnumber)
if(File.Exists(Application.StartupPath+"\\"+SetupFileName))
{
string[]x=newstring[3]
StreamReaderSrdr=new
StreamReader(Application.StartupPath+"\\"+SetupFileName)
try
{
x[0]=Srdr.ReadLine()
x[1]=Srdr.ReadLine()
x[2]=Srdr.ReadLine()
rptDoc.PrintOptions.PrinterName=x[2].ToString()
rptDoc.PrintToPrinter(1,false,0,0)
Srdr.Close()
}
http://erikej.blogspot.com/2010/02/howtouseexportsqlcetomigratefrom.html

6/10

16/5/2015

EverythingSQLServerCompact:HowtoMigrate/DownsizeaSQLServerdatabasetoSQLServerCompact4.0(and3.5)

catch(Exceptione)
{
MessageBox.Show(e.ToString())
Srdr.Close()
}
}

}
catch(Exceptionee)
{
MessageBox.Show(ee.ToString())
}
timer1.Start()
}
April12,2011at1:01PM
ErikEJsaid...
Prashant:PleaseaskintheMSDNforum.IknownothngaboutCrystalReports
April12,2011at4:06PM
Deepaksaid...
HelloErik,
Inmyapplication(native)thatisusingOLEDBtoconnecttoaSQLServer
Compact3.5database,Myapplicationisnotabletolocatethedefinitionsofthe
followingtypesandishencefailingtocompile:
DB_UPARAMS,DBCOUNTITEM,DBBYTEOFFSET,DBROWCOUNT.
Ihavethe3headerfilesincluded(sqlce_sync.h,sqlce_err.h,andsqlce_oledb.h)
andaddedthereferencetothelibraries(ole32.lib,oleaut32.lib,uuid.lib).
Whatcouldbewrong?
Thanks
May11,2011at6:57AM
ErikEJsaid...
Deepak:IamnotaC++expert,suggestyouaskintheMSDNforum
May11,2011at8:18AM
bhanusaid...
givemestepbystepexplain
May30,2011at8:20AM
SteveOwensaid...
HiErik.Thanksforagreatutility.Iwonderifyoucouldaddaswitchtothe
commandlineofExport2SqlCEsothatitdidn'tsplittheoutputintomultiplefiles.
Secondarysqlcefilesusuallyfailwith"Thecolumncannotbemodified",butifI
combinethesqlcefilesintoonebigone,itworks.Itlookslikeit'smissingSET
IDENTITY_INSERTcommandsonsubsequentoutputfiles.Otherwiseit'san
invaluabletoo.Thankssomuch.Justlookingtobeabletofullyautomateit.
August24,2011at2:12PM
ErikEJsaid...
HiSteve:Iwilllogthiserror,multiplefilesaretheretoavoidOutOfMemoryerrors,
butofcourse"SETIDENTITYINSERT"mustbekeptifpossible.
August24,2011at2:16PM
ErikEJsaid...
HiSteve,Ihavejustreleasedversion3.5.1.7,couldyouletmeknowifthat
worksforyou?
August25,2011at5:33PM
Rohith_JoYsaid...
http://erikej.blogspot.com/2010/02/howtouseexportsqlcetomigratefrom.html

7/10

16/5/2015

EverythingSQLServerCompact:HowtoMigrate/DownsizeaSQLServerdatabasetoSQLServerCompact4.0(and3.5)

ISexport2sqlcecompatiblewithSQLserver2005express..?
August30,2011at1:28PM
ErikEJsaid...
Rohit:Yes.
August30,2011at1:40PM
said...
HiErikEJ,
FromwhereicangettheExport2SQLCE.exe?
Ifoundthisonlyexportsqlce.
January19,2012at3:31PM
ErikEJsaid...
http://exportsqlce.codeplex.com/releases/view/52878#DownloadId=160019
January19,2012at7:16PM
Adithyasaid...
Thankyou..
January20,2012at5:28AM
Alexsaid...
Erik,
IhavebeensearchinghighandlowforatooltoconvertourDBtoaSQLCEDB
andthisdidthetrick!Justwantedtosaythanks:)
averyappreciativeintern
January3,2013at8:55PM
CrisJ.said...
Hi
Whathappenswithstoreproceduresandviews?
Doitsomethingwiththem?
Thanks!
January16,2013at3:11PM
ErikEJsaid...
AsSQLCompactdoesnotsupportviewsandstoredprocedures,ntihing
happenswiththem.
January16,2013at7:53PM
Mosessaid...
IgotthiserrorwhengeneratingSqlCecompatiblescriptfrommysqlserver2008
C:\SqlCE>Export2SQLCE.exe"DataSource=MOSESICMAInitial
Catalog=StorekeepingIntegratedSecurity=True"Storekeeping.sqlschemaonly
Error:System.TypeInitializationException:Thetypeinitializerfor
'System.Data.SqlClient.SqlConnection'threwanexception.>
System.TypeInitializationException:Thetypeinitializerfor
'System.Data.SqlClient.SqlConnectionFactory'threwanexception.>
System.TypeInitializationException:Thetypeinitializerfor
'System.Data.SqlClient.SqlPerformanceCounters'threwanexception.>
System.ArgumentNullException:Valuecannotbenull.
Parametername:name
atSystem.Resources.ResourceManager.GetString(Stringname,CultureInfo
culture)
atSystem.Diagnostics.MonitoringDescriptionAttribute.get_Description()
atSystem.Data.ProviderBase.DbConnectionPoolCounters.Counter..ctor(String
categoryName,StringinstanceName,StringcounterName,
PerformanceCounterTypecounterType)
http://erikej.blogspot.com/2010/02/howtouseexportsqlcetomigratefrom.html

8/10

16/5/2015

EverythingSQLServerCompact:HowtoMigrate/DownsizeaSQLServerdatabasetoSQLServerCompact4.0(and3.5)

atSystem.Data.ProviderBase.DbConnectionPoolCounters..ctor(String
categoryName,StringcategoryHelp)
atSystem.Data.SqlClient.SqlPerformanceCounters..ctor()
atSystem.Data.SqlClient.SqlPerformanceCounters..cctor()
Endofinnerexceptionstacktrace
atSystem.Data.SqlClient.SqlConnectionFactory..cctor()
Endofinnerexceptionstacktrace
atSystem.Data.SqlClient.SqlConnection..cctor()
Endofinnerexceptionstacktrace
atSystem.Data.SqlClient.SqlConnection..ctor()
atSystem.Data.SqlClient.SqlConnection..ctor(StringconnectionString)
atErikEJ.SqlCeScripting.ServerDBRepository..ctor(StringconnectionString,
BooleankeepSchemaName)
atExportSqlCE.Program.Main(String[]args)
January23,2013at2:26PM
ErikEJsaid...
Moses:Icouldmeanthatyour.NETmachine.configiscorruptedtryfrom
anothermachinetoverify,andrepairthe.NETinstallation.
January23,2013at2:41PM
chinuexpertsaid...
HelloErikEJ,
Iexecutedtheexport2sqlcecommand,itexecutedsuccessfullyafterthisthere
aremanyscriptfilesarecreated.sohowcaniexecutedthoseallfilesatatime?
Pleasegetbacktomeassoonaspossible,ineedthisveryurgently.please.
February16,2013at11:48AM
ErikEJsaid...
Thebatchfiledoesthatforyou...
February17,2013at3:28AM
chinuexpertsaid...
Yathisisright.Butiwanttomakesdffileofthat.Soforthoswhatcanido?
Pleaae.
February17,2013at5:16AM
ErikEJsaid...
Justrunthebatchfile,itwillcreatethesdf
February17,2013at5:32AM
chinuexpertsaid...
Yaitcreateasdffile.Igiventherelationshiptodatabasebutitdoesnotshowing
insdffile.Whyisitso?
February17,2013at10:44AM
ErikEJsaid...
Idonotknowwhatyoumean,pleaseloganissuewithmoredetailson
exportsqlce.codeplex.com
February17,2013at1:56PM
chinuexpertsaid...
Imeantosayafterrunningbatchfileitcreatedsdffile,butisetthedbrelations
insqlserverthoserelationsarenotshowinginsdfdatabase.Forthisproblem
whtcanidotosolvethis?
February17,2013at3:16PM
ErikEJsaid...
Pleasepostanissueonthecodeplexissuetrackerwithadditionalinformation
(scriptsetc.)
February17,2013at3:18PM
http://erikej.blogspot.com/2010/02/howtouseexportsqlcetomigratefrom.html

9/10

16/5/2015

EverythingSQLServerCompact:HowtoMigrate/DownsizeaSQLServerdatabasetoSQLServerCompact4.0(and3.5)

ferescasaid...
HiEric,youcouldassistme,Ihavemyprogramrunninginsqlserverandsql
servercemigratetovisualstudio8,donotsendmeanyerror,simplydoesnot
openthebaseandIcannotreadtherecords,anysuggestionsthatIcanbe
doingwrong.thanks
December19,2013at5:39PM
ErikEJsaid...
Fer:Iwouldbehappytohelp,butIdonotunderstandyourissue,maybeemail
meortrytosharemoreinformationintheMSDNforum(nothere,please)
December19,2013at5:47PM
MatthewDodsworthsaid...
HiErik
Whatdoesthislinedointhebatchfile?Igetafilenotfounderror.
sqlcecmd40d"DataSource=test.sdf"itest.sqlce>log.txt
February6,2014at3:13PM
ErikEJsaid...
Thiscommenthasbeenremovedbytheauthor.
February6,2014at6:14PM
ErikEJsaid...
Matthew:suggestyiulookatthesqlcecmdcodeplexsitefordocumentation
February6,2014at6:43PM
PostaComment

NewerPost

Home

OlderPost

Subscribeto:PostComments(Atom)

SQLCompactTechnicalInformation

SQLServerCompactForum

SQLCompactProductGroupBlog

SQLcompacteditiondatabaseencryption15/5/2015

SteveLasker'sblog

SQLServerCE3.5Primary/ForeignKeySetup15/5/2015

SQLCompactKBarticles

Databaserownumbersnotmatchingid16/4/2015

ATechnicalComparisonofReplicationandRemoteDataAccess
FeaturesinSQLServer2005MobileEdition3.0

IEversioninHandheld6.5Classic?27/4/2015
Runsp_show_statistics?23/4/2015

BackgroundDataSynchronizationwithSQLServer2005Compact
Edition
HowtoDevelopanEfficientArchitecturebasedonSQLServerCE
ReplicationRequirements
MultiUserConsiderationsinDataSynchronizationforSQLServer
2005MobileEdition3.0
StepbyStep:DevelopingaSQLMobileApplicationwithVisual
Studio2005andSQLServer2005
YouCanTakeItWithYou:SQLServerCEandScalability
UpgradingfromSQLServerCE2.0toSQLServer2005Compact
Edition

AwesomeInc.template.PoweredbyBlogger.

http://erikej.blogspot.com/2010/02/howtouseexportsqlcetomigratefrom.html

10/10

You might also like