I read a lot of blogs everyday. Not every article, but I like to at least skim the headlines and read the ones that really interest me. There’s a lot of interesting things to be learnt by reading outside your immediate field of work too. Anyway, Its hard to check up on ~200 blogs every […]
I just came across a neat list of SQL Server 2005 resources from the TecEd 2006 shows. You can see the list here.
To move an object from one schema to another, you can use the TRANSFER the object to its new schema using theALTER SCHEMA command. ALTER SCHEMA destination schema TRANSFER source object For example, if you wanted to move the dbo.EOYReport view to the Report schema: ALTER SCHEMA Reports TRANSFER dbo.EOYReport
If you were a DBA of SQL Server 2000, you’d be familiar with the frustration that encouraging developers to use SQL Profiler as part of performance testing meant you needed to grant the sysadmin privilages. Security best practises mean you should only grant users the minimum permissions needed, and certainly not everyone should be trusted […]
If you want to drop all the connections to a database immediately, you can use the following commands: USE master GO ALTER DATABASE database name SET OFFLINE WITH ROLLBACK IMMEDIATE ALTER DATABASE database name SET ONLINE Alternatively you can kill all the processes using a database with this code: USE master go DECLARE @dbname sysname […]
If you want to drop all the connections on you sql server that are accessing a particular database, here’s some code: USE master go DECLARE @dbname sysname SET @dbname = ‘name of database you want to drop connections from‘ DECLARE @spid int SELECT @spid = min(spid) from master.dbo.sysprocesses where dbid = db_id(@dbname) WHILE @spid IS […]
As part of Tech Ed 2006, Microsoft has a number of live webcasts on SQL Server 2005, including Encryption, Reporting Services, Analysis Services, and Integration Services. Check out the full list of live webcasts. If you’ve missed earlier webcasts, some of them are appearing as On-Demand Webcasts that you can watch at your leisure. You […]