• <i id='IAQu9'><tr id='IAQu9'><dt id='IAQu9'><q id='IAQu9'><span id='IAQu9'><b id='IAQu9'><form id='IAQu9'><ins id='IAQu9'></ins><ul id='IAQu9'></ul><sub id='IAQu9'></sub></form><legend id='IAQu9'></legend><bdo id='IAQu9'><pre id='IAQu9'><center id='IAQu9'></center></pre></bdo></b><th id='IAQu9'></th></span></q></dt></tr></i><div id='IAQu9'><tfoot id='IAQu9'></tfoot><dl id='IAQu9'><fieldset id='IAQu9'></fieldset></dl></div>

          <bdo id='IAQu9'></bdo><ul id='IAQu9'></ul>
      1. <tfoot id='IAQu9'></tfoot>

        <small id='IAQu9'></small><noframes id='IAQu9'>

        <legend id='IAQu9'><style id='IAQu9'><dir id='IAQu9'><q id='IAQu9'></q></dir></style></legend>

        客户端 PC 上的 LocalDB 部署

        时间:2023-07-17

            <bdo id='4IFsa'></bdo><ul id='4IFsa'></ul>
              <tfoot id='4IFsa'></tfoot>
              <i id='4IFsa'><tr id='4IFsa'><dt id='4IFsa'><q id='4IFsa'><span id='4IFsa'><b id='4IFsa'><form id='4IFsa'><ins id='4IFsa'></ins><ul id='4IFsa'></ul><sub id='4IFsa'></sub></form><legend id='4IFsa'></legend><bdo id='4IFsa'><pre id='4IFsa'><center id='4IFsa'></center></pre></bdo></b><th id='4IFsa'></th></span></q></dt></tr></i><div id='4IFsa'><tfoot id='4IFsa'></tfoot><dl id='4IFsa'><fieldset id='4IFsa'></fieldset></dl></div>
                <tbody id='4IFsa'></tbody>

              <small id='4IFsa'></small><noframes id='4IFsa'>

              <legend id='4IFsa'><style id='4IFsa'><dir id='4IFsa'><q id='4IFsa'></q></dir></style></legend>

                  本文介绍了客户端 PC 上的 LocalDB 部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我对这个新版本的 SQL Server Express 非常感兴趣.

                  I am very intrigued by this new version of SQL Server Express.

                  (对我而言)不清楚安装程序应该做什么来部署使用 LocalDB 的应用程序.

                  It's not clear (to me) what a setup program should do to deploy an application that use a LocalDB.

                  是否需要在客户端 PC 上安装 SQL Server Express 然后附加 MDF 文件?

                  Is it required to install SQL Server Express on the client PC and then attach the MDF file?

                  或者它只需要运行 LocalDB.msi 并且它像 SQL Server Compact 一样作为独立文件工作?

                  Or it's only required to run the LocalDB.msi and it works as a standalone file like SQL Server Compact?

                  推荐答案

                  使用LocalDB不需要安装SQL Server Express,LocalDB就是SQL Server Express,安装更简单.

                  You don't need to install SQL Server Express to use LocalDB, as LocalDB is SQL Server Express, just easier to install.

                  安装 LocalDB 后,您可以使用连接字符串的 AttachDbFileName 属性打开"一个 MDF 文件.请记住,同一文件在任何给定时间只能由单个 LocalDB 实例(单个 Windows 登录)打开,因此这不是数据共享功能.

                  Once LocalDB is installed you can use AttachDbFileName property of the connection string to "open" an MDF file. Keep in mind that the same file can only be opened by a single LocalDB instance (single Windows login) at any given time, so this is not a data-sharing feature.

                  更新:如果您的应用程序使用 .NET,请确保安装 .NET 4.0.2 或更新版本,如 此处提到.最初的 .NET 4 不理解 LocalDB 连接字符串,因为它早于 LocalDB 发布.

                  Update: If your application is using .NET, make sure to install .NET 4.0.2 or newer, as mentioned here. The original .NET 4 doesn't understand LocalDB connection strings, as it shipped long before LocalDB.

                  这篇关于客户端 PC 上的 LocalDB 部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:SQL Server IN 与 EXISTS 性能 下一篇:为 SQL Server 表自动生成 INSERT 语句的最佳方法是什么?

                  相关文章

                  <i id='IVtPu'><tr id='IVtPu'><dt id='IVtPu'><q id='IVtPu'><span id='IVtPu'><b id='IVtPu'><form id='IVtPu'><ins id='IVtPu'></ins><ul id='IVtPu'></ul><sub id='IVtPu'></sub></form><legend id='IVtPu'></legend><bdo id='IVtPu'><pre id='IVtPu'><center id='IVtPu'></center></pre></bdo></b><th id='IVtPu'></th></span></q></dt></tr></i><div id='IVtPu'><tfoot id='IVtPu'></tfoot><dl id='IVtPu'><fieldset id='IVtPu'></fieldset></dl></div>
                    • <bdo id='IVtPu'></bdo><ul id='IVtPu'></ul>

                      <tfoot id='IVtPu'></tfoot>

                      <small id='IVtPu'></small><noframes id='IVtPu'>

                    1. <legend id='IVtPu'><style id='IVtPu'><dir id='IVtPu'><q id='IVtPu'></q></dir></style></legend>