I imagine that this isn't too difficult, but I've never actually written to a CSV file before.
I have experience with PL/SQL for Oracle, but not for MS SQL Server.
All I need to do is select several rows from several different tables, with a few conditions, then write that info. to a CSV file. Can somebody help with this, please!!!?
Example table = class_type
class_type_num class_type_desc
1 Broker
2 Shareholder
3 Other
Select class_type_desc from class_type where class_type_num = 1 or class_type_num = 2
Output file would be:
Broker, Shareholder
I have experience with PL/SQL for Oracle, but not for MS SQL Server.
All I need to do is select several rows from several different tables, with a few conditions, then write that info. to a CSV file. Can somebody help with this, please!!!?
Example table = class_type
class_type_num class_type_desc
1 Broker
2 Shareholder
3 Other
Select class_type_desc from class_type where class_type_num = 1 or class_type_num = 2
Output file would be:
Broker, Shareholder