While using SqlDataReader, it’s necessary to know the types of the fields returned in order to call appropriate GetXXX method. So is it possible to output this info in Sql Management Studio?
While using SqlDataReader , it’s necessary to know the types of the fields returned
Share
SELECT ..INTO.. and examine the definition of the new tabke
The WHERE 1 = 0 bit will by shortcircuited here so it should be quick. Of course, you’ll need to add your own conditions.
If you have a single table in the FROM:
Which method depends on complexity. For example, a calculation on decimal column changes precision and scale. Or varchar processing can change length or char to varchar.
You’d be running the SQL anyway to make sure it’s OK before calling it the client code…