Import .txt file to SQL Server 2008

前端 未结 1 1465
长情又很酷
长情又很酷 2020-12-18 09:26

I want to import the text file to SQL Server 2008. Obviously, the text file is like,

AA89ATOZ                MR        1  PMANUAL   >0    1    0    0    0         


        
相关标签:
1条回答
  • 2020-12-18 09:46

    You have several options for inserting data into SQL Server from a text file. Here are a couple that are widely used.

    The SQL Server Import and Export wizard is pretty straightforward, and the resulting Integration Services package can be saved and scheduled for execution:

    http://msdn.microsoft.com/en-us/library/ms141209.aspx

    Or you can use the T-SQL BULK INSERT command. This requires that the text file is either on the database server filesystem or available via UNC path:

    http://msdn.microsoft.com/en-us/library/ms188365.aspx

    0 讨论(0)
提交回复
热议问题