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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Can I create the database manually from the scripts?Can I create the database manually from the scripts?
Previous
 
Next
New Post
1/18/2007 8:22 PM
 

I see that  when DNN installs it start off with running these scripts:

00:00:00.046 - Installing Version: 3.1.0
00:00:00.046 - Installing Script: DotNetNuke.SetUp.SqlDataProvider Success
00:00:00.187 - Installing Script: DotNetNuke.Schema.SqlDataProvider Success
00:00:11.797 - Installing Script: DotNetNuke.Data.SqlDataProvider Success
00:00:21.172 - Installing MemberRole Provider:
00:00:21.172 - Executing InstallCommon.sql
00:00:22.532 - Executing InstallMembership.sql
00:00:25.157 - Executing InstallProfile.sql
00:00:25.688 - Executing InstallRoles.sql
 Success

 

if exists (select * from dbo.sysobjects where id = object_id(N'{databaseOwner}[{objectQualifier}FindDatabaseVersion]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)

When this runs, what should it look like? Something like this?:

if exists (select * from dbo.sysobjects where id = object_id(N'myOwnerName.don't_know_what_to_put_here.FindDatabaseVersion]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)

Could you give me an exact syntax example?

 

I ask because I created a development version of DNN and the database and now would like to move both off my machine to a test server.

However, I am having tremendous difficulties with either copying or export/import the DNN database in SQL Server 2005, because of missing items or too many errors and stuff I dodn't know too much about. I would love to be able to just copy the db because it seems that data pertaining to what modules are on what pages and their respective content but have had no luck.

Thanks in advance for any help at all


Can I run the first four manually somehow? I tried to but I get errors and when I look at the content I don't know what to put in the places highlighted below:
 
New Post
1/18/2007 8:40 PM
 

{databaseOwner} gets replaced by the setting for "databaseOwner" in the sqlDataProvider section of your web.config (default: "dbo.")

{objectQualifier} gets replaced by the setting for "objectQualifier" in the sqlDataProvider section of your web.config (default: "")

with the default settings, your example is executed as follows:

if exists (select * from dbo.sysobjects where id = object_id(N'dbo.[FindDatabaseVersion]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
//Edit: oops, dot added, sorry.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
1/19/2007 11:57 AM
 

Leupold,

Thanks for your response. I did as you suggested, but needed to make one adjustment after I did the find and replace. I needed to add a '.' after dbo:

if exists (select * from dbo.sysobjects where id = object_id(N'dbo[FindDatabaseVersion]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
Thanks for your help.
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Can I create the database manually from the scripts?Can I create the database manually from the scripts?


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