- Hands-On Data Science with SQL Server 2017
- Marek Chmel Vladimír Mu?n?
- 252字
- 2021-06-10 19:14:01
Importing flat files
Many information systems can provide us with flat files as a sort of exported data. We can import those flat files directly into SQL Server via Management Studio, where you can select the Import Flat File option from the database tasks. Then, you can choose to import the .csv or .txt files, which will be imported into a new table. While you're choosing the table name, you can also select, via the drop-down list, a schema for the table.
Flat files are also generated by many systems as log files, which can then be further analyzed in SQL Server as one of the possible tools. In such cases, the import would be more complex, since you would not aim for one file, but more for a folder structure containing hundreds or thousands of files, where the required data is stored.
Importing the content of a single flat file can be achieved via SQL Server Management Studio, which has a specific task to work with flat files:

Once you open the dialog, you need to find the flat file on the disk and choose how the new table should be named in your database. This table will be created based on the structure of your flat file. In the next dialog window, you can configure the required data types for all columns from the imported file.
This wizard will automatically determine the field separator and will analyze the data for the suggested data type for you:

- Practical Data Analysis
- Spark編程基礎(chǔ)(Scala版)
- 機(jī)器學(xué)習(xí)與大數(shù)據(jù)技術(shù)
- Windows 8應(yīng)用開發(fā)實(shí)戰(zhàn)
- 工業(yè)機(jī)器人操作與編程
- PVCBOT機(jī)器人控制技術(shù)入門
- 單片機(jī)C語(yǔ)言應(yīng)用100例
- Mastering GitLab 12
- 工業(yè)自動(dòng)化技術(shù)實(shí)訓(xùn)指導(dǎo)
- 網(wǎng)絡(luò)存儲(chǔ)·數(shù)據(jù)備份與還原
- 所羅門的密碼
- Web璀璨:Silverlight應(yīng)用技術(shù)完全指南
- 電腦故障排除與維護(hù)終極技巧金典
- Flash CS5二維動(dòng)畫設(shè)計(jì)與制作
- Mastering SQL Server 2014 Data Mining