Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Selecting a Web Host for your Web Site Part 2 of 2 Expand / Collapse
Author
Message
Posted Friday, April 8, 2005 1:42 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, December 8, 2014 8:47 AM
Points: 142, Visits: 64
Comments posted to this topic are about the content posted at http://www.sqlservercentral.com/columnists/jreade/selectingawebhostforyourwebsitepart2of2.asp


Jon
Post #173496
Posted Wednesday, April 20, 2005 7:04 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, September 11, 2006 1:55 AM
Points: 4, Visits: 1

RE: SQL Security in a hosted environment.

As this excellent article points out, in some (most) hosted environments you can see other peoples databases in Enterprise Manager, Query Analyser or even DTS. Sometimes you can see the table names and structure and stored procedure text. I believe this relates to databases having a guest account enabled.

However, at least one hoster I know of has solved this problem very nicely. If you get a trial account at http://europe.webmatrixhosting.net and register your database in Enterprise Manager, you only see your own database! Likewise in Query Analyser. DTS shows them all.

My question, and perhaps I should post this more generally, is: How do they do this? My main hosting partner doesn't know how its done and I can't figure it out.

Ideas anyone?




Post #176070
Posted Wednesday, April 20, 2005 8:52 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, December 8, 2014 8:47 AM
Points: 142, Visits: 64

Thanks for the compliment TSG. Not sure how they can do this, as the dynamic SQL that SQL Server 2000 Enterprise Manager kicks off to get the database details is as follows:

select name,
 DATABASEPROPERTY(name, N'IsDetached'),    
 (case when DATABASEPROPERTY(name, N'IsShutdown') is null then -1 else DATABASEPROPERTY(name, N'IsShutdown') end),    
 DATABASEPROPERTY(name, N'IsSuspect'),
 DATABASEPROPERTY(name, N'IsOffline'),    
 DATABASEPROPERTY(name, N'IsInLoad'),    
 (case when DATABASEPROPERTY(name, N'IsInRecovery') is null then -1 else DATABASEPROPERTY(name, N'IsInRecovery') end),    
 (case when DATABASEPROPERTY(name, N'IsNotRecovered') is null then -1 else DATABASEPROPERTY(name, N'IsNotRecovered') end),    
 DATABASEPROPERTY(name, N'IsEmergencyMode'),
 DATABASEPROPERTY(name, N'IsInStandBy'), has_dbaccess(name),    
 status,
 category,
 status2
from  master.dbo.sysdatabases


I'd be very interested to know how they could restrict the information that is brought back to just those rows which the currently connected user is entitled to see. Great idea though, would be very useful in locking down the environment further, will try to find out if anything like this has been included in SQL Server 2005.




Jon
Post #176117
Posted Wednesday, April 20, 2005 10:07 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Thursday, April 9, 2009 2:25 PM
Points: 22, Visits: 11
Hopefully this will help. Following the steps in this KB article should make it so only databases you have access to show up in EM, QA, and even DTS. My web host (Maximum ASP) applied these changes recently and it works great! It also really speeds initial response time in EM if the server has a lot of databases that you don't have access to, which is usually the case in a shared hosting environment.

http://support.microsoft.com/default.aspx/kb/889696
Post #176150
Posted Friday, April 22, 2005 2:31 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, September 11, 2006 1:55 AM
Points: 4, Visits: 1

Thanks Andy.

This works a charm. I tried it myself first and then forwarded it to my hoster.

Well done.

TSG




Post #176707
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse