Sorry, the snippet was wrong formatted.

pobox77 wrote:
> 
> Hi,
> 
> I would like to create a SqlDatabase either with Username+Password or with
> Windows authentification. I am using a radio button in a customize dialog.
> If not Windows auth. is selected, the user can enter a username and a
> password.
> How should I set the SqlDatabase component to do it? I mean, if Windows
> auth. the User="SQLUser" should not be used.
> 
> Snippet:
> 
>       <Component Id="CreateDB" DiskId="1"
> Guid="????????-????-????-????-????????????">
>         <sql:SqlDatabase Id="MyDb" Server="[SQLSERVER]"
> Database="[SQLDBNAME]" CreateOnInstall="yes" ConfirmOverwrite="yes"
> DropOnReinstall="no" DropOnUninstall="no" User="SQLUser">
>           <sql:SqlScript Id="CreateTablesSqlScript" ContinueOnError="no"
> ExecuteOnInstall="yes" ExecuteOnReinstall="no" Sequence="002"
> BinaryKey="CreateTablesBin" User="SQLUser" />
>         </sql:SqlDatabase>
>       </Component>
> 
>     <Feature Id="SqlDb" Title="Create Database" Description="Installing
> database. Please ensure that the SQL Server is running on the target
> server." AllowAdvertise="yes" TypicalDefault="install" Display="expand"
> Level="1">
>       <ComponentRef Id="CreateDB" />
>     </Feature>
> 
> 
> Thanks in advance,
> Peter
> 

-- 
View this message in context: 
http://www.nabble.com/Creating-SqlDatabase-with-without-Windows-Authentification-tf3394305.html#a9449474
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to