確保您的機器密鑰在web.config中匹配。有一個名爲InstallCommon.SQL的文件,它將創建對象(如果有的話)。試用完整版本的SQL2008並使用數據傳輸嚮導可能是最容易的。否則,一種方法是將其用作數據的模板:
--ApplicationName LoweredApplicationName ApplicationId Description
INSERT INTO [aspnet_Applications]
([ApplicationName]
,[LoweredApplicationName]
,[ApplicationId]
,[Description])
VALUES
('/app/', '/app/', '0000...', NULL)
GO
--ApplicationId', 'UserId', 'UserName', 'LoweredUserName', 'MobileAlias', 'IsAnonymous', 'LastActivityDate
INSERT INTO [aspnet_Users]
([ApplicationId]
,[UserId]
,[UserName]
,[LoweredUserName]
,[MobileAlias]
,[IsAnonymous]
,[LastActivityDate])
VALUES
('0000...', '0000...', 'DarthVader', 'darthvader', NULL, 0, '2009-12-31 20:30:10.222')
GO
--ApplicationId RoleId RoleName LoweredRoleName Description
INSERT INTO [aspnet_Roles]
([ApplicationId]
,[RoleId]
,[RoleName]
,[LoweredRoleName]
,[Description])
VALUES
('0000...', '0000...', 'Admin', 'admin', NULL)
GO
--ApplicationId, UserId, Password, PasswordFormat, PasswordSalt, MobilePIN, Email, LoweredEmail, PasswordQuestion, PasswordAnswer, IsApproved, IsLockedOut, CreateDate, LastLoginDate, LastPasswordChangedDate, LastLockoutDate, FailedPasswordAttemptCount, FailedPasswordAttemptWindowStart, FailedPasswordAnswerAttemptCount, FailedPasswordAnswerAttemptWindowStart, Comment
INSERT INTO [aspnet_Membership]
([ApplicationId]
,[UserId]
,[Password]
,[PasswordFormat]
,[PasswordSalt]
,[MobilePIN]
,[Email]
,[LoweredEmail]
,[PasswordQuestion]
,[PasswordAnswer]
,[IsApproved]
,[IsLockedOut]
,[CreateDate]
,[LastLoginDate]
,[LastPasswordChangedDate]
,[LastLockoutDate]
,[FailedPasswordAttemptCount]
,[FailedPasswordAttemptWindowStart]
,[FailedPasswordAnswerAttemptCount]
,[FailedPasswordAnswerAttemptWindowStart]
,[Comment])
VALUES
(
'0000...',
'0000...',
'ja;difuaoihfklahjfj=',
1,
'lakijf;ladkljfg;lasd=',
NULL,
'[email protected]',
'[email protected]',
NULL,
NULL,
1,
0,
'2009-12-31 20:30:10.222',
'2009-12-31 20:30:10.222',
'2009-12-31 20:30:10.222',
'2009-12-31 20:30:10.222',
0,
'2009-12-31 20:30:10.222',
0,
'2009-12-31 20:30:10.222',
NULL
)
GO
--UserId RoleId
INSERT INTO [dbo].[aspnet_UsersInRoles]
([UserId]
,[RoleId])
VALUES
('0000...', '0000...')
GO