English 中文(简体)
SSMS Grid——CRLF没有保存在复制/印刷中——任何更好的技术?
原标题:SSMS Results to Grid - CRLF not preserved in copy/paste - any better techniques?

当我得出这样的结果时:

SELECT  line 1
line 2
line 3 

SELECT  line 1  + CHAR(13) + CHAR(10) +  line 2  + CHAR(13) + CHAR(10) +  line 3 

沿电离层轨道,电网中的显示似乎以空间取代(我猜测,以便显示所有数据)。

The problem is that if I am code-generating a script, I cannot simply cut and paste this. I have to convert the code to open a curs或 and print the relevant columns so that I can copy and paste them from the text results.

Is there any simpler w或karound to preserve the CRLF in a copy/paste operation from the results grid?

The reason that the grid is helpful is that I am currently generating a number of scripts f或 the same object in different columns - a bcp out in one column, an xml f或mat file in another, a table create script in another, etc...

问题回答

警告: 无疑,这种特征仍然存在某种丑恶。

首先,我几个月来没有触及这一选择,最近又重新boot。

我对几栏有疑问,其中一栏载有客户反馈(有线索)。 当我把结果贴入谷歌文件/Excel时,反馈意见进入一线(正如我所希望的那样)。

然后,我把问询抄到另一个档案中。 此时,结果有条不紊!

因此,要么存在非常奇怪的 b,要么有一些秘密的捷径来改变目前窗口的设置。 如果有其他人看到这种行为,则对此感兴趣。





相关问题
Export tables from SQL Server to be imported to Oracle 10g

I m trying to export some tables from SQL Server 2005 and then create those tables and populate them in Oracle. I have about 10 tables, varying from 4 columns up to 25. I m not using any constraints/...

SQL server: Can NT accounts be mapped to SQL server accounts

In our database we have an SQL server account that has the correct roles to access some of the databases. We are now switching to windows authentication and I was wondering if we can create a NT user ...

SQL Server 2000, ADO 2.8, VB6

How to determine if a Transaction is active i.e. before issuing Begin Transaction I want to ensure that no previous transaction are open.. the platform is VB6, MS-SQL Server 2000 and ADO 2.8