[英]how to get full text format store procedure (full code) from information_schema.routines or Sys.sql_modules
[英]How to get the CSV file generated from SQL store procedure can have text format?
我們有一個存儲過程,可根據查詢結果生成csv文件。 有時,當該字段獲取數字值時,該值中的0將被截斷,因為生成的文件為常規格式。 我通過在字段的前面加上0來嘗試以下查詢,以便excel會將其視為文本並且值不能被截斷...似乎不起作用。
select Cust_No as Cust#,'''+SERIAL_NO as Serial#
from tblCustDetails
有人可以幫忙嗎?
你有嘗試過嗎?
select Cust_No as Cust#,''''+SERIAL_NO as Serial# from tblCustDetails
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.