Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

SQL Libary to export SQL query output to file

NotificationsYou must be signed in to change notification settings

nislambd/ExportSql

Repository files navigation

SQL CLR Libary to produce file output from SQL stored procedures.

  • Produce a CSV file output based on SQL Statement output. Example below produces as CSV file containing 1,2 with column headers 'A' & 'B', the file being UTF-8 encoded
Exec Sql2Csv @sql='SELECT  1 as A, 2 as B',@filePath='C:\Temp',@fileName='Test.csv',@includeHeader=1,@delimeter=',',@UseQuoteIdentifier=0,@overWriteExisting=1,@Encoding='UTF-8'--C# encoding names
  • Create/Append to a file
Exec WtiteToFile  @FileName='C:\Temp\Test.txt',   @Data='Something to write to the file',   @Append=1-- 1 = Append to file if exists, otherwise create a file, 0 = Create or overwrite file

About

SQL Libary to export SQL query output to file

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp