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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 Database Design and Application Architecture
 make my database portable
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

emillio5
Starting Member

Belgium
2 Posts

Posted - 09/16/2012 :  06:02:20  Show Profile  Reply with Quote
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

Belgium
2 Posts

Posted - 09/16/2012 :  07:34:54  Show Profile  Reply with Quote
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

India
52326 Posts

Posted - 09/16/2012 :  12:18:35  Show Profile  Reply with Quote
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)

Singapore
17689 Posts

Posted - 09/16/2012 :  21:30:08  Show Profile  Reply with Quote
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
Time is always against us

Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000