Link to home
Start Free TrialLog in
Avatar of hindersaliva
hindersalivaFlag for United Kingdom of Great Britain and Northern Ireland

asked on

SQL Server 2008 - restrict user access

Is it possible to setup a user on SQL Server 2008 that can ONLY create records (via ADO/SQL from a client app. In my case Excel VBA) but not connect with SQL Server Management Studio?

Background: I'm creating an Excel VBA demo (that INSERTs records into a table) for open distribution. The connection string will be visible. I don't want anyone with those login credentials to be able to connect to the database and look inside.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Robin Sandlin
Robin Sandlin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Robin Sandlin
Robin Sandlin

Regarding credentials, since both are Microsoft, you can use windows authentication to pass credentials so long as you set the user with Execute privilege on SQL server. This way credentials will not be seen.