Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以使用 sqlcmd 读取 txt 文件,以避免需要手动键入每个单元格?
我得到了一个 txt 文件,其中每一行都在一行上,每一列用逗号分隔。(一个 .cvs 文件)
我一直在尝试查找一些命令,但......没有运气!
任何和所有的帮助将不胜感激!
根据要求:http: //blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into -sql-服务器/
您可以使用 Management Studio 将文件中的数据导入表中。