J
jwilson
I am a new user of Visual Basic Express / SQL Server 2005 Express
editions. I am trying to write sql statements in an application
database that reference tables in another database (same SQL server).
Based on the prior posts that I've read, it would seem this is pretty
straight forward by specifying a full database path prior to the table
name. However, when I execute this SQL through ADO, I get an error
message indicating an "invalid object name".
Eaxmple:
queryString = _
"SELECT * FROM
BelvedereMasterApplicationDB.dbo.LOAN_DATA WHERE LOAN_NUM_BLVD<=2;"
Dim command2 As New
System.Data.SqlClient.SqlCommand(queryString, m_ConnString)
Dim reader2 As System.Data.SqlClient.SqlDataReader =
command2.ExecuteReader()
Is there something that I'm missing? Thanks.
editions. I am trying to write sql statements in an application
database that reference tables in another database (same SQL server).
Based on the prior posts that I've read, it would seem this is pretty
straight forward by specifying a full database path prior to the table
name. However, when I execute this SQL through ADO, I get an error
message indicating an "invalid object name".
Eaxmple:
queryString = _
"SELECT * FROM
BelvedereMasterApplicationDB.dbo.LOAN_DATA WHERE LOAN_NUM_BLVD<=2;"
Dim command2 As New
System.Data.SqlClient.SqlCommand(queryString, m_ConnString)
Dim reader2 As System.Data.SqlClient.SqlDataReader =
command2.ExecuteReader()
Is there something that I'm missing? Thanks.