T-SQL: Read Disk Files

xiaoxiao2021-03-06  66

Data Pouring or Recommended BCPIF EXISTS (Select * from Tempdb..sysObjects where id = Object_id (n'Tempdb .. # t ') Drop Table [#t]

Create Table #t (ID Int IDETENTITY (1, 1) Not Null, Remark Varchar (8001) NULL) INSERT INTO #TEXEC MASTER.DBO.XP_CMDSHELL 'TYPE E: /DATA.TXT' SELECT * FROM # t 剩 靠You own according to the "Data Type", "data format", etc. .....

转载请注明原文地址:https://www.9cbs.com/read-111492.html

New Post(0)