How do I save .sdf file to SD card by using SavefileDialog for Pocket PC

Hi!

I'm working on a pocket pc application in VB.Net in Visual Studio 2005.
Is there anyway that I can save my data from datagrid individually to SD card? Or can I save database.sdf file to SD card as well?
Since my datebase for pocket pc is in sdf format. What will I do to convert from sdf to Access or Excel format when it save to the memory card?
It would be great if you can help me to get savefiledialog and openfiledialog working in my handheld device.

Thank you very much!





Harrison
ykhwayAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mikal613Commented:
mm  i answered that question haha
0
Mikal613Commented:
There is a save and open file dialog in the pocket pc

Open
http://msdn2.microsoft.com/en-us/library/system.windows.forms.openfiledialog(VS.80).aspx

SAve
http://msdn2.microsoft.com/en-US/library/system.windows.forms.savefiledialog(VS.80).aspx

The only thing is that you need at least the Compact Framework 1.0  installed on the device
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

ykhwayAuthor Commented:
Hi PockyMaster and Mikal613,

Thanks for answering my question!

But how will I save the .sdf file from the pocket pc memory to the memory card?
Or make .sdf file save as Access format to the memory card?

0
Mikal613Commented:
if you use the save dialog then you just point to the sd card.

Converting your sdf

http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/Q_21713270.html
0
PockyMasterCommented:
What you need to keep in mind is, that flash memory can only be used a number of times (approx. 10.000 writes per sector)
If you have a lot of updates and writes to your flash memory, you can/will break it.
It doesnt neccessarily be the case in your example, but keep it in mind.
0
Mikal613Commented:
"that flash memory can only be used a number of times (approx. 10.000 writes per sector)
If you have a lot of updates and writes to your flash memory, you can/will break it.
It doesnt neccessarily be the case in your example, but keep it in mind."

never heard of that

Please prove it.
0
PockyMasterCommented:
When compared to a hard disk drive, a further limitation is the fact that flash memory has a finite number of erase-write cycles.

Source : Wikipedia

http://en.wikipedia.org/wiki/Flash_memory

They even advertise with it:
"Durability             10,000 insertion/removal cycles"
http://www.meraat.cc/Flash%20Card.htm

You can try it out, write some program to write small amounts of log text e.g. to a flash card, as fast as you can. You will break it.

0
Mikal613Commented:
its nice on paper but Everyone uses the sd card
xda-developers.com
howardforums.com

All the experts use it. Acc to your source a sd card is useless.

I wrote many programs and installed it on my sd card and its been 3 years and a sd card never died.

sandisk offers 5 year warrantys while some offer more.

Note: dont worry use the sd card.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
oleggoldCommented:
0
PockyMasterCommented:
It is a fact flash memory has a finite amount of write cycles. It depends on your application when you reach it. And a warrant is not a guarantee.

The amounts vary per quality of course :D
Well, you can worry about it or not, I would take a mental note, and remember these statistics when you are designing your product, and see for yourself if it applies to you.

http://www.psism.com/sdcfbi.htm
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.