Localdatabase table problem

Hi Experts
Since I re installed  Visual Studio 2013 Pro completely , I am having problem with any table that was created after re install. I can use that table in reportviewer but when I try to fill a datatable

    Dim daTempInvoice As New SqlDataAdapter(" select *   FROM TempInvoice  ", conexp)

        daTempInvoice.Fill(dSTempInvoice, "TempInvoice")
        dtTempInvoice = dSTempInvoice.Tables("TempInvoice")

I have this message

An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll

Additional information: Invalid object name 'TempInvoice'.
Screenshot-2014-11-27-08.21.05.png
b001Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Jacques Bourgeois (James Burger)Connect With a Mentor PresidentCommented:
Check to make sure that your database contains a table or a view named TempInvoice.

If it does, then make sure that your connection string points to the proper file.
0
All Courses

From novice to tech pro — start learning today.