A
Andrea Raimondi
Hello peers!
I'm working on this application and I'm in need for some thoughtful advice
I have an SQLDataSource with params, select, etc.
One of my params is the table name, which can be programmatically set, this
is necessary because I may have a
simple table name or a union, hence I got to pick the correct one!
Unfortunately, I can't bind this parameter to a control, session or
whatever, my table names are embedded in my
source code as a constant array of strings.
Googling around I found out that SQLServer is being mislead by the parameter
position - I just want a table NAME there, not a
table variable!
Is there any way I can tell to the SQLDataSource that I need a table NAME
parameter?
Alternatively, how can I populate such a table variable so that it contains
the correct table contents?
Any hints?
TIA,
Andrew
I'm working on this application and I'm in need for some thoughtful advice
I have an SQLDataSource with params, select, etc.
One of my params is the table name, which can be programmatically set, this
is necessary because I may have a
simple table name or a union, hence I got to pick the correct one!
Unfortunately, I can't bind this parameter to a control, session or
whatever, my table names are embedded in my
source code as a constant array of strings.
Googling around I found out that SQLServer is being mislead by the parameter
position - I just want a table NAME there, not a
table variable!
Is there any way I can tell to the SQLDataSource that I need a table NAME
parameter?
Alternatively, how can I populate such a table variable so that it contains
the correct table contents?
Any hints?
TIA,
Andrew