Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 Database Design and Application Architecture
 make my database portable

Author  Topic 

emillio5
Starting Member

2 Posts

Posted - 2012-09-16 : 06:02:20
I have a program in visual c# with a sqldatabase.
When i look in the folder where my program is located i can see the datbase : database1.mdf.
But what i want to do is to set my program and database on a usb stick and be able to use my program everywhere on any pc.
Can someone help me.

emillio5
Starting Member

2 Posts

Posted - 2012-09-16 : 07:34:54
i think i solved my problem: i have changed my server-based database into a local database.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-09-16 : 12:18:35
you can always move and attach mdf to any server you want to host your database

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2012-09-16 : 21:30:08
quote:
Originally posted by emillio5

I have a program in visual c# with a sqldatabase.
When i look in the folder where my program is located i can see the datbase : database1.mdf.
But what i want to do is to set my program and database on a usb stick and be able to use my program everywhere on any pc.
Can someone help me.



That will be Compact Edition
http://www.microsoft.com/sqlserver/en/us/editions/2012-editions/compact.aspx

Do note that the compact edition is a in-process database engine and with limited functionality compare to the full fledged SQL Server


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -