Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Export to CSV

Author  Topic 

mapidea
Posting Yak Master

124 Posts

Posted - 2010-02-18 : 12:42:24
How can we export the sql query into CSV.

The sql query has a password column which has to be decrypted and then exported to CSV. The logic for decryption is in C#.

How can I go about exporting it to CSV?

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-02-18 : 12:45:29
you create a CLR function for decryption in C# and then use it

and use bcp or OPENROWSET for exporting to csv

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -