Hello,
I have created one application in visual studio 2005 and also created setup project of that application. now i want to install SQL Server Express edition with my application. so i have checked SQL Server Express 2005 in Setup Project Properities(Prerequisites...). now i want to change SQL Secirty Mode during setup. and i don't know how can we do this?
Any idia?
Thread moved to the appropriate forum|||hi,
SQLExpress setup boostrapper accept "parameters" to define the "final" settings of the installed instance at install time..
the parameter you are looking for is SECURITYMODE=SQL to enable standard SQL Server authenticated connections..
please have a look at http://msdn2.microsoft.com/en-us/library/ms144259.aspx for all supported parameters..
regards
|||Thank for sujession, but still it is not work.
i have entered following line for change SQL Server Security Mode Windows Auth. To SQL Auth.
Start /wait setup.exe /qb INSTANCENAME=SQLEXPRESS SECURITYMODE=SQL SAPWD=pwd12345
i have also tried this :
Start /wait setup.exe /qb UPGRADE=Client_Components INSTANCENAME=SQLEXPRESS SECURITYMODE=SQL SAPWD=pwd12345
but still it is not work. i got the same error when i run my program "Login fail for user sa. The user is not associated with a trusted SQL Server connection.
|||hi,
the exception is correctly related to not enabled SQL Server authenticated connections..
but the SECURITYMODE=SQL parameter is there for the case, and it "must" work as expected, as it really does since MSDE 2000 installer...
please pardon me, but are you sure you are later connecting to the correct SQLExpress instance?
regards
|||Yes i connecting to correct SQLExpress instance.
but don't warry, it's solve now bcoz i directly change parameter in package.xml(Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\SqlExpress\en) file.
No comments:
Post a Comment