in

Dotnetpanel Forums

Community support forums for DotNetPanel products

How to setup MSSQL Hosting

Last post 04-05-2010 12:22 PM by Vikas Sonawane. 27 replies.
Page 2 of 2 (28 items) < Previous 1 2
Sort Posts: Previous Next
  • 05-12-2007 10:31 AM In reply to

    Re: How to setup MSSQL Hosting

    Another problem is when a user goes in to "RESTORE" a database.  By default SMS browses the SQL Server Machine and thus the user has the ability to view ALL files and the directory structure of the C:/ drive.Angry

    Chase

    DotNetPanel 2.8.5
    Server 2008 Std
    SQL Server Express
    MailEnable Enterprise 3.14
  • 05-13-2007 8:15 PM In reply to

    Re: How to setup MSSQL Hosting

    any idea how to solve this? beside total disable remote SSMS login and using MyLittleTools, thanks in advance 

  • 05-19-2007 10:55 PM In reply to

    Re: How to setup MSSQL Hosting

    Yep, myLittleAdmin is a great tool. We are authorized myLittleTools partners and all DNP customers can purchase myLittleAdmin with 25% discount
    Awesome, how do we buy it with this discount?

    Chase

    DotNetPanel 2.8.5
    Server 2008 Std
    SQL Server Express
    MailEnable Enterprise 3.14
  • 05-21-2007 3:06 AM In reply to

    Re: How to setup MSSQL Hosting

    rockinthesixstring:
    Awesome, how do we buy it with this discount?

    Just send an email at sales (at) mylittletools.net telling you'd like to receive DNP special offer. We will then send you a 25% discount coupon code.

    Best regards

    Web-Based Tools For SQL Server Professionals And Hosting Companies

    http://www.mylittletools.net
    http://www.mylittleadmin.com
    http://www.mylittlebackup.com
  • 05-21-2007 3:20 AM In reply to

    Re: How to setup MSSQL Hosting

    Hi Elian,

    Welcome to DNP forums! Smile

    Guys, use this chance to ask your questions directly to myLittleTools founder! Wink

    Sincerely yours,
    Feodor Fitsner, Director
    DotNetPanel - professionally developed software for hosting businesses
  • 09-01-2009 3:35 PM In reply to

    Re: How to setup MSSQL Hosting

    directhostinguk:

    Anyone know if theres a script that stops Database users seeing other Databases.

    I know theres one for SQL 2000 is there one for SQL 2005/Express

     

    Hi,

    In case someone needs this for SQL Server 2008 just: DENY VIEW ANY DATABASE TO public; (fixed-server role)

    http://msdn.microsoft.com/en-us/library/ms189077.aspx

    Should work for SQL Server 2005 as well.

     

    Some other tips:

    Auto Close is not that good as it seems and depends on your situation. http://itknowledgeexchange.techtarget.com/sql-server/auto-close-is-almost-as-bad-as-auto-grow/

    Auto Grow - same story. http://itknowledgeexchange.techtarget.com/sql-server/autogrow-is-the-bane-of-my-existence/

     

    Other tips are more than welcome!

    Regards,
    Jegor.
    Filed under: , , , ,
  • 09-13-2009 12:14 PM In reply to

    • GrZeCh
    • Top 10 Contributor
    • Joined on 04-25-2007
    • Poland
    • Posts 651

    Re: How to setup MSSQL Hosting

     Hello,

    how exactly

    prostoemailee:
    DENY VIEW ANY DATABASE FROM public; (fixed-server role)

    is working? User connects with SQL Server Management Studio and see only his databases?

    Are there any downsides of this solution?

    DotNetPanel 2.8.14
  • 09-25-2009 5:58 AM In reply to

    Re: How to setup MSSQL Hosting

    GrZeCh:
    is working?

    Yes, it is.

    GrZeCh:
    User connects with SQL Server Management Studio and see only his databases?

    Yes, login sees only databases he is mapped to. + system dbs.

    GrZeCh:
    Are there any downsides of this solution?

    Not found so far in my setup.


    It is advisable to "DENY VIEW SERVER STATE TO public;" and "DISABLE TRIGGER ALL ON all server;" for security reasons as well.

    http://technet.microsoft.com/en-us/library/cc966485.aspx

     

    Regards,
    Jegor.
  • 09-25-2009 6:15 AM In reply to

    • GrZeCh
    • Top 10 Contributor
    • Joined on 04-25-2007
    • Poland
    • Posts 651

    Re: How to setup MSSQL Hosting

    Does this solution allows to have more than one user added to database?

    DotNetPanel 2.8.14
  • 09-25-2009 11:22 AM In reply to

    Re: How to setup MSSQL Hosting

    GrZeCh:
    Does this solution allows to have more than one user added to database?

    When you say "user", do you mean Login or database User? Couse there is a big difference.

    If Login - then yes. If db User - then you can create them via statements or Management Studio, as DNP does not have an ability to create db Users without Logins.

    If you find this confusing please find more info here: http://msdn.microsoft.com/en-us/library/ms191465.aspx

    Regards,
    Jegor.
  • 11-21-2009 4:55 PM In reply to

    • GrZeCh
    • Top 10 Contributor
    • Joined on 04-25-2007
    • Poland
    • Posts 651

    Re: How to setup MSSQL Hosting

    Running:

    "DENY VIEW ANY DATABASE FROM public;"

    returns error Incorrect syntax near 'from'.

    so it probably should be:

    "DENY VIEW ANY DATABASE TO PUBLIC;"

    but after running this command there are no database in SQL Server Management Studio DB list so this is NOT working (SQL Server 2008). I'm just letting know to others who was curious about this.

    DotNetPanel 2.8.14
  • 03-15-2010 3:51 PM In reply to

    Re: How to setup MSSQL Hosting

    GrZeCh:
    but after running this command there are no database in SQL Server Management Studio DB list so this is NOT working (SQL Server 2008).
     

    Most likely your have denied CONNECT to guest to master, msdb, tempdb.

    To see mapped DBs in Management Studio check if guest has CONNECT allowed to the databases mentioned above.

    Regards,
    Jegor.
  • 04-05-2010 12:22 PM In reply to

    Re: How to setup MSSQL Hosting

     @ mitodna wrote at Wed, May 9 2007 4:59 AM

    It's something you will have to change with the sp_MSdbuseraccess stored procedure, I found script for MSSQL 2005. If You are experiencing a slow response from SQL Server Enterprise Manager when many databases exist in an instance of SQL Server, then go through following article.

    http://support.microsoft.com/kb/889696/en-us

    The above article accomplished this in SQL 2000. In MSSQL 2005 you cann't run script for all users, but you can apply settings for single database using using following steps, 

     

    This is possible for a single user login as you can only asign ownership of a database to a single user.
    Should be ok for most small hosting situations. This is how I achieved it under SQL server 2008...


    1. Right click the users logon under the users database if they exist and remove
    (Note: Do not remove the user from under the main security login)

    2. Run the following query

    USE <customersdatabase>

    ALTER AUTHORIZATION ON DATABASE::<customerdatabase> to <customerlogin>

     
    USE MASTER

    DENY VIEW ANY DATABASE TO <customerlogin>

    Vikas Sonawane.

    Sr. Windows System Administrator.
    MCP, MCSE, CCNA
    Filed under: ,
Page 2 of 2 (28 items) < Previous 1 2
Powered by Community Server (Commercial Edition), by Telligent Systems