Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
3.00/5 (3 votes)
See more:
Dear,

I have an windows application in c# .The requirement for the application is whenever he plug the USB to a computer the database in usb is enabled.Currently I use the SQL Server 2008 is the database installed in my computer.Whether i install sql server 2008 on USB or please suggest the database suitable for installing in usb.Also please give the steps to change the data from sql server 2008 to that database.How can i enable the database in usb when it is connected.Please help me.

Thanks to All,

Ananya
Posted
Comments
ridoy 21-Aug-12 13:59pm    
A good question..

You need an embedded database engine.

If you are using SQL Server then try http://www.vistadb.net/[^] as it is a drop in replacement for it.

You can check out : http://www.sqlite.org/[^]
 
Share this answer
 
My suggestion is to create a windows service which enables you to know when a USB device has connected using System.Diagnostics.EventLog; That time you should connect to Db.

You should know more about event log:
http://msdn.microsoft.com/en-us/library/system.diagnostics.eventlog.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900