I know how to get the name of a field within a DataTable:
col.ColumnName
How do I get the database Table name (not the DataTable.TableName)?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The database table name is not returned in the
DataTable. You should know the table name from the select statement (if a proc, look at the proc code) you used to populate theDataTable