SQL Server 2005: Invalid Object Name Exception
This can be a problem with table owner and permissions.
for example the owner of the table might be dbo
, so the fully qualified name of the table would be dbo.TableXYZ
. The user you are connecting with may, for example SQLUser
, may not have access to the schema dbo
. This way only tables can be accessed likeSQLuser.TableXYZ
I would check the permissions you are using to connect to the database.
a source to share
Usage dbo.tableXYZ
simplifies what you want - tableXYZ
in the dbo
default schema . In another schema, there may be and tableXYZ
- then SQL Server may not know which one you need.
And that could definitely be a permissions issue. If you connect to this database in SQL SErver Mgmt Studio as this user, you can see that the tabletableXYZ
UPDATE: Does the DLL need a specific connection string that you might not have copied into the app.config file of your calling application? A DLL in .NET cannot really have its own mylibrary.dll.config - it won't be read by .NET by default.
a source to share