I have a query which runs against a set of columns which changes quite often. I would like to run a SELECT * FROM XYZ, but exclude certain named columns, is this possible?
Otherwise you are asking for trouble sooner or later.
It is just the better style and saves you some problems like network traffic overhead or, when changing the DLL (Schema), always having to change your code as well.
Also: you know better what you are doing and you are actually thinking about which values you really need.
I didn't think there would be. I got round this by returning all the rows and hiding the ones I don't need in the datagrid (working in an ASP.NET project). It is just a small internal project and I am in control of the data so returning everything isn't a problem,
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.