Dear Advanced Installer Team,
My requirement is to create SQL server login by using both windows and sql authentication. Below is my sql query to create sql login in both the modes -
USE [Master];
GO
DECLARE @LN VARCHAR(20)
SET @LN = 'Authentication'
IF (@LN = 'radConsql')
BEGIN
IF NOT EXISTS (SELECT [name] FROM sys.Server_Principals WHERE [type] = N'S' AND [name] = 'LOGINNAME')
BEGIN
CREATE LOGIN [LOGINNAME] WITH PASSWORD = 'PASSWORDVALUE', CHECK_POLICY = OFF
END;
END;
IF (@LN = 'radWindowsCon')
BEGIN
IF NOT EXISTS (SELECT [name] FROM sys.Server_Principals WHERE [type] = N'U' AND [name] = 'USERNAME')
BEGIN
CREATE LOGIN [USERNAME] from windows
END;
END;
GO
i am replacing sql script with sql replace in advanced installer.
installer is working fine in sql authentication mode but it is throwing below exception -
Please help me on this.
Thanks in advance,
Srinu
FOLLOW US
Get the latest news in Application Packaging