PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

How to create .sdf file

 
 
Rafael Metring
Guest
Posts: n/a
 
      25th Feb 2004
How can I create one .sdf file.

I have my Database in Sql (mdf and ldf ) and I like know how to convert this
to .sdf file to use
in my new system in pocket..

Tanks Advanced.

Rafael


 
Reply With Quote
 
 
 
 
Ginny Caughey [MVP]
Guest
Posts: n/a
 
      25th Feb 2004
Rafael,

Generally sdf files need to be created on the device itself in the current
version of SqlCe. One approach is to export the data from your database into
XML and then write a little .NetCF app that reads the XML into a DataSet,
creates the sdf file and writes out the data. (You could also create the sdf
file on the emulator using the same approach.)

There is also a 3rd party product called RemoteSqlCe that allows you to
create sdf files on the device from a desktop app. There's more info here:
http://www.gui-innovations.com/html/remotesqlce.html
--
Ginny Caughey
..Net Compact Framework MVP

"Rafael Metring" <(E-Mail Removed)> wrote in message
news:OuLJj49%(E-Mail Removed)...
> How can I create one .sdf file.
>
> I have my Database in Sql (mdf and ldf ) and I like know how to convert

this
> to .sdf file to use
> in my new system in pocket..
>
> Tanks Advanced.
>
> Rafael
>
>



 
Reply With Quote
 
Peter B
Guest
Posts: n/a
 
      26th Feb 2004
Considering MS want to keep the SQLCE code/format secret, how can a
third-party developer create such an application? I know you can investigate
the file format of the db and "reverse engineer" it from that, but this is
not a very safe/stable way of doing it, is it? On the other hand, with
sufficient testing (whenever that is) you could always come up with a "good
enough" application I guess...

/ Peter


"Ginny Caughey [MVP]" <(E-Mail Removed)> wrote in message
news:O0qj7F%23%(E-Mail Removed)...
> Rafael,
>
> Generally sdf files need to be created on the device itself in the current
> version of SqlCe. One approach is to export the data from your database

into
> XML and then write a little .NetCF app that reads the XML into a DataSet,
> creates the sdf file and writes out the data. (You could also create the

sdf
> file on the emulator using the same approach.)
>
> There is also a 3rd party product called RemoteSqlCe that allows you to
> create sdf files on the device from a desktop app. There's more info here:
> http://www.gui-innovations.com/html/remotesqlce.html
> --
> Ginny Caughey
> .Net Compact Framework MVP
>
> "Rafael Metring" <(E-Mail Removed)> wrote in message
> news:OuLJj49%(E-Mail Removed)...
> > How can I create one .sdf file.
> >
> > I have my Database in Sql (mdf and ldf ) and I like know how to convert

> this
> > to .sdf file to use
> > in my new system in pocket..
> >
> > Tanks Advanced.
> >
> > Rafael
> >
> >

>
>



 
Reply With Quote
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      26th Feb 2004
The app in question still uses SqlServerCe to create its database file, what
it offers is the ability to create and manipulate the database remotely from
the desktop pc.

Peter

--
Peter Foot
Windows Embedded MVP
OpenNETCF.org Senior Advisor
www.inthehand.com | www.opennetcf.org

"Peter B" <(E-Mail Removed)> wrote in message
news:u2hZDGE$(E-Mail Removed)...
> Considering MS want to keep the SQLCE code/format secret, how can a
> third-party developer create such an application? I know you can

investigate
> the file format of the db and "reverse engineer" it from that, but this is
> not a very safe/stable way of doing it, is it? On the other hand, with
> sufficient testing (whenever that is) you could always come up with a

"good
> enough" application I guess...
>
> / Peter
>
>
> "Ginny Caughey [MVP]" <(E-Mail Removed)> wrote in

message
> news:O0qj7F%23%(E-Mail Removed)...
> > Rafael,
> >
> > Generally sdf files need to be created on the device itself in the

current
> > version of SqlCe. One approach is to export the data from your database

> into
> > XML and then write a little .NetCF app that reads the XML into a

DataSet,
> > creates the sdf file and writes out the data. (You could also create the

> sdf
> > file on the emulator using the same approach.)
> >
> > There is also a 3rd party product called RemoteSqlCe that allows you to
> > create sdf files on the device from a desktop app. There's more info

here:
> > http://www.gui-innovations.com/html/remotesqlce.html
> > --
> > Ginny Caughey
> > .Net Compact Framework MVP
> >
> > "Rafael Metring" <(E-Mail Removed)> wrote in message
> > news:OuLJj49%(E-Mail Removed)...
> > > How can I create one .sdf file.
> > >
> > > I have my Database in Sql (mdf and ldf ) and I like know how to

convert
> > this
> > > to .sdf file to use
> > > in my new system in pocket..
> > >
> > > Tanks Advanced.
> > >
> > > Rafael
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Peter B
Guest
Posts: n/a
 
      26th Feb 2004
Aha! :-)



"Peter Foot [MVP]" <(E-Mail Removed)> wrote in message
news:OGxZRlE$(E-Mail Removed)...
> The app in question still uses SqlServerCe to create its database file,

what
> it offers is the ability to create and manipulate the database remotely

from
> the desktop pc.
>
> Peter
>
> --
> Peter Foot
> Windows Embedded MVP
> OpenNETCF.org Senior Advisor
> www.inthehand.com | www.opennetcf.org
>
> "Peter B" <(E-Mail Removed)> wrote in message
> news:u2hZDGE$(E-Mail Removed)...
> > Considering MS want to keep the SQLCE code/format secret, how can a
> > third-party developer create such an application? I know you can

> investigate
> > the file format of the db and "reverse engineer" it from that, but this

is
> > not a very safe/stable way of doing it, is it? On the other hand, with
> > sufficient testing (whenever that is) you could always come up with a

> "good
> > enough" application I guess...
> >
> > / Peter
> >
> >
> > "Ginny Caughey [MVP]" <(E-Mail Removed)> wrote in

> message
> > news:O0qj7F%23%(E-Mail Removed)...
> > > Rafael,
> > >
> > > Generally sdf files need to be created on the device itself in the

> current
> > > version of SqlCe. One approach is to export the data from your

database
> > into
> > > XML and then write a little .NetCF app that reads the XML into a

> DataSet,
> > > creates the sdf file and writes out the data. (You could also create

the
> > sdf
> > > file on the emulator using the same approach.)
> > >
> > > There is also a 3rd party product called RemoteSqlCe that allows you

to
> > > create sdf files on the device from a desktop app. There's more info

> here:
> > > http://www.gui-innovations.com/html/remotesqlce.html
> > > --
> > > Ginny Caughey
> > > .Net Compact Framework MVP
> > >
> > > "Rafael Metring" <(E-Mail Removed)> wrote in message
> > > news:OuLJj49%(E-Mail Removed)...
> > > > How can I create one .sdf file.
> > > >
> > > > I have my Database in Sql (mdf and ldf ) and I like know how to

> convert
> > > this
> > > > to .sdf file to use
> > > > in my new system in pocket..
> > > >
> > > > Tanks Advanced.
> > > >
> > > > Rafael
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Rafael Metring
Guest
Posts: n/a
 
      26th Feb 2004
I was reading that Access 2000 can generate SDF file ,it's true?

Rafael

"Peter B" <(E-Mail Removed)> escreveu na mensagem
news:eAQOkHF$(E-Mail Removed)...
> Aha! :-)
>
>
>
> "Peter Foot [MVP]" <(E-Mail Removed)> wrote in message
> news:OGxZRlE$(E-Mail Removed)...
> > The app in question still uses SqlServerCe to create its database file,

> what
> > it offers is the ability to create and manipulate the database remotely

> from
> > the desktop pc.
> >
> > Peter
> >
> > --
> > Peter Foot
> > Windows Embedded MVP
> > OpenNETCF.org Senior Advisor
> > www.inthehand.com | www.opennetcf.org
> >
> > "Peter B" <(E-Mail Removed)> wrote in message
> > news:u2hZDGE$(E-Mail Removed)...
> > > Considering MS want to keep the SQLCE code/format secret, how can a
> > > third-party developer create such an application? I know you can

> > investigate
> > > the file format of the db and "reverse engineer" it from that, but

this
> is
> > > not a very safe/stable way of doing it, is it? On the other hand, with
> > > sufficient testing (whenever that is) you could always come up with a

> > "good
> > > enough" application I guess...
> > >
> > > / Peter
> > >
> > >
> > > "Ginny Caughey [MVP]" <(E-Mail Removed)> wrote in

> > message
> > > news:O0qj7F%23%(E-Mail Removed)...
> > > > Rafael,
> > > >
> > > > Generally sdf files need to be created on the device itself in the

> > current
> > > > version of SqlCe. One approach is to export the data from your

> database
> > > into
> > > > XML and then write a little .NetCF app that reads the XML into a

> > DataSet,
> > > > creates the sdf file and writes out the data. (You could also create

> the
> > > sdf
> > > > file on the emulator using the same approach.)
> > > >
> > > > There is also a 3rd party product called RemoteSqlCe that allows you

> to
> > > > create sdf files on the device from a desktop app. There's more info

> > here:
> > > > http://www.gui-innovations.com/html/remotesqlce.html
> > > > --
> > > > Ginny Caughey
> > > > .Net Compact Framework MVP
> > > >
> > > > "Rafael Metring" <(E-Mail Removed)> wrote in message
> > > > news:OuLJj49%(E-Mail Removed)...
> > > > > How can I create one .sdf file.
> > > > >
> > > > > I have my Database in Sql (mdf and ldf ) and I like know how to

> > convert
> > > > this
> > > > > to .sdf file to use
> > > > > in my new system in pocket..
> > > > >
> > > > > Tanks Advanced.
> > > > >
> > > > > Rafael
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Ginny Caughey [MVP]
Guest
Posts: n/a
 
      26th Feb 2004
Rafael,

Access can't generate a SQLCe file.
--
Ginny Caughey
..Net Compact Framework MVP

"Rafael Metring" <(E-Mail Removed)> wrote in message
news:%23Yq7LMG$(E-Mail Removed)...
> I was reading that Access 2000 can generate SDF file ,it's true?
>
> Rafael
>
> "Peter B" <(E-Mail Removed)> escreveu na mensagem
> news:eAQOkHF$(E-Mail Removed)...
> > Aha! :-)
> >
> >
> >
> > "Peter Foot [MVP]" <(E-Mail Removed)> wrote in message
> > news:OGxZRlE$(E-Mail Removed)...
> > > The app in question still uses SqlServerCe to create its database

file,
> > what
> > > it offers is the ability to create and manipulate the database

remotely
> > from
> > > the desktop pc.
> > >
> > > Peter
> > >
> > > --
> > > Peter Foot
> > > Windows Embedded MVP
> > > OpenNETCF.org Senior Advisor
> > > www.inthehand.com | www.opennetcf.org
> > >
> > > "Peter B" <(E-Mail Removed)> wrote in message
> > > news:u2hZDGE$(E-Mail Removed)...
> > > > Considering MS want to keep the SQLCE code/format secret, how can a
> > > > third-party developer create such an application? I know you can
> > > investigate
> > > > the file format of the db and "reverse engineer" it from that, but

> this
> > is
> > > > not a very safe/stable way of doing it, is it? On the other hand,

with
> > > > sufficient testing (whenever that is) you could always come up with

a
> > > "good
> > > > enough" application I guess...
> > > >
> > > > / Peter
> > > >
> > > >
> > > > "Ginny Caughey [MVP]" <(E-Mail Removed)> wrote in
> > > message
> > > > news:O0qj7F%23%(E-Mail Removed)...
> > > > > Rafael,
> > > > >
> > > > > Generally sdf files need to be created on the device itself in the
> > > current
> > > > > version of SqlCe. One approach is to export the data from your

> > database
> > > > into
> > > > > XML and then write a little .NetCF app that reads the XML into a
> > > DataSet,
> > > > > creates the sdf file and writes out the data. (You could also

create
> > the
> > > > sdf
> > > > > file on the emulator using the same approach.)
> > > > >
> > > > > There is also a 3rd party product called RemoteSqlCe that allows

you
> > to
> > > > > create sdf files on the device from a desktop app. There's more

info
> > > here:
> > > > > http://www.gui-innovations.com/html/remotesqlce.html
> > > > > --
> > > > > Ginny Caughey
> > > > > .Net Compact Framework MVP
> > > > >
> > > > > "Rafael Metring" <(E-Mail Removed)> wrote in message
> > > > > news:OuLJj49%(E-Mail Removed)...
> > > > > > How can I create one .sdf file.
> > > > > >
> > > > > > I have my Database in Sql (mdf and ldf ) and I like know how to
> > > convert
> > > > > this
> > > > > > to .sdf file to use
> > > > > > in my new system in pocket..
> > > > > >
> > > > > > Tanks Advanced.
> > > > > >
> > > > > > Rafael
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
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
How do I create a .bat file to create a shortcut on the desktop? Jenny Microsoft Excel Programming 0 19th Sep 2008 02:39 PM
Can not create a new file with File.Create -- throws exception:Access Denied thephatp Microsoft C# .NET 4 30th Mar 2008 03:48 PM
Solution to: Can't create file:.xls. Right click folder you want to create the file in and then click properties on the shortcut menu to check your permissions on this folder Ky_fanatic Microsoft Outlook Discussion 1 8th Dec 2006 06:15 PM
Drag and drop to create a link to a file in a cell of an Excel file paulaugust2003@yahoo.com Microsoft Excel Discussion 2 18th Sep 2005 03:44 PM
Which of your products can be used to create / burn a web to a cd or dvd and also create an autostart file / cd? Windows XP New Users 5 18th Jul 2005 06:47 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:40 AM.