warning message about ODBC - Advanced Installer Community
meysam
Posts: 31
Joined: Fri Feb 27, 2015 11:23 am

warning message about ODBC

what is this message ? this message When appear that setup start set sql server connection and execute scripts.
how control this msg? i want not show this msg.
for first installation not show this msg but after first installation this msg showed.
Attachments
Capture.PNG
Capture.PNG (42.28 KiB) Viewed 2600 times
1.PNG
1.PNG (15.83 KiB) Viewed 2600 times
meysam
Posts: 31
Joined: Fri Feb 27, 2015 11:23 am

Re: warning message about ODBC

solved

by this way:

find which section or script in server configuration Causes warning msg :

1- change width and height control action text in progress dialog
2- change subscribed event to
Display installation action details (enhanced ui only) Text
3- save and bulid project
4- run again for show warning msg and read details error in action text

------------------------------------------
finally this error Causes by one script that create user for my database :
1- google it (t sql check if user exist)
2- find this aticle:
http://stackoverflow.com/questions/672 ... dy-exists

my script :

Code: Select all

CREATE LOGIN [VNLite] WITH PASSWORD=N'********', DEFAULT_DATABASE=[master], CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF
    EXEC master..sp_addsrvrolemember @loginame = N'VNLite', @rolename = N'sysadmin' 
point: for first installation this msg not show because this TSQL executed successfully username in database but for Next time show this msg.


solution: change TSQL and use IF statement

Code: Select all

If not Exists (SELECT name FROM sys.server_principals WHERE name = 'VNLite')
BEGIN
    CREATE LOGIN [VNLite] WITH PASSWORD=N'**********', DEFAULT_DATABASE=[master], CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF
    EXEC master..sp_addsrvrolemember @loginame = N'VNLite', @rolename = N'sysadmin' 
END


best regards
meysam
Last edited by meysam on Tue Mar 24, 2015 10:03 am, edited 2 times in total.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: warning message about ODBC

Hi Meysam,

I'm glad you solved the problem. Thank you for sharing the solution with us, I'm sure it will help other users in the future.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”