SQL

SQL: Save (Not Permitted) Dialog Box

Posted by on March 21, 2009 at 1:41 pm

OMG : Error : The Save (Not Permitted) dialog box warns you that saving changes is not permitted because the changes you have made require the listed tables to be dropped and re-created. The following actions might require a table to be re-created: Adding a new column to the middle of the table Dropping a [...]

SQL 2008: SQL Server Management Studio 2008 Express failed to retrieve data

Posted by on January 16, 2009 at 9:39 pm

Microsoft SQL Server, Error: 916 Error: the server principal “” is not able to access the database “” under the current security context For those of you that connect to databases that are hosted by 3rd party providers, some of which are accustomed to leaving as many databases in auto-close mode as possible, you are [...]

SQL: change table ownership

Posted by on November 25, 2008 at 9:34 pm

sp_changeobjectowner (T-SQL) Changes the owner of an object in the current database. Syntax sp_changeobjectowner [@objname =] ‘object’, [@newowner =] ‘owner’ Arguments [@objname =] ‘object’ Is the name of an existing table, view, or stored procedure in the current database. object is nvarchar(517), with no default. object can be qualified with the existing object owner, in [...]

SQL: WMI error

Posted by on November 22, 2008 at 1:37 pm

Cannot connect to WMI provider. You do not have permission or the server is unreachable. Note that you can only manage SQL Server 2005 servers with SQL Server Configuration Manager. Invalid Namespace. ================= solution ============== mofcomp “C:\Program Files (x86)\Microsoft SQL Server\90\Shared\sqlmgmproviderxpsp2up.mof

SQL: Could not drop object

Posted by on August 11, 2008 at 11:35 am

Error: Could not drop object ‘dbo.tablename’ because it is referenced by a FOREIGN KEY constraint. (.Net SqlClient Data Provider) Type “sp_help tablename” in a query analyzer. In the last row of the result list, you will find a list of tables which has refered Mytable as primary key; Go to those tables and drop those [...]