I am trying to pull information from a SQL database using C#. Here is the code that I am using:
However I keep getting an error stating that there is an "Invalid Object Name" and it refers to the table name 'ReportGlue' I was just wondering what could be causing this, because the tablename exists in the DB and the page will render if I comment out this line
Code:
Conn = new SqlConnection( @"Server=WEBSERVERW2K; UID=sa; PWD=39x9iVu1; DataBase=Dealer Quoter Dev;" );
Conn.Open();
SQL="SELECT * From ReportGlue";
Comm = new SqlCommand( SQL, Conn );
SQLReader = Comm.ExecuteReader();
Conn.Close();
However I keep getting an error stating that there is an "Invalid Object Name" and it refers to the table name 'ReportGlue' I was just wondering what could be causing this, because the tablename exists in the DB and the page will render if I comment out this line
Code:
SQLReader = Comm.ExecuteReader();