简体   繁体   English

SQL Server Management Studio 18 - 生成脚本需要很长时间

[英]SQL Server Management Studio 18 - Taking long time to generate script

I have created a table in SQL Server 2014 (v12.0 - dedicated SQL pool) with no partitions using SQL Server Management Studio v16.0.我在 SQL Server 2014(v12.0 - 专用 SQL 池)中使用 SQL Server Management Studio v16.0 创建了一个没有分区的表。

Using an automated script, created right values hourly partitions for 4 months ie, 2880 partitions.使用自动化脚本,创建了 4 个月的每小时正确值分区,即 2880 个分区。

Now I would like to view the create script for it.现在我想查看它的创建脚本。

I tried right clicking on the table > script table as > Create to > New script.我尝试右键单击表 > 脚本表作为 > 创建到 > 新脚本。 But this approach is taking forever to return a script Instead of new script I tried saving it to file on local disk but even that is taking long time但是这种方法需要永远返回一个脚本而不是新脚本我尝试将它保存到本地磁盘上的文件但即使这样也需要很长时间

在此处输入图像描述

Why is this taking too long and what is a better approach to get the script faster?为什么这会花费太长时间,什么是更快获取脚本的更好方法?

PS: the DW version doesn't support partition functions and partition schemes so had to create partitions directly on table PS:DW 版本不支持分区函数和分区方案,因此必须直接在表上创建分区

*Here is some workaround *这里有一些解决方法

  1. By configuring a proxy server to allow access to crl.microsoft.com from your server通过配置代理服务器以允许从您的服务器访问 crl.microsoft.com
  2. By Configuring your firewall to return a failure status quickly when it blocks access to the crl.microsoft.com website通过将防火墙配置为在阻止访问 crl.microsoft.com 网站时快速返回失败状态
  3. And disabling the checks for certificate revocation.*并禁用证书吊销检查。*

From your browser, open the Inte.net Options dialog, go to the Advanced Page, and un-check the Check for publisher's certificate revocation checkbox.在您的浏览器中,打开 Inte.net 选项对话框, go 到高级页面,然后取消选中Check for publisher's certificate revocation复选框。

在此处输入图像描述

And generating the script to the clipboard will takes time.将脚本生成到剪贴板需要时间。 Instead try with New Query Editor Window而是尝试使用New Query Editor Window

在此处输入图像描述

And also by using object explorer, as shown below.并且还通过使用 object 资源管理器,如下所示。

在此处输入图像描述

在此处输入图像描述

For more information, please refer this link and tips有关更多信息,请参阅此链接提示

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM