How can I read type of all fields in joined query?
Is there a stored procedure method to use for this purpose?
Thanks
What language needs to know this? c#/VB? T-Sql?
If c#/vb, and you are loading things into a DataTable, the meta-data is available in the DataTable object. I suspect it's availabe in DataReaders, etc.
|||
Hi David,
I need T-SQL stored procedure that gave me type of all fields in a joined query.
Thanks for your help
|||create procedure get_stuff
as
begin
select col_1, col_2, col_3 from some_table
union
select col_a, col_b, col_c from some_other_table
end
That's the basic syntax. Check the manual for how to add parameters if needed.
No comments:
Post a Comment