I’ve got a SQL Server problem and I’m hoping someone can help me figure out how best to secure it.
I’ve got a SQL Server (2005 Enterprise) that is the backend for a Manufacturing system. The manufacturing system connects to the database via ODBC (runs on Windows 2003 Enterprise R2 w/SP2). Client machines connect to that manufacturing system via a manufacturing client, but have their own ODBC connection to the database for reports.
We have written a lot of reports in Microsoft Access 2003 which connect to the database via an ODBC connection (set up as a System DSN). In Access, we’re using linked tables to do the reports.
Here is the problem. Right now, anyone can use Microsoft Access, Visual Studio, or some other database aware program to use the ODBC link to attach to the database and read/write to it. We’d like to prevent using that ODBC (System DSN) connection unless it’s that specific Access application for reporting.
I’m searching for ideas on how to secure the database to prevent unauthorized applications (or users) from using that DSN to connect to the database.
My best guess was to enable SQL security and create a login for Access. Then I thought I could use VBA to temporarily create a DSN on startup and destroy it upon shutting Access down. The problem is, I’m not exactly sure that’d work all that well if Access were not shutdown properly (would the DSN remain?). Is there a better way?
I’d sure appreciate any insight someone could provide.
Thanks!
I’ve got a SQL Server (2005 Enterprise) that is the backend for a Manufacturing system. The manufacturing system connects to the database via ODBC (runs on Windows 2003 Enterprise R2 w/SP2). Client machines connect to that manufacturing system via a manufacturing client, but have their own ODBC connection to the database for reports.
We have written a lot of reports in Microsoft Access 2003 which connect to the database via an ODBC connection (set up as a System DSN). In Access, we’re using linked tables to do the reports.
Here is the problem. Right now, anyone can use Microsoft Access, Visual Studio, or some other database aware program to use the ODBC link to attach to the database and read/write to it. We’d like to prevent using that ODBC (System DSN) connection unless it’s that specific Access application for reporting.
I’m searching for ideas on how to secure the database to prevent unauthorized applications (or users) from using that DSN to connect to the database.
My best guess was to enable SQL security and create a login for Access. Then I thought I could use VBA to temporarily create a DSN on startup and destroy it upon shutting Access down. The problem is, I’m not exactly sure that’d work all that well if Access were not shutdown properly (would the DSN remain?). Is there a better way?
I’d sure appreciate any insight someone could provide.
Thanks!