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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Accessing DNN Database with SQL Express Management StudioAccessing DNN Database with SQL Express Management Studio
Previous
 
Next
New Post
8/18/2009 10:30 AM
 

John Priest wrote
I am having a hard time Attaching the DNN database file in SQL Express Management Studio. Whenever I try to attach, I get an error that the database is locked. Of course, I have been using Windows Authentication.

I have found some posts and blog entries like this one:
http://www.dotnetnuke.com/Community/Blogs/tabid/825/EntryId/1202/DNN-SQLExpress-SQL-Server-Management-Studio.aspx

Seems like I can use this to open up simultaneous access to the website & mgmt studio, but

Ppl wrote that it saved then a day but for me it killed a day
If I attach in SSMS(MS SQL Server Mgmt Studio) through descriptions in that blog then opening db in Server Explorer of VS breaks DNN website and access to it in through SSMS.
So, there is no simultaneous access. Either access through SSMS and keep in mind not touching in МЫ щorin VS keeping in mind not touching in SSMS.

But why? For ex., it is possible to access attached DNN Express database both in SSMS2005 and SSMS2008 without breaking one anoteher's acces and DNN website...
 

 
New Post
8/18/2009 10:37 AM
 

if you want to open Database using SSMS, while DNN web site running, you should attach it in SSMS as usual database and access it useing database name and user instead of impersonation.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
8/19/2009 8:08 AM
 

Sebastian Leupold wrote
 

if you want to open Database using SSMS, while DNN web site running, you should attach it in SSMS as usual database and access it useing database name and user instead of impersonation.

I did not understand about impersonation as well as about all those blog's security steps of adding aspnet as login and database user.
By all installations there excessive multiply guaranteed sufficient permissions:
ASPNET is member of builtin\USERS group
And the latter is, by all installs, login to MS SQL Express instance

MSSQL runs as "NT Authority\Network Service"
VS runs (and launch DNN website) as current windows user (for me it is compname\Administrator)
 
Default Login to MSSQL Expresss instance:
<LocalServerDomainName>\SQLServer2005MSSQLUser$<myCompName>$SQLEXPRESS has member
"NT Autority\Network Service"

Default Login to MSSQL Expresss instance:
<LocalServerDomainName>\Administrator login  is mapped to omnipresent and omnipotent database user dbo
through the engagement of AttachDBFileName

-------------------------------
IMHO that blog is time-overkiller and misleader.
At least for a developer who is usually Administraor of his own computer.

As I understood, in order to access App_Data\Database.mdf
simultaneously both from ServerExplorer of VS and from SSMS it is enough:
1)
not opening Database.mdf by double-clicking on it
 in Solution Explorer of VS
but passing AddConnection... steps in ServerExplore of VS
2)
In place of a dozen actions mentioned in blog
(btw volatile ones since one would reuire to repeat attaching db in case of db name change
or website relocation-creation,
adding again user and configuring permissions for different website or db instance,
 etc., etc.)
it is enough to change in web.config ConnectionString from
User Instance=True
to
User Instance=False
and db will be auto-attached and appear in SSMS upon the first DNN website launch
(do not forget to refresh SSMS!)

If DNN website was already stopped working it is enough to delete (detach) "incorrectly"
added (or attached) dbconnections from Server Explore and/or SSMS
(depends on where and how it was screwed), correspondingly closing(and reopening) VS and SSMS
and pass to 1) and 2).

Essentially it is rather important to know 1),
i.e. to avoid opening mdf by double-clicking mdf if you are going to access it from SSMS.

That's all. Neither impersonations nor security configurations is required

Correct me where I am wrong.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Accessing DNN Database with SQL Express Management StudioAccessing DNN Database with SQL Express Management Studio


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