﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / Security (SS2K8)  / VPN access for vendor, multiple instance / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sat, 25 May 2013 06:58:32 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: VPN access for vendor, multiple instance</title><link>http://www.sqlservercentral.com/Forums/Topic1386477-1526-1.aspx</link><description>It is possible to give VPN access to SQL Server that currently has one default instance.please check,how he connecting to sql server .if he using sql client component or taking access of entire server aceess.create low priviledge windows login then map that login to particular database which he want to access.Bcoz as we all know windows authentication is more secure.Is it possible to create a second instance and only allow the vendor access to that second instance through VPN?yes.u can  but plz check sql server browser service is not running .bcoz if it is running then it will show no of instances please observed activity what time he is connecting .</description><pubDate>Tue, 04 Dec 2012 05:30:21 GMT</pubDate><dc:creator>Hemant.R</dc:creator></item><item><title>RE: VPN access for vendor, multiple instance</title><link>http://www.sqlservercentral.com/Forums/Topic1386477-1526-1.aspx</link><description>Lowell has covered the database-level concerns well. All I'll add, at the server-level, is if you are concerned about the new vendor seeing databases other than their own when using the SSMS Object Explorer you can deny the VIEW ANY DATABASE permission. The permission is granted to all logins via the [i]public[/i] Role at the server-level, and all logins inherit that permission by default because all logins are permanent members of [i]public[/i]:[code="sql"]DENY VIEW ANY DATABASE TO [TheNewLogin];[/code]edit: it's worth mentioning that you can also DENY or REVOKE the permission from [i]public[/i] but that's a more drastic measureThe DENY on the login object will supercede the GRANT offered by the login's membership in [i]public[/i] but it also means the login will not even see databases in Object Explorer that they legitimately can access. This means they'll have to know the database's name to change contexts into it in a query window using:[code="sql"]USE [DatabaseName];[/code]Personally I would like for there to be an option to have Object Explorer only show the databases a login can potentially access, as opposed to all or none:[u][url=http://connect.microsoft.com/SQLServer/feedback/details/124651/cant-see-database-with-object-explorer]Connect &amp;gt; Can't see database with Object Explorer[/url][/u]</description><pubDate>Mon, 19 Nov 2012 17:28:06 GMT</pubDate><dc:creator>opc.three</dc:creator></item><item><title>RE: VPN access for vendor, multiple instance</title><link>http://www.sqlservercentral.com/Forums/Topic1386477-1526-1.aspx</link><description>[quote][b]NJDave (11/19/2012)[/b][hr]HelloI have a request to allow a vendor to have VPN access to my SQL Server that currently has one default instance.The default instance contains multiple databases for multiple agencies - this creates a security concern.Is it possible to create a second instance and only allow the vendor access to that second instance through VPN?[/quote]no need for additional instances...you can limit access simply by giving the vendor one login, that has a matching user in only a single database.[quote]Is it possible to give a vendor VPN access but restrict their access to anything else but their database?Thanks in advanceDave[/quote]Remember SQL is deny by default, meaning if you don't explicitly give them access to something , whether by adding them to roles or mistakenly granting sysadmin privileges, they simply cannot access something that you diidn't give them.I would create a user for your vendor , say VENDORACCESS, and that is the user they can use to access the database in question;[code]Create LOGIN [VendorAccess] WITH PASSWORD='NotTheRealPassword'USE [WHATEVER]Create USER [VendorAccess] FOR LOGIN [VendorAccess] CREATE ROLE [AlmostOwners] EXEC sp_addrolemember N'db_ddladmin',   N'AlmostOwners'EXEC sp_addrolemember N'db_datareader', N'AlmostOwners'EXEC sp_addrolemember N'db_datawriter', N'AlmostOwners'--can the users EXECUTE procedures? comment out if falseGRANT EXECUTE TO [AlmostOwners]--allow the users to see view proc and function definitionsGrant View Definition ON SCHEMA::[dbo] To [AlmostOwners]--finally add our user to the role:EXEC sp_addrolemember N'AlmostOwners',   N'VendorAccess'[/code]</description><pubDate>Mon, 19 Nov 2012 12:02:52 GMT</pubDate><dc:creator>Lowell</dc:creator></item><item><title>VPN access for vendor, multiple instance</title><link>http://www.sqlservercentral.com/Forums/Topic1386477-1526-1.aspx</link><description>HelloI have a request to allow a vendor to have VPN access to my SQL Server that currently has one default instance.The default instance contains multiple databases for multiple agencies - this creates a security concern.Is it possible to create a second instance and only allow the vendor access to that second instance through VPN?Is it possible to give a vendor VPN access but restrict their access to anything else but their database?Thanks in advanceDave</description><pubDate>Mon, 19 Nov 2012 10:00:37 GMT</pubDate><dc:creator>NJDave</dc:creator></item></channel></rss>