简体   繁体   English

复制到Excel中时的SQL代码截断

[英]SQL Code Cut-off when copying into Excel

I have created a rather large SQL Query in Microsoft SQL Server Management Studio. 我在Microsoft SQL Server Management Studio中创建了一个相当大的SQL查询。 I got the query running great in the studio. 我的查询在工作室中运行得很好。 Now I want to bring that code into Excel to be able to access it and refresh as needed. 现在,我想将该代码带入Excel,以便能够访问它并根据需要刷新。 But when I copy the code it cuts off about 1/3 of the way as if I've hit a character limit. 但是,当我复制代码时,它切断了大约1/3的方式,好像我已经达到了字符限制。 Does anyone know a way around this? 有谁知道解决这个问题的方法吗?

SSMS has limits ..to overcome that,you can export to file like below SSMS有限制 。.为了克服这个问题,您可以导出到以下文件

在此处输入图片说明

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

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