I'm trying to build an SQL statement dynamically with a few where conditions. For the Where conditions, I select values from tables which are also built dynamically. Now, I want to identify the datatype of each column of the dynamically built table and build the statement. The datatype is required because that would decide the requirement of the '' (single quotes for char & varchar types) in the statement. Any suggestions?
Thanks in advance.
Thanks in advance.