G
Guest
Hi, I have trouble reading from sql database. this select works good
string SQL = "SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE
TABLE_TYPE = 'BASE TABLE' ORDER BY TABLE_NAME" and it finds att the tables
in my database.
But then when I try Select * from Employee I get an exception " Invalid
object name Employee." Anya idea why this is happening??
string SQL = "SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE
TABLE_TYPE = 'BASE TABLE' ORDER BY TABLE_NAME" and it finds att the tables
in my database.
But then when I try Select * from Employee I get an exception " Invalid
object name Employee." Anya idea why this is happening??