Author Archives: admin

ccnetVSTest Plugin available for download

I am currently working on a project with Microsoft Visual Studio Team Suite and Team Test containing many Unit Tests. We are using Cruise Control .NET for integration and quality tests of our applications.

Therefore I needed a ccnet plugin to run all tests of the relevant solutions after their build completes. So the deployment should not be started if any test fails. I did not find a plugin for this task, so I wrote one by myself, which I want to contribute to the community now. (see also http://confluence.public.thoughtworks.org/display/CCNETCOMM/Contributions

For installation and download instructions please go to this page:
http://www.kreuzhofer.de/wordpress/ccnetvstest-plugin/

NHibernate Mapping Attributes – HowTo

Ich habe letzte Woche eine Dokumentation / Anleitung über NHibernate Mapping Attributes verfasst, die unter folgender URL heruntergeladen werden kann:

NHibernate_Mapping_Attributes_HowTo.pdf – Stand 24.09.2007

Alle Beispiele (in C#) aus dem HowTo sind in einem Visual Studio 2005 Projekt zusammengefasst und können hier heruntergeladen werden:

NHibernateMappingAttributesTestPackage.zip

Dieses Testprojekt benötigt Visual Studio 2005 und SQL Server 2005 Express. Die benötigten NHibernate Bibliotheken werden nicht mitgeliefert und können direkt über die NHibernate Homepage bezogen werden.

SQL Server 200X batch um den Besitzer aller Tabellen in einer Datenbank zu ändern

Vor Kurzen habe ich ein SQL Skript gesucht, mit dem man auf einen Rutsch den Besitzer aller Tabellen einer Datenbank ändern kann.  Ein Guter Einstieg war dieser Artikel. Zusätzlich floss noch das Skript ein, dass ich hier, welches aber nur für Funktionen funktioniert hat. Das ist dabei herausgekommen:


declare @OldOwner varchar(100)
declare @NewOwner varchar(100)

set @OldOwner = ‘oldownername’
set @NewOwner = ‘newownername’

DECLARE @Name AS sysname
DECLARE [Objects] CURSOR FOR
SELECT ‘[' + table_schema + '].[' + table_name + ']‘ FROM information_schema.tables
WHERE Table_schema = @OldOwner
OPEN [Objects]
FETCH NEXT FROM [Objects] INTO @Name
WHILE @@FETCH_STATUS = 0
BEGIN
PRINT @Name
EXECUTE sp_ChangeObjectOwner @Name, @NewOwner
FETCH NEXT FROM [Objects] INTO @Name
END
CLOSE [Objects]
DEALLOCATE [Objects]

Switch to our mobile site