Gah! The one thing that always gets me with working with so many different programming langauges (C#, T-SQL, Perl, VB, DOS) is that they each tend to refer to the same thing with a slightly different name. (If you read Perl: same foo, different bar). Today when stepping out of T-SQL land and into DOS, […]
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 […]
For those of us with a better background in C# programming than VB.Net, this website has a great page on the syntax differences.
Microsoft has today released SP1 for SQL Server 2005, which includes the Database Mirroring feature not present in the RTM release. In addition to updating your install with SP1, you should update your Books Online to the latest version: April 2006. A summary of the updates can be read in KB 916940. The complete list […]