
Dec 01, 2014
Today, I’d like to have a look at a new permission added to SQL Server 2014 that gives us a couple of interesting possibilities. So, hang in there while we have a quick squiz! Okay, so you know that it’s a reasonable thing that there are restrictions on databases so that people can’t just do a select on any ol’ table in any database, right? I shouldn’t be allowed, for example, to open up a finance database in my company and check out everyone’s salaries nor, presumably, should just about anyone else. Only those that are permitted to see information of that nature, confidential if you like, should have access. Excellent, we’re on the same page. Alright then, how about administrators? People who should have access to the SQL Server instance? This group of hard-working, no doubt extraordinarily attractive, people have work to do, backing up databases, defragmenting indexes, updating statistics, you know, the day-to-day stuff that has to get done? So, SQL Server 2014 has introduced CONNECT ANY DATABASE as a means to give database scope permissions without giving away any access to the objects within. This means that you can also grant access to all databases, but only for very specific tasks, like selecting all data, updating, deleting, etc. To illustrate what this means for you, I’ve got a local SQL instance with some databases. Firstly, I’ll create a user with a password using the UI:
With this, I can log into SQL Server but can’t access any objects. If I attempt to expand any of the databases that I can see I’ll receive an error:
Now, let’s give me some permissions:
Okay, with this, I can expand the databases now, but little else:


How do your Excel skills stack up?
Test NowNext up:
- Using the ‘Flash Fill’ feature to apply the desired formatting in Excel 2013
- Here’s how situational leaders spend more time watching sunsets than watching their people
- Save time with print presets in Adobe InDesign CS6
- Normalising your database: First Normal Form (1NF) – Part 1
- Change the Spell Check Language on all slides in PowerPoint using VBA (2007 onwards)
- Fruitcakes and lines in the sand
- The changing face of the Office 365 plans
- Two ways to put a sticky note on your desktop
- Excel formulas are not just for numbers
- Our interpersonal rights and responsibilities in the workplace
Previously
- Scheduling Rostered Days Off (RDO) in Project 2013
- Apply permissions on web parts in SharePoint
- Fabulous, fitting feedback
- Comparing and combining two lists using VLOOKUPs
- The Windows Server 2012 R2 Desktop Experience
- Removing the background from a picture in Microsoft Office
- Deliver successful organisational transformation
- Using SharePoint to create a ‘Team Based Master Calendar’
- Control your digital world from your mobile device
- Charts that aren’t charts