<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>服务器执行SQL脚本帮助文件</title><link>https://communities.bentley.com/communities/other_communities/chinafirst/w/chinawiki/33584/sql</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>服务器执行SQL脚本帮助文件</title><link>https://communities.bentley.com/communities/other_communities/chinafirst/w/chinawiki/33584/sql</link><pubDate>Thu, 30 Mar 2017 11:16:21 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c3d82354-639a-4fde-b80f-07df1c1e1b5c</guid><dc:creator>Na Wang</dc:creator><comments>https://communities.bentley.com/communities/other_communities/chinafirst/w/chinawiki/33584/sql#comments</comments><description>Current Revision posted to 技术资料库 by Na Wang on 3/30/2017 11:16:21 AM&lt;br /&gt;
&lt;p style="margin:0in 0in 0pt;"&gt;服务器有SQL Server时，配置Substation数据库步骤：&lt;/p&gt;
&lt;p style="margin:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;ol&gt;
&lt;li style="color:#000000;font-weight:normal;"&gt;
&lt;p style="color:#000000;font-weight:normal;"&gt;在单机上安装完Substation软件后，将安装路径下Program Files\Bentley\Substation V8i\Substation\Promise文件夹下的SqlServerProject.sql文件拷到有SQL Server的服务器上；&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p style="color:#000000;font-family:&amp;#39;Times New Roman&amp;#39;,serif;font-size:10.5pt;font-weight:normal;"&gt;在C盘新建一文件夹，例如名称为11（如果在硬盘中已存在文件夹，则不需此操作）；&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p style="color:#000000;font-family:&amp;#39;Times New Roman&amp;#39;,serif;font-size:10.5pt;font-weight:normal;"&gt;执行服务器上，点击开始\所有程序\Microsoft SQL Server2008 R2\SQL ServerManagement Studio（查询分析器），点击File-&amp;gt;Open命令打开SqlServerProject.sql；&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p style="color:#000000;font-family:&amp;#39;Times New Roman&amp;#39;,serif;font-size:10.5pt;font-weight:normal;"&gt;按照下图所示将C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL \Data路径改为C:\11（硬盘中已存在文件夹的路径）；&lt;/p&gt;
&lt;p style="color:#000000;font-family:&amp;#39;Times New Roman&amp;#39;,serif;font-size:10.5pt;font-weight:normal;"&gt;&amp;nbsp;&amp;nbsp;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-04-10/5672.1.png"&gt;&lt;img src="/resized-image/__size/940x0/__key/communityserver-wikis-components-files/00-00-00-04-10/5672.1.png" alt=" " /&gt;&lt;/a&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-04-10/5672.1.png"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p style="color:#000000;font-family:&amp;#39;Times New Roman&amp;#39;,serif;font-size:10.5pt;font-weight:normal;"&gt;点击运行命令运行脚本&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p style="color:#000000;font-family:&amp;#39;Times New Roman&amp;#39;,serif;font-size:10.5pt;font-weight:normal;"&gt;右键点击Databases,执行Refresh命令，您可以看到系统已经生成名叫Substation的工程数据库&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p style="color:#000000;font-family:&amp;#39;Times New Roman&amp;#39;,serif;font-size:10.5pt;font-weight:normal;"&gt;在单机上，打开Substation软件，在不打开任何图纸的情况下，点击&lt;b&gt;工程管理器&lt;/b&gt;&lt;b&gt;\Substation设置&lt;/b&gt;对话框，点击&lt;b&gt;服务器名称&lt;/b&gt;行右边的&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-04-10/6758.2.png"&gt;&lt;img src="/resized-image/__size/940x0/__key/communityserver-wikis-components-files/00-00-00-04-10/6758.2.png" alt=" " /&gt;&lt;/a&gt;按钮选择服务器名称，在&lt;b&gt;数据库&lt;/b&gt;项中填写：Substation（您可以在C:\Program Files (x86)\Microsoft SQL Server\MSSQL10_50.BENTLEYECAD\MSSQL\DATA下查看数据库名称，若不为Substation，需更改为正确的数据库名称）,点击确定即可，这样就配置了Substation数据库，用户就可以绘制所需工程了。&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span style="font-family:Times New Roman;font-size:medium;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: Bentley Substation&lt;/div&gt;
</description></item></channel></rss>