User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 363,390 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,798 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 344 | Replies: 2
Reply
Join Date: May 2008
Posts: 2
Reputation: ricksvoid is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
ricksvoid ricksvoid is offline Offline
Newbie Poster

DBO vs MDF -whats the difference?

  #1  
May 11th, 2008
First of all here is how i created my SQL database and established a connection in visual studio 05. I go into the server explorer and right click on the data connections node and and select "create new SQL database". A window then prompts me for a server name and data base name. Under server name I write "localhost\SQLEXPRESS" and under data base name I put in whatever. This totally worked and the database was asigned the extension of .DBO

I can now insert, select and delete information with some simple ADO coding. The only problem is that using this method makes it seamingly impossible to FTP my database onto my host server. I am aware that I can create a data base in the APP folder by simply right clicking it and selecting " new database".

This would simplify the deploying process but I cant seem to establish a connection this way. Ive also noticed that when I use this method that it saves it as a .MDF instead of a .DBO. What is the difference? Why does my .DBO work but not my .MDF in my app folder? Im so confused over this issue that I am problably not even asking the right question. Bottom line is that I have a small web application with a .dbo that works wonderfully in my isolated visual studio environment and I need a solution to deploy it on the world wide web. Please help with any information I would be very thankfull.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2008
Posts: 23
Reputation: fayenot is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
fayenot fayenot is offline Offline
Newbie Poster

Re: DBO vs MDF -whats the difference?

  #2  
May 29th, 2008
i have the same problem... can anyone help us..please.. deadline is fast approaching and i need an immediate resolution for my problem in my thesis.. i will greatly appreciate a friendly help from you guys..=)
Reply With Quote  
Join Date: May 2008
Posts: 2
Reputation: ricksvoid is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
ricksvoid ricksvoid is offline Offline
Newbie Poster

Re: DBO vs MDF -whats the difference?

  #3  
Jun 1st, 2008
I found the solution for establishing a connection to a .MDF in the app-data folder. Im not shure how to deploy it yet because I am still working on the website and have'nt approached this obstacale yet. Youre connection string needs to be altered in the Config file to establish a correct path to your database in the app-data folder. drop me a line if you need the code. Its a small modification.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb ASP.NET Marketplace
Thread Tools Display Modes

Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 12:35 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC