An Object or column name is missing or empty - Advanced Installer Community
vasu0020
Posts: 22
Joined: Wed Aug 27, 2014 9:55 am

An Object or column name is missing or empty

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 -
Installer issue.png
Installer issue.png (12.75 KiB) Viewed 2224 times

Please help me on this.

Thanks in advance,
Srinu
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: An Object or column name is missing or empty

Hello Srinu,

I'm not sure why this happens. Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”