Tag: syndicated

  • An Overview of SQL Server AlwaysOn

    One of the changes coming in SQL Server v11 (not sure what the name will actually be), also known as “Denali”, is the addition of more High Availability/Disaster Recovery Options. When I first heard about this, I was excited, but the public CTP had limited support for it. I’m hoping the next CTP will substantially improve the feature and this makes it to the RTM.

    In the meantime, here’s a Channel 9 video from Justin Erickson that gives a short explanation of how this works and how it compares with the current Mirroring/Log Shipping/Clustering options.

    SQL Server AlwaysOn
  • SQL Server Truncate Table Permissions

    I saw a note recently where someone asked what permissions were needed for a user to execute TRUNCATE TABLE. In previous versions we needed ownership of the table or DBO level permissions. I had thought this was changed in SQL 2005 to require just the CONTROL permission.

    However when I checked the TRUNCATE Books Online page, I found this: The minimum permission required is ALTER on table_name. TRUNCATE TABLE permissions default to the table owner, members of the sysadmin fixed server role, and the db_owner and db_ddladmin fixed database roles, and are not transferable. However, you can incorporate the TRUNCATE TABLE statement within a module, such as a stored procedure, and grant appropriate permissions to the module using the EXECUTE AS clause.

    Alter permissions is the minimum?!?!!?

    That sounded fishy, so I did this. First I created a new user, with no permissions other than public. My user was, appropriately, MyTestUser.

    Next I created a table and granted permissions:

    CREATE TABLE TRLC 
    (
      est_no varchar(10) default ' '
    , right_no int default 0
    )
    GO
    
    INSERT TRLC SELECT 'Test', 1
    
    GRANT CONTROL ON TRLC TO MyTestUser

    I then opened up another Query Window and changed the connection to use MyTestUser. This user only had CONTROL permissions and nothing else. A quick test showed that this user could indeed clear out the table. This:

    TRUNCATE TABLE dbo.TRLC

    executed without error.

    I think Books Online needs an update, and I’ll submit a note to that team to clarify this.

  • Back from the MVP Summit

    Back home after three days in Seattle at the 2011 MVP Summit. As I wrote in an editorial this week, I can’t really talk about much, but the SQL Server development team at Microsoft is doing good work and I’m looking forward to the next few versions of  SQL Server.

     

    Relaxing at the MVP Summit

    The Summit was mostly in the Commons building at Microsoft this year. I’ve been to the building complex before, but never spent more than a few hours there. It’s a nice central location with a  variety of restaurants and shopping options for the employees. It’s a beautiful looking building, as you can see here.

     

    The Commons

    Inside it’s almost like a high end food court, where you can get all kinds of food (you have to pay), including a nice coffee shop where I managed to get coffee each morning. There were plenty of places to sit and chat, or relax, and even an inpromptu band that I saw one day.

    A good time, and valuable to me since I had the chance to meet and catch up with a number of people. As I mentioned in the editorial, we do get good dialogs with Microsoft and I think that MVPs do a great job advocating for their clients and the rest of the community.

  • 2011 MVP Summit – Day 1

    I’m glad I went running this morning. It’s been a long day, in and out of sessions and meetings all day on the Microsoft campus. I didn’t get to a lot of sessions, preferring to meet with people in the hallways and talk about SQL Server and database stuff. The most valuable time for me is always the time when I get to talk with people and network, building bonds and relationships that will help me in the future.

    Or maybe will help the other person. Networking is funny that way. You never know if you’re giving or receiving more from a person, but it all seems to result in a great synergy to me.

    Glad I was up early to run as I had to work a bit tonight and am about to head out to the evening reception.