PC Review


Reply
Thread Tools Rate Thread

Creating SQL CE DB on desktop with data

 
 
j.edwards
Guest
Posts: n/a
 
      17th Mar 2005
Hi,

I would like to create an "sdf" SQL Server CE 2 database on a desktop server
(from a webservice call).
This means, instead of sending records down to the device and having the
device run INSERT statements, it can just download a "prepackaged" database.
The db needs to be created on the fly as it will be specific to the device
requesting it - i.e. so I don't want a manual way to do it.

Is this possible, if so how? Thanks.


 
Reply With Quote
 
 
 
 
Arun
Guest
Posts: n/a
 
      17th Mar 2005
Hi,

I Understood like this, You have some specific static tables, which
need not be created again with insert statements in device.
For that create the table in device with a sample application use RDA
to pull the tables that needed and close the connection. Now you can
find the sdf file created with all static tables and lookup tables,
download the sdf through Active sync to desktop.
Add this sdf file to the smartdevice project and make Build Action to
content.
Then whenever you run the application you get the sdf created with the
static table.

Hope this helps,

Regards,
Arun.
www.innasite.com

This posting is provided "AS IS" with no warranties, and confers no
rights.

 
Reply With Quote
 
Darren Shaffer
Guest
Posts: n/a
 
      17th Mar 2005
there's no way to generate SQL Server CE 2 database (.SDF) files on a
server at runtime. System.Data.SqlServerCe (which is required to create and
access the SDF) is supported only on device. there are some third party
tools
that allow you to work with SDFs on the desktop in an interactive mode, but
it
sounds like you want to generate SDFs on the fly with programmatic control.

this will change with SQL Server 2005 and SQLMobile coming later this year
where the .SDF file becomes multi-user and multi-platform.
--
Darren Shaffer
Principal Architect
Connected Innovation

"j.edwards" <j.edwards__NOSPAM__._.__._@sagetechnology.com.au> wrote in
message news:4238f3de$0$5807$(E-Mail Removed)...
> Hi,
>
> I would like to create an "sdf" SQL Server CE 2 database on a desktop
> server (from a webservice call).
> This means, instead of sending records down to the device and having the
> device run INSERT statements, it can just download a "prepackaged"
> database. The db needs to be created on the fly as it will be specific to
> the device requesting it - i.e. so I don't want a manual way to do it.
>
> Is this possible, if so how? Thanks.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a new desktop in VC++ sainathas Webmaster / Programming 0 17th Dec 2008 09:24 AM
Provider independent data access: creating a data adapter from aconnection Harold Howe Microsoft ADO .NET 0 31st May 2006 11:10 PM
how to set condition for creating desktop shortcut after install on the user desktop Syed Abbas Naqvi Microsoft Dot NET Framework 0 25th Jan 2006 11:57 AM
Creating a Macro replacing data in Table with data in an Excel file Shaun Microsoft Access VBA Modules 1 20th Oct 2005 06:26 PM
Creating a DataSet with Data and Schema based on data in DataRow Andy Sjostrom Microsoft ADO .NET 5 24th Feb 2004 11:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:00 PM.