Thursday, August 20, 2009

Cannot create database diagrams Issue - Configuration Fix

--Run this Code in sql qurry window

EXEC sp_dbcmptlevel 'your Database Name', '90';
go
ALTER AUTHORIZATION ON DATABASE::[DatabaseName] TO "YourLoginName"
go
use [DatabaseName]
go
EXECUTE AS USER = N'dbo' REVERT
go

3 comments:

Unknown said...

Can u please explain whats describe by '90'

f0rgetme said...

EXEC sp_dbcmptlevel 'your Database Name', '90';
go

why 90?

Sanjeewa - Sri Lanka said...

90 is the version of SQL Server with which the database is to be made compatible. The value must be one of the following:

80 = SQL Server 2000

90 = SQL Server 2005

100 = SQL Server 2008