Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Can I change my data in SQLEXPRESS to the app_data folder?Can I change my data in SQLEXPRESS to the app_data folder?
Previous
 
Next
New Post
12/15/2008 6:46 PM
 

First the question straight forward.  When I originally started playing with DotNetNuke, obviously I knew ZERO about much of anything :->.

can I somehow convert this .bak file I Have from SQL, to whatever is required in the app_data folder?

So, I set up SQLEXPRESS 2005, and created a database for DotNetNuke using Management Studio Express, which seemed the easiest at the time...I've later learned a much much easier way, which is to just use the database file in the app_data folder.  Anyhow comming from a newbie point of view you can understand the confusion, as it seems logical, that any data needs to show up in the sql management tool, and these files don't show up there :->

So...now I'm thinking how much easier it would be to move a website from one server to another, using this nifty, which does obviously still use SQL server...but then I wonder, what is the dis-advantage to using SQL EXPRESS using the app_data folder, as opposed to creating a database in the tool, that is somewhere burried in the SQL install folder....it just seems logical now, that one would prefer to use the app_data folder.

I can understand, if I want to use full blown sql, and want to maybe do some clusters or something, that maybe thats when to use this type install.

 

So...finally to the question(I can't help babbling :->).

I want to seperate two websites on the same DNN instance, to two seperate instances of DNN.   I now have two websites that I want to work on both, but don't want to screw one up when working with the other.

I've backed up the SQL database of the original instance, and the plan was to just duplicate the whole site(folders and database), restore my backed up database to a second SQL instance, called like Site2, and then point the web.config in the duplicate to this second database, and then delete all the portals out of the second install that are not related to this install....violoa....seperate..and it should work I think without much problem....use some host headers to keep em live on one server until the need to move it to another, which will be needed soon.

can I somehow convert my SQL .bak file I Have from SQL, to whatever is required in the app_data folder?(read below for full...word friendly, annoyingly confusing explanation of what I'm wanting to accomplish and what brings me to this point :->)

 

Thanks

Josh

 


Josh Martin

 
New Post
12/16/2008 4:50 AM
 

you might be able to move .mdf file into app_data folder but be aware that you will have problems accessing database with management studio, please read here: http://www.dotnetnuke.com/Community/Blogs/tabid/825/EntryId/1202/DNN-SQLExpress-SQL-Server-Management-Studio.aspx


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
12/16/2008 10:51 AM
 

Josh,

You plan to separate the sites is perfect, but I STRONGLY recommend NOT using the .mdf file inside of the app_data folder, leave them as you haev them.

I have a recent blog post about this topic at http://www.mitchelsellers.com which explains WHY the dynamically attached .mdf files is a bad idea.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
12/16/2008 1:15 PM
 

Thanks both for your answers.  I was always wondering, I figured the managed (I guess that term works), method was the best, but recently I somehow figured out that it really just does the  app_data one pretty much automatically if you let it(figures..when I'm learning something I always take the hardest route :->).

Anyhow I will take both your suggestions and continue to manage databases in Management Studio...I do intend to one day need full blown SQL server anyhow :->

 


Josh Martin

 
New Post
12/17/2008 12:06 PM
 

Ok...Roadblock. 

My plan then, after we talked here, is to backup my live copy of my database. then "restore" that backed up database, to a new blank database.  Here is the new snag.

I have a backup file, no problem.  I create the blank database using Management Studio express, and try to "restore" to it from the backup files...and I get somethign to the effect of, you can't do that 'casue a database with that name already exisits...which it does.  I"m jsut trying to keep both instances on the same server for now, then after seperated spend the money on a truely seperate server, and easily move it.

 

So..how do I backup my existing live database called "DNNLive" in Management Studio Express, and then create a duplicate of it called say DNN_Live_Split, or NewDNNLive, or PostSplitDNN or whagever, on the exact same server?

Any good tutorials?  my google skills seem to be lacking today :->

 


Josh Martin

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Can I change my data in SQLEXPRESS to the app_data folder?Can I change my data in SQLEXPRESS to the app_data folder?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out