Brad
08-27-2002, 03:40 PM
Hi there,
do you know of a way that you can tell asp to get data from a field in a database table, only if that field exists ?
I'm creating some pages that look into an access db (defined as an odbc connection on the server in question) that holds links to some csv dumps of event logs. However, depending on the machine, the number of columns that are dumped varies. So if you create a page to view a file but, say, column 8 doesn't exist, the page crashes.
I was thinking os creating variables first, and referring to those in the sql string instead of the field names themselves but, of course, it will just crash earlier, when it tried to define the variable.
Can anyone help ???
Thanks, in advance,
Brad.
do you know of a way that you can tell asp to get data from a field in a database table, only if that field exists ?
I'm creating some pages that look into an access db (defined as an odbc connection on the server in question) that holds links to some csv dumps of event logs. However, depending on the machine, the number of columns that are dumped varies. So if you create a page to view a file but, say, column 8 doesn't exist, the page crashes.
I was thinking os creating variables first, and referring to those in the sql string instead of the field names themselves but, of course, it will just crash earlier, when it tried to define the variable.
Can anyone help ???
Thanks, in advance,
Brad.