diff --git a/Img/docImg/chmd.png b/Img/docImg/chmd.png new file mode 100644 index 0000000000000000000000000000000000000000..1429b03d32974aedecaf61625268b6d71258627c Binary files /dev/null and b/Img/docImg/chmd.png differ diff --git a/README.md b/README.md index be7df05474af1d5291461dc028686fa9be025b39..3ec376d2da0865592baccbd23c4034b9a4ab000d 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,9 @@ SmartSQL 是一款方便、快捷的数据库文档查询、导出工具!该 ### 🎉 五、文档截图 #### 1.CHM文档 -![CHM文档](https://gitee.com/izhaofu/SmartSQL/raw/master/Img/docImg/chm.png) +||| +|--|--| +|![CHM文档](https://gitee.com/izhaofu/SmartSQL/raw/master/Img/docImg/chm.png)|![CHM文档](https://gitee.com/izhaofu/SmartSQL/raw/master/Img/docImg/chmd.png)| #### 2.HTML文档 ||| diff --git a/SmartSQL/SmartSQL/Views/ConnectManage.xaml.cs b/SmartSQL/SmartSQL/Views/ConnectManage.xaml.cs index 49e67fb0f1c9c6e5945464344afdab3d6560f54f..21be7cdddd699663530d63fd61dd965d6e2d26a3 100644 --- a/SmartSQL/SmartSQL/Views/ConnectManage.xaml.cs +++ b/SmartSQL/SmartSQL/Views/ConnectManage.xaml.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; @@ -148,13 +148,15 @@ namespace SmartSQL.Views dbType = DbType.SqlServer; connectId = Convert.ToInt32(MsSql_HidId.Text); connectName = MsSql_TextConnectName.Text.Trim(); - serverAddress = MsSql_TextServerAddress.Text.Trim(); + serverAddress = MsSql_TextServerAddress.Text.Trim().Equals(".") + ? $"." + : $"{MsSql_TextServerAddress.Text.Trim()},{MsSql_TextServerPort.Value}"; serverPort = MsSql_TextServerPort.Value; authentication = MsSql_ComboAuthentication.SelectedValue == SQLServer ? 1 : 0; userName = MsSql_TextServerName.Text.Trim(); password = MsSql_TextServerPassword.Password.Trim(); defaultDataBase = (DataBase)MsSql_ComboDefaultDatabase.SelectedItem; - connectionString = $"server={serverAddress},{serverPort};" + + connectionString = $"server={serverAddress};" + $"database=master;uid={userName};" + $"pwd={password};"; }