Just out, a whitepaper on achieving High Availability in SQL 2008
http://msdn.microsoft.com/en-us/library/ee523927.aspx
Looking at the feature table, i'm glad I'm running Enterprise edition!
Wednesday, 30 September 2009
Tuesday, 29 September 2009
TSQL : Comma Separated List of Columns
Like the title says, how to generate a comma separated list of columns for a given table...
DECLARE @SchemaName VARCHAR(100) DECLARE @TableName VARCHAR(100) DECLARE @CommaSeparatedColumnList VARCHAR(MAX) SET @SchemaName = 'myschema' SET @TableName = 'mytable' SET @CommaSeparatedColumnList = '' SELECT @CommaSeparatedColumnList = COALESCE(@CommaSeparatedColumnList + '[' + COLUMN_NAME + '],','') FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = @SchemaName AND TABLE_NAME = @TableName ORDER BY ORDINAL_POSITION SET @CommaSeparatedColumnList = LEFT(@CommaSeparatedColumnList,LEN(@CommaSeparatedColumnList)-1) SELECT @CommaSeparatedColumnList
Monday, 28 September 2009
2 ways to audit all logins
Friday, 25 September 2009
MCITP : Database Administrator 2008
Following passing my MCTS on Monday , I passed MCITP Database Administrator 2008 this morning.
Contemplating the development track (70-433 & 70-451) next month to bring me up to date.
r
Contemplating the development track (70-433 & 70-451) next month to bring me up to date.
r
Thursday, 24 September 2009
Bookmark : Management
A colleague found this today. An excellent post nicely summing up managing technical teams...
Opinion : The unspoken truth about managing geeks
Opinion : The unspoken truth about managing geeks
Tuesday, 22 September 2009
MCTS : Database Administration 2008
Just a quick note to say I passed 70-432 : Microsoft SQL Server 2008, Implementation and Maintenance yesterday.
I used the MCTS Self-Paced Training Kit (Exam 70-432) if you want to do the same.
r
I used the MCTS Self-Paced Training Kit (Exam 70-432) if you want to do the same.
r
Sunday, 20 September 2009
Stored Procedures : Execute as owner
Using EXECUTE AS OWNER in a stored procedure definition allows you to raise permissions for the execution of the procedure.
This enables a application login with low privileges to perform owner (dbo) privileged functionality using just the execute permissions on the sproc.
Clay Lenhart : SQL Server Security with EXECUTE AS OWNER
This enables a application login with low privileges to perform owner (dbo) privileged functionality using just the execute permissions on the sproc.
CREATE PROCEDURE dbo.EmptyMyTable
WITH EXECUTE AS OWNER
AS
BEGIN
TRUNCATE dbo.TableA
END
Clay Lenhart : SQL Server Security with EXECUTE AS OWNER
Subscribe to:
Posts (Atom)