sql - Query column nullability of the resulting rowset of a tsql SELECT statement? -
consider following pseudo-tsql
table { field1 int, field2 int null } table b { field1 int, field3 int } create procedure sp1 select a.field1, a.field2, b.field3 inner join b on a.field1 = b.field1
is possible query procedure sp1 if resulting columns can null or not? seems dataset generator can pull off right?
can done in tsql? other means?
desired output:
field1 int, field2 int null, field3 int
or:
field1, field2 nullable, field3
(the first better)
thanks!
the dataset generator set fmtonly set option on. causes empty result sets returned client, instead of running queries. client data access technologies (e.g. ado.net, sql native client, etc) have ways of interrogating result set objects (even empty ones) , determining schema information them.
i can't think of way consume information t-sql though. way of grabbing result set stored procedure insert...exec, in case, have have table defined.
Comments
Post a Comment