Monday, August 23, 2010

DevReach 2010!

DevReach 2010, the premier developer conference on Microsoft technologies in Central and Eastern Europe will be taking place on October 18 and 19 in Sofia, Bulgaria.

This year, DevReach celebrates its fifth anniversary. To this end it has a new fifth track!
The event includes 60 unique sessions with more than 30 rock star speakers!

DevReach 2010 features a wide variery of topics such as:
  • Web development (HTML 5 in ASP.NET)
  • Windows Workflow
  • jQuery, Visual Studio 2010 and ASP.NET
  • SQL Server 2008 R2 development
  • Agile development methodologies
  • Silverlight 4.0
  • Sharepoint 2010 
  • Windows Phone 7 Series development
  • ... and much more!

The full list of topics can be found here!

Some highlights of the event include:
  • Exclusive keynote from Scott Stanfield (CEO Vertigo Software), Richard Campbell (.NET Rocks! and RunAs Radio) and Beth Massi (Senior Program Manager Visual Studio Team).
  • Early Bird 20% discount is available until 15 Sept. All Early Bird attendees enter drawing for XBOX 360.
  • All MVPs and INETA UG members receive special discount. Register through the MVP or UG lead.
  • The VIP pass gives you access to all video recordings and exclusive party with all speakers!

To see how #DevReach 2009 looked like you can visit this link.

Additionally, On September 9, 2010, DevReach 2010 Online, a FREE online event will be taking place with speakers from DevReach 2010.

You can join DevReach Facebook page and follow DevReach on Twitter and get the chance to win a free pass!

So if you have the chance to attend the event, you will sure be able to deepen your knowledge on the latest Microsoft technologies and learn many new ways of being more productive with less effort when it comes to software development!
Read more on this article...

Wednesday, August 4, 2010

Changing the Database Owner in a SQL Server Database

In SQL Server 2000, the dbo (Database Owner) is a special user that has all the necessary permissions to perform all activities in the database. This user exists in all SQL Server databases.

Usually, there are SQL Server or Windows logins mapped to the dbo user, thus "inheriting" the permissions of the database's dbo user and being able to perform all the activities in the database that the dbo user can perform.

In some cases, due to various changes a DBA might perform in SQL Server, you may discover that the dbo user is orphaned, meaning that there is not any login mapped to this user.

If you would like to change this, thus mapping a login to the dbo user you can make use of the "sp_changedbowner" system stored procedure.

The syntax as provided in the T-SQL reference library is the following:

sp_changedbowner [ @loginame= ] 'login'
[ , [ @map= ] remap_alias_flag ]

For example, if you want to make the SQL Server Login 'Tom' the owner of the database "TestDB" you can use the following T-SQL script:

USE TestDB
GO

EXEC sp_changedbowner 'Tom'
GO

Additionally, if you want to make a Windows Login, for example 'SampleDomain\TestUser' the owner of the database "TestDB" you can use the following T-SQL script:

USE TestDB
GO

EXEC sp_changedbowner 'SampleDomain\TestUser'
GO

Please also note that only members of the sysadmin fixed server role can execute the stored procedure sp_changedbowner.


In SQL Server 2005 or later, you can make use of the "ALTER AUTHORIZATION" command as sp_changedbowner will be removed in a future version of SQL Server.
Read more on this article...