Added SQL Server Express user instance file and updated installation procedure to include SQL Server Express user instance support.
[TFS Changeset #65148]
This commit is contained in:
BIN
umbraco/presentation/App_Data/umbraco.mdf
Normal file
BIN
umbraco/presentation/App_Data/umbraco.mdf
Normal file
Binary file not shown.
BIN
umbraco/presentation/App_Data/umbraco_log.LDF
Normal file
BIN
umbraco/presentation/App_Data/umbraco_log.LDF
Normal file
Binary file not shown.
@@ -26,6 +26,7 @@
|
||||
AutoPostBack="True" onselectedindexchanged="DatabaseType_SelectedIndexChanged">
|
||||
<asp:ListItem Value="SqlServer" Text="Microsoft SQL Server" Selected="True" />
|
||||
<asp:ListItem Value="MySql" Text="MySQL" />
|
||||
<asp:ListItem Value="SqlServerE" Text="Embedded database (Microsoft SQL Server Express user instance)" />
|
||||
<asp:ListItem Value="VistaDB,VistaDB For Umbraco" Text="Embedded database (VistaDB)" />
|
||||
<asp:ListItem Value="" Text="Custom connection" />
|
||||
</asp:DropDownList>
|
||||
|
||||
@@ -43,7 +43,8 @@ namespace umbraco.presentation.install.steps
|
||||
/// </summary>
|
||||
protected bool IsEmbeddedDatabase
|
||||
{
|
||||
get { return DatabaseType.SelectedItem.Text.Contains("VistaDB"); }
|
||||
get { return (DatabaseType.SelectedItem.Text.Contains("VistaDB") ||
|
||||
(DatabaseType.SelectedValue=="SqlServerE")); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -224,8 +225,12 @@ namespace umbraco.presentation.install.steps
|
||||
connectionStringBuilder["user id"] = DatabaseUsername.Text;
|
||||
connectionStringBuilder["password"] = DatabasePassword.Text;
|
||||
}
|
||||
else if (DatabaseType.SelectedValue == ("SqlServerE"))
|
||||
{
|
||||
connectionStringBuilder.ConnectionString = @"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\umbraco.mdf;Integrated Security=True;User Instance=True;Database=umbraco";
|
||||
}
|
||||
|
||||
if (!String.IsNullOrEmpty(DatabaseType.SelectedValue) && DatabaseType.SelectedValue!="SqlServer")
|
||||
if (!String.IsNullOrEmpty(DatabaseType.SelectedValue) && !DatabaseType.SelectedValue.Contains("SqlServer"))
|
||||
connectionStringBuilder["datalayer"] = DatabaseType.SelectedValue;
|
||||
|
||||
return connectionStringBuilder;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:2.0.50727.3053
|
||||
// Runtime Version:2.0.50727.4927
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
|
||||
Reference in New Issue
Block a user