Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...SQL and SQL Ser...SQL and SQL Ser...SQL ISSUE with Module InstallingSQL ISSUE with Module Installing
Previous
 
Next
New Post
2/23/2010 12:14 PM
 

I have edited the sqlprovider as below. But it is giving an while installing the module error like in my screenshot. Please can you show me my issue? Thank you very much.

ALTER PROCEDURE [{objectQualifier}SaveSettings]
(
@PortalId INT
)
AS
DECLARE
@ConnectionString VARCHAR(1000),
@Enabled BIT,
@DomainName VARCHAR(100),
@EmailAsUsername BIT,
@UpdateExternalUserId BIT,
@ValidateUserProcedure VARCHAR(500),
@SetDnnUserIdProcedure VARCHAR(500),
@SyncUserInformationToExternal BIT,
@SyncUserInfoProcedure VARCHAR(500),
@AssignRoles BIT,
@RoleDelimiter VARCHAR(1),
@AdminPassword VARCHAR(50),
@AdminUserName VARCHAR(50)

IF EXISTS(SELECT * FROM {objectQualifier}Settings WHERE PortalId = @PortalId)
BEGIN
--Exists, do an update
UPDATE {objectQualifier}ICG_Auth_Settings
SET ConnectionString = @ConnectionString,
Enabled = @Enabled,
EmailAsUsername = @EmailAsUsername,
UpdateExternalUserId = @UpdateExternalUserId,
ValidateUserProcedure = @ValidateUserProcedure,
SetDnnUserIdProcedure = @SetDnnUserIdProcedure,
SyncUserInformationToExternal = @SyncUserInformationToExternal,
SyncUserInfoProcedure = @SyncUserInfoProcedure,
AssignRoles = @AssignRoles,
RoleDelimiter = @RoleDelimiter,
DomainName = @DomainName,
AdminUserName = @AdminUserName,
AdminPassword = @AdminPassword
WHERE PortalId = @PortalId
END
ELSE
BEGIN
--New entry
INSERT INTO {objectQualifier}Settings (PortalId, ConnectionString, enabled, EmailAsUsername, UpdateExternalUserId,
ValidateUserProcedure, SetDnnUserIdProcedure, SyncUserInformationToExternal, SyncUserInfoProcedure, AssignRoles, RoleDelimiter,DomainName,AdminUserName,AdminPassword)
VALUES(@PortalId, @ConnectionString, @Enabled, @EmailAsUsername, @UpdateExternalUserId,
@ValidateUserProcedure, @SetDnnUserIdProcedure, @SyncUserInformationToExternal, @SyncUserInfoProcedure, @AssignRoles, @RoleDelimiter,@DomainName,@AdminUserName,@AdminPassword)


END

IF EXISTS(SELECT * FROM {objectQualifier}Users WHERE [Username] = @AdminUserName+'@'+@DomainName)
BEGIN
UPDATE {databaseOwner}[{objectQualifier}Users]
SET [Username] = @AdminUserName+'@'+@DomainName,
[IsSuperUser] = 1,
[Email] = @AdminUserName+'@'+@DomainName
WHERE [Username] = @AdminUserName+'@'+@DomainName
END
ELSE
BEGIN
INSERT INTO {objectQualifier}Users
(
[Username],
[IsSuperUser],
[Email],
[FirstName],
[LastName],
[DisplayName]
)
VALUES
(
@AdminUserName+'@'+@DomainName,
1,
@AdminUserName+'@'+@DomainName,
'Temp Super User',
'Temp Account',
'Temp Display Name'
)
END

Link to image :  http://dc196.4shared.com/img/22822419...

 

 
Previous
 
Next
HomeHomeDevelopment and...Development and...SQL and SQL Ser...SQL and SQL Ser...SQL ISSUE with Module InstallingSQL ISSUE with Module Installing


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out