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.
バッチ ファイルの結果を SQL Server データベースに出力する方法はありますか? 結果を txt ファイルに出力できましたが、結果をデータベースに出力したいと思います。
結果の各行を印刷する必要があります。それ以外の場合は、txt ファイルの内容を最後にデータベースに挿入するだけです。
誰でもアイデアはありますか?
適切な区切り文字を使用してテキスト ファイルを CSV 形式で作成し、そのファイルを SQL サーバーのテーブルにインポートできます。
この記事に従ってください
http://blog.sqlauthority.com/2012/06/20/sql-server-importing-csv-file-into-database-sql-in-sixty-seconds-018-video/