Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Q&A From Students    Comments List
Upload Images | @Reply | Bookmark | Link | Email | Next Unseen |
SQL Server Security
Benjamin Cassell 
     
18 hours ago
If you have an Access application setup on the user's computer, he/she could create a blank MS Access database and connect to the SQL Server database via the DSN or windows authentication, and then directly edit the data.  
How can we disable new connections like this via DSN or Windows authentication?  For example, with an Access DB I set the MS Access Database password and pass that via the frontend.
Alex Lewis  @Reply  
       
17 hours ago
If the user does not have login rights on SQL Server, even if they can see/access the DSN file, they can’t access any data in that particular database if they don’t have proper permissions, nor can they access the server itself.

To disable new connections, go to Security > Server Roles and for the role the user is in, make sure “Create Login” is not checked. If you don’t want the user to access the server at all, make sure the user’s Windows login is not listed under Logins.
Kevin Yip  @Reply  
      
16 hours ago
To prevent your users using DSNs, you may create your tables without using DSNs.  Sample VBA code is below.  I believe Richard has lessons on DSN-less connections as well:

    Dim db As Database, t As TableDef
    Set db = CurrentDb
    Set t = db.CreateTableDef("AccessTableName")
    t.Connect = "ODBC;DRIVER={ODBC Driver 17 for SQL Server};Server=SQLServerName;Database=DatabaseName;User Id=UserName;Password=pwd;"
    t.SourceTableName = "SQLServerTableName"
    db.TableDefs.Append t
    db.TableDefs.Refresh
    Application.RefreshDatabaseWindow

Then hide all the tables in the navigation pane.  You can hide tables by setting their TableDef.Attributes property to dbHiddenObject (or 1).  Unhide them by setting it to 0.  Even if your users select "Show Hidden Objects" or "Show System Objects" in the navigation pane options, the tables will still be hidden with this method, yet can still be accessed by your VBA code and queries.  E.g.:

    Dim db As Database
    Dim tdf As TableDef
    Set db = CurrentDb
    Set tdf = db.TableDefs("CustomersT")
    tdf.Attributes = dbHiddenObject     ' Or 0 to unhide
    db.TableDefs.Refresh

Queries cannot be hidden in above manner.  Hence, avoid saving queries in the navigation pane.  Use SQL statements in VBA modules and/or SQL Server views and stored procedures.

Ideally, the navigation pane should only show forms and reports.  All the table names, SQLs, connection strings, etc., should only be in the VBA modules, which your users can't see in an .accde file.

Disable the ribbon as well, or alter it.  The Northwind developer database shows a significantly altered ribbon, but the XML code to create it is quite daunting.

Consider a web interface instead of an Access client if you have the resources and time.  I went this route in my old job, and I never let my users use Access again.  Not only can a web interface hide everything, but also most people knows how to use a web browser, so you save on training.



Richard Rost  @Reply  
            
4 hours ago
For a local SQL Server, I use Windows authentication whenever possible. Give the right Windows group only the permissions it needs in SQL Server. That way there's no shared password to stash in the Access front end or the DSN.

The key distinction is that a DSN tells Access how to connect. It doesn't decide what the user can do. If someone's Windows account has permission to update a table, SQL Server will allow those same updates from another client. Removing the DSN, hiding linked tables, or taking away permission to create logins won't change that. If users should only make certain changes, don't grant direct write access to the tables. Give them permission to run specific stored procedures that enforce the allowed changes instead.
Kevin Yip  @Reply  
      
4 hours ago
Richard   That is all true, of course, but my response is that a bad user can cause havoc even if he can only do what he is allowed to do, if all he has is bad intention -- unless, of course, you allow him to do nothing.  The best deterrent is exposing as little info to him as possible, the same way we avoid giving our personal info to advertisers, big corps, etc.  This is like a modern-day version of dumpster-diving.  A bit of info here, a bit there, and a malicious user can piece together a good picture from which to do harm.  That was why I emphasized in my post the need hide DSNs, tables, ribbon, etc.  Basically, we are both correct, and the best thing is do everything we can.  But I think hiding info from the get go, in the UI, is a good start.
Richard Rost  @Reply  
            
4 hours ago
Oh, absolutely, you know me. I'm all about security and backups and keeping users out of tables and all that good stuff.

In fact, it's funny. I just watched a YouTube video last night that talked about a scam that was being played back in the early days of Wi-Fi. People would literally park in their cars outside stores and capture credit card numbers because, in the early days of Wi-Fi, the stupid stores would transmit that stuff over unencrypted Wi-Fi, and hackers would just intercept all that data.

That's why I'm always trying to think one step ahead of the user. Yes, I love financial scam videos. One of my favorite series is American Greed.
Kevin Yip  @Reply  
      
2 hours ago
Richard  

I remember in the 80s and early 90s, our credit card numbers used to be printed in full with no redaction whatsoever on our receipts.  Merchants often kept carbon copies of the receipts as well.

Here is a rare case of hiding info actually reducing safety.  I used to hide my router's SSID, but that is no longer safe.  Hackers see all SSIDs whether they are hidden or not.  And if mine is hidden, it stands out more and attracts attention, ironically.  ("Hey, a hidden SSID; what is this guy trying to hide?")

Junk mail envelopes have our names and addresses, so I often tear them out to prevent dumpster-divers from getting my personal info.  I don't get much junk mail anymore.

P.S.

The worst that could happen to our dumpsters these days is people leaving trash illegally, which is quite the irony -- from getting our trash to giving us trash.  Our city has strict recycling laws, and certain trash can't be put in trash bins in premises or road side.  Some residents or even people from outside may feel it a chore to recycle legally would leave big-screen TVs, fridges, and other bulky items at our dumpsters.  That is illegal, and we've actually taken some of these people to court.
Kevin Yip  @Reply  
      
2 hours ago
Richard  There is a 2012 article called "How Apple and Amazon Security Flaws Led to My Epic Hacking" which details how a teenaged hacker was able to steal someone's login credentials.  The article isn't online anymore.  I recall one of the hacker's tactics was getting last 4 characters of a user name from one website and the first 4 characters of the user name from another website.  We've seen this kind of verification method before: one website would ask you, are you Kevi*****, and another site would ask, are you *****nYip.  And voila, the complete user name is revealed in such a manner.  This showed that different websites have to actually work together and coordinate with each other to create the best security measures.
Richard Rost  @Reply  
            
38 minutes ago
I remember a story on the local news back when I lived in Buffalo, probably in the late '90s or early 2000s, about a group of kids who would go dumpster diving. They'd drive around collecting garbage bags containing paperwork and take them home to sort through.

Just like you said, back then businesses were still using those mechanical credit card imprint machines. They'd take your card, put it in the machine, and make an impression of it on a carbon copy receipt. A lot of businesses would enter those transactions into their computers and simply throw the paperwork away (or even just the carbons). These kids apparently racked up tens of thousands of dollars in fraudulent charges using information they found in the garbage.

They'd order merchandise and have it shipped to private mailbox locations. There wasn't nearly as much security surrounding those places back then. I remember having a private mailbox myself in the '90s, and I didn't even have to show ID to get one. There weren't security cameras everywhere like there are today, either. It was a very different world.

Speaking of security, I've had people complain over the years about the password system here on my website. I've always tried to make it easy for people to place an order without forcing them to go through an elaborate account setup process. If you just want to buy a database template or something, you can place your order without specifying a password. The system will generate one for you and email it to you.

Some people have complained about receiving their passwords in plain text via email, which is a legitimate security concern. But what really concerns me is when they tell me they use that same password on several other websites. You should absolutely never do that. Use a unique password for every single website you visit. Get yourself a password manager so you don't have to remember them all. If one website gets compromised, you don't want someone to suddenly have access to your email, your bank account, your Amazon account, and everything else.

That's one of the biggest security mistakes I see people making. You can have all the security measures in the world on your own website, but you can't control what happens on every other website your customers use. As you pointed out, sometimes it's the combination of information from several different sources that ultimately compromises someone's security.
Kevin Yip  @Reply  
      
11 minutes ago
Richard  I've seen many websites that let you place orders without entering passwords or even signing in.  You basically sign in as a guest and can do everything on the sites except looking up your past records.  Security measures for placing orders are still there, of course, such as payment method verifications.

There will always be people who think managing passwords is a chore and thus opening themselves up for risks.  That's why there is a push for password-less logins.  Using biometrics like fingerprints is one way, but iPhones don't use it, so a large portion of users won't have it.  Face IDs are also a thing, but not all devices have it either.  Passwords seem to be the only thing that all users are guaranteed to have available to them, so that's why I think passwords are not going away soon.  Users have to be proactively looking for alternatives to passwords, which many people won't do.  For instance, no sites I know force users to use two-factor or multi-factor authentication.  That's always an optional thing.  Nowadays, many sites enforce password rules (must be of certain length, have certain characters, etc.).  They need to start enforcing other security measures too.
Add a Reply Upload an Image
Next Unseen

 
 
What's This?

 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 12/2/2026 5:46:35 PM. PLT: 1s