-- Collection of code snippets by Arne Vajhøj 
-- posted to eksperten.dk, usenet and other places (2002-now) 
DECLARE @ApplicationId UNIQUEIDENTIFIER
EXEC aspnetdb.dbo.aspnet_Applications_CreateApplication 'SecureFun', @ApplicationId out
DECLARE @UserId UNIQUEIDENTIFIER
EXEC aspnetdb.dbo.aspnet_Membership_CreateUser 'SecureFun', 'supermand', 'hemmeligt', 'blabla', 'arne@vajhoej.dk', NULL, NULL, 1, '20071223', '20071223', NULL, 0, @UserId out
DECLARE @PathId UNIQUEIDENTIFIER
EXEC aspnetdb.dbo.aspnet_Paths_CreatePath @ApplicationId, '/', @PathId out
EXEC aspnetdb.dbo.aspnet_Membership_UnlockUser 'SecureFun', 'supermand'
GO
