Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

I can not connect to a data base in a linked server Expand / Collapse
Author
Message
Posted Thursday, August 15, 2013 8:43 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, August 23, 2013 3:01 AM
Points: 1, Visits: 7
Hi i have two server on the main server and on the main server i have 2 databases.

I create a link in another server to the main server and the connections is ok.

but this connection works well in database "1" on the main server, but when try to get info for the database "2"
i see the follow error

Msg 7314, Level 16, State 1, Procedure vw_sales_actuals, Line 5
The OLE DB provider "SQLNCLI10" for linked server "MZMAS235\SQL1" does not contain the table ""EncoreCompanyM"."dbo"."vw_daily_sales"". The table either does not exist or the current user does not have permissions on that table.
Post #1484796
Posted Thursday, August 15, 2013 3:32 PM


Right there with Babe

Right there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with Babe

Group: General Forum Members
Last Login: Yesterday @ 7:54 AM
Points: 758, Visits: 633
Any particular reason you expect this to work in the first place?

From where I sit, I can only encourage you to check that
1) You have spelled the database name correctly.
2) The view is actually in the dbo schema.
3) You have spelt the name of the remote view correctly.
4) The view does actually exist in this database.
5) Your login is permitted to access the database in the linked server.
6) And your database user has permission to access the view.


Erland Sommarskog, SQL Server MVP, www.sommarskog.se
Post #1484931
Posted Friday, September 13, 2013 1:47 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Thursday, February 27, 2014 12:11 PM
Points: 19, Visits: 80
What are you using linked servers for? I would recommend against using them too heavily as they can create security holes. I would recommend looking into SSIS instead.

As for your error message I would check your spelling and authorizations in both the databases and the views.

If you want to switch and do this with SSIS it is just a simple pull transaction and is very simple to implement depending on what you are trying to accomplish.
Post #1494716
Posted Monday, September 16, 2013 3:58 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, April 21, 2014 10:58 AM
Points: 42, Visits: 395
Check the view that you are trying to open. It might be selecting from a table from different database.
Post #1495314
Posted Tuesday, September 17, 2013 5:52 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, September 20, 2013 4:30 PM
Points: 1, Visits: 9
your instance has a backslash .... wrap your server name in brackets like this

[MZMAS235\SQL1].[database].dbo.[table]

and make sure you have your perms set up right
Post #1495730
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse