Showing posts with label map. Show all posts
Showing posts with label map. Show all posts

Wednesday, March 21, 2012

servers Issues

I have a NAMES server and APPLICATION sever. I created a linked server
reference on APPPLICATION to point to NAMES. I did map the APPLICATION
user/password to that on NAMES
Issue : when I click on TABLES in the link server tree all I can see is
tables in the master database. The user/password I pass to the linked server
has rights to multiple databases on NAMES. The user in NAMES default databas
e
is master, but I would think I could see all db on NAMES that the user I
passed had access to.
The .NET query designer just tells me that the login failed when I try to
save the SP or on some occasions that it failed to start a distributed
transaction b/c login failed.
Ive tried reading up on linked servers on MS website and there seem to be so
many retractions and configurations that need to be made Im starting to get
. I thought this was going to be easy or am i misunderstanding. Also
the MSDN page for linked servers seems to imply that you can only do select
and updates from a linked server and not inserts. Is this true? Our NAMES
database is used by multiple applications and multiple databases. Because of
performance I realize that NAMES database would work better on its own serve
r.
JP
.NET Software DevelperJP,
Change the default database for the linkedserver login on the linked server
to database on which you'd like to see the tables listed. You can use EM or
sp_defaultdb.
HTH
Jerry
"JP" <JP@.discussions.microsoft.com> wrote in message
news:22FE02D9-8576-43E5-9EA7-AEB55C5E5704@.microsoft.com...
>I have a NAMES server and APPLICATION sever. I created a linked server
> reference on APPPLICATION to point to NAMES. I did map the APPLICATION
> user/password to that on NAMES
> Issue : when I click on TABLES in the link server tree all I can see is
> tables in the master database. The user/password I pass to the linked
> server
> has rights to multiple databases on NAMES. The user in NAMES default
> database
> is master, but I would think I could see all db on NAMES that the user I
> passed had access to.
>
> The .NET query designer just tells me that the login failed when I try to
> save the SP or on some occasions that it failed to start a distributed
> transaction b/c login failed.
> Ive tried reading up on linked servers on MS website and there seem to be
> so
> many retractions and configurations that need to be made Im starting to
> get
> . I thought this was going to be easy or am i misunderstanding.
> Also
> the MSDN page for linked servers seems to imply that you can only do
> select
> and updates from a linked server and not inserts. Is this true? Our NAMES
> database is used by multiple applications and multiple databases. Because
> of
> performance I realize that NAMES database would work better on its own
> server.
>
> --
> JP
> .NET Software Develper|||Is there no way to see multiple databases on the linked server? In addtion
can I also see views and tables and not SPs?
JP
.NET Software Develper
"Jerry Spivey" wrote:

> JP,
> Change the default database for the linkedserver login on the linked serve
r
> to database on which you'd like to see the tables listed. You can use EM
or
> sp_defaultdb.
> HTH
> Jerry
> "JP" <JP@.discussions.microsoft.com> wrote in message
> news:22FE02D9-8576-43E5-9EA7-AEB55C5E5704@.microsoft.com...
>
>|||JP,
The treeview in EM shows the tables and views for the default database of
the LS login on LS. EM is not customizable but you could use .NET and
SQL-DMO to create your own SQL admin/treeview application. Optionally, if
you're just trying to view the objects on the LS and the LS is a SQL Server,
why not just register it in EM. Outside of that you'd have to run T-SQL to
get what you're looking for qualifying the database in the OPENQUERY
statement or the 4-part name. i.e., you could use sp_stored_procedures or
some custom script to show the procs.
HTH
Jerry
"JP" <JP@.discussions.microsoft.com> wrote in message
news:3DF957D0-E428-48F2-ADC8-B756B8156E8C@.microsoft.com...
> Is there no way to see multiple databases on the linked server? In addtion
> can I also see views and tables and not SPs?
> --
> JP
> .NET Software Develper
>
> "Jerry Spivey" wrote:
>

Monday, March 19, 2012

servers

I am testing linking an unsecured Access database to my SQL 2000 server. I
have been successfully been able to link the server and map a login to view
the data.
I am trying to figure out how to create an update statement in TSQL. I am
using the Cutomer table in the linked NWind database. Can someone help with
the syntax of translating the following syntax:
UPDATE Cutsomers
SET CustomerName = 'Anders'
WHERE CustomerID = 'ALFKI'
into a linked query.
Thank you,
JLFleming
Have you tried using a 4 part name, as in the following?
UPDATE LinkedServer...Customers
SET CustomerName = 'Anders'
WHERE CustomerID = 'ALFKI'
HTH,
Vyas, MVP (SQL Server)
SQL Server Articles and Code Samples @. http://vyaskn.tripod.com/
"JLFleming" <JLFleming@.discussions.microsoft.com> wrote in message
news:7E155BC0-BF89-485F-99E7-A116002CFACC@.microsoft.com...
I am testing linking an unsecured Access database to my SQL 2000 server. I
have been successfully been able to link the server and map a login to view
the data.
I am trying to figure out how to create an update statement in TSQL. I am
using the Cutomer table in the linked NWind database. Can someone help with
the syntax of translating the following syntax:
UPDATE Cutsomers
SET CustomerName = 'Anders'
WHERE CustomerID = 'ALFKI'
into a linked query.
Thank you,
JLFleming
|||UPDATE [linkedServername]..Customers
SET Companyname = 'Anders'
WHERE CustomerID = 'ALFKI'
"JLFleming" wrote:

> I am testing linking an unsecured Access database to my SQL 2000 server. I
> have been successfully been able to link the server and map a login to view
> the data.
> I am trying to figure out how to create an update statement in TSQL. I am
> using the Cutomer table in the linked NWind database. Can someone help with
> the syntax of translating the following syntax:
> UPDATE Cutsomers
> SET CustomerName = 'Anders'
> WHERE CustomerID = 'ALFKI'
> into a linked query.
> Thank you,
> JLFleming
|||Thank you. I thought I might need to use the OPENQUERY command.
"Narayana Vyas Kondreddi" wrote:

> Have you tried using a 4 part name, as in the following?
> UPDATE LinkedServer...Customers
> SET CustomerName = 'Anders'
> WHERE CustomerID = 'ALFKI'
> --
> HTH,
> Vyas, MVP (SQL Server)
> SQL Server Articles and Code Samples @. http://vyaskn.tripod.com/
>
> "JLFleming" <JLFleming@.discussions.microsoft.com> wrote in message
> news:7E155BC0-BF89-485F-99E7-A116002CFACC@.microsoft.com...
> I am testing linking an unsecured Access database to my SQL 2000 server. I
> have been successfully been able to link the server and map a login to view
> the data.
> I am trying to figure out how to create an update statement in TSQL. I am
> using the Cutomer table in the linked NWind database. Can someone help with
> the syntax of translating the following syntax:
> UPDATE Cutsomers
> SET CustomerName = 'Anders'
> WHERE CustomerID = 'ALFKI'
> into a linked query.
> Thank you,
> JLFleming
>
>
|||Sorry fogot a poitn in that:
UPDATE [linkedServername]...Customers
[linkedservername].[database].[owner].[objectname]
"Jens Sü?meyer" wrote:
[vbcol=seagreen]
> UPDATE [linkedServername]..Customers
> SET Companyname = 'Anders'
> WHERE CustomerID = 'ALFKI'
>
> "JLFleming" wrote:

servers

I am testing linking an unsecured Access database to my SQL 2000 server. I
have been successfully been able to link the server and map a login to view
the data.
I am trying to figure out how to create an update statement in TSQL. I am
using the Cutomer table in the linked NWind database. Can someone help with
the syntax of translating the following syntax:
UPDATE Cutsomers
SET CustomerName = 'Anders'
WHERE CustomerID = 'ALFKI'
into a linked query.
Thank you,
JLFlemingHave you tried using a 4 part name, as in the following?
UPDATE LinkedServer...Customers
SET CustomerName = 'Anders'
WHERE CustomerID = 'ALFKI'
--
HTH,
Vyas, MVP (SQL Server)
SQL Server Articles and Code Samples @. http://vyaskn.tripod.com/
"JLFleming" <JLFleming@.discussions.microsoft.com> wrote in message
news:7E155BC0-BF89-485F-99E7-A116002CFACC@.microsoft.com...
I am testing linking an unsecured Access database to my SQL 2000 server. I
have been successfully been able to link the server and map a login to view
the data.
I am trying to figure out how to create an update statement in TSQL. I am
using the Cutomer table in the linked NWind database. Can someone help with
the syntax of translating the following syntax:
UPDATE Cutsomers
SET CustomerName = 'Anders'
WHERE CustomerID = 'ALFKI'
into a linked query.
Thank you,
JLFleming|||UPDATE [linkedServername]..Customers
SET Companyname = 'Anders'
WHERE CustomerID = 'ALFKI'
"JLFleming" wrote:
> I am testing linking an unsecured Access database to my SQL 2000 server. I
> have been successfully been able to link the server and map a login to view
> the data.
> I am trying to figure out how to create an update statement in TSQL. I am
> using the Cutomer table in the linked NWind database. Can someone help with
> the syntax of translating the following syntax:
> UPDATE Cutsomers
> SET CustomerName = 'Anders'
> WHERE CustomerID = 'ALFKI'
> into a linked query.
> Thank you,
> JLFleming|||Thank you. I thought I might need to use the OPENQUERY command.
"Narayana Vyas Kondreddi" wrote:
> Have you tried using a 4 part name, as in the following?
> UPDATE LinkedServer...Customers
> SET CustomerName = 'Anders'
> WHERE CustomerID = 'ALFKI'
> --
> HTH,
> Vyas, MVP (SQL Server)
> SQL Server Articles and Code Samples @. http://vyaskn.tripod.com/
>
> "JLFleming" <JLFleming@.discussions.microsoft.com> wrote in message
> news:7E155BC0-BF89-485F-99E7-A116002CFACC@.microsoft.com...
> I am testing linking an unsecured Access database to my SQL 2000 server. I
> have been successfully been able to link the server and map a login to view
> the data.
> I am trying to figure out how to create an update statement in TSQL. I am
> using the Cutomer table in the linked NWind database. Can someone help with
> the syntax of translating the following syntax:
> UPDATE Cutsomers
> SET CustomerName = 'Anders'
> WHERE CustomerID = 'ALFKI'
> into a linked query.
> Thank you,
> JLFleming
>
>|||Sorry fogot a poitn in that:
UPDATE [linkedServername]...Customers
[linkedservername].[database].[owner].[objectname]
"Jens Sü�meyer" wrote:
> UPDATE [linkedServername]..Customers
> SET Companyname = 'Anders'
> WHERE CustomerID = 'ALFKI'
>
> "JLFleming" wrote:
> >
> > I am testing linking an unsecured Access database to my SQL 2000 server. I
> > have been successfully been able to link the server and map a login to view
> > the data.
> >
> > I am trying to figure out how to create an update statement in TSQL. I am
> > using the Cutomer table in the linked NWind database. Can someone help with
> > the syntax of translating the following syntax:
> > UPDATE Cutsomers
> > SET CustomerName = 'Anders'
> > WHERE CustomerID = 'ALFKI'
> >
> > into a linked query.
> >
> > Thank you,
> > JLFleming

Monday, March 12, 2012

servers

I am testing linking an unsecured Access database to my SQL 2000 server. I
have been successfully been able to link the server and map a login to view
the data.
I am trying to figure out how to create an update statement in TSQL. I am
using the Cutomer table in the linked NWind database. Can someone help with
the syntax of translating the following syntax:
UPDATE Cutsomers
SET CustomerName = 'Anders'
WHERE CustomerID = 'ALFKI'
into a linked query.
Thank you,
JLFlemingHave you tried using a 4 part name, as in the following?
UPDATE LinkedServer...Customers
SET CustomerName = 'Anders'
WHERE CustomerID = 'ALFKI'
--
HTH,
Vyas, MVP (SQL Server)
SQL Server Articles and Code Samples @. http://vyaskn.tripod.com/
"JLFleming" <JLFleming@.discussions.microsoft.com> wrote in message
news:7E155BC0-BF89-485F-99E7-A116002CFACC@.microsoft.com...
I am testing linking an unsecured Access database to my SQL 2000 server. I
have been successfully been able to link the server and map a login to view
the data.
I am trying to figure out how to create an update statement in TSQL. I am
using the Cutomer table in the linked NWind database. Can someone help with
the syntax of translating the following syntax:
UPDATE Cutsomers
SET CustomerName = 'Anders'
WHERE CustomerID = 'ALFKI'
into a linked query.
Thank you,
JLFleming|||UPDATE [linkedServername]..Customers
SET Companyname = 'Anders'
WHERE CustomerID = 'ALFKI'
"JLFleming" wrote:

> I am testing linking an unsecured Access database to my SQL 2000 server.
I
> have been successfully been able to link the server and map a login to vie
w
> the data.
> I am trying to figure out how to create an update statement in TSQL. I am
> using the Cutomer table in the linked NWind database. Can someone help wi
th
> the syntax of translating the following syntax:
> UPDATE Cutsomers
> SET CustomerName = 'Anders'
> WHERE CustomerID = 'ALFKI'
> into a linked query.
> Thank you,
> JLFleming|||Thank you. I thought I might need to use the OPENQUERY command.
"Narayana Vyas Kondreddi" wrote:

> Have you tried using a 4 part name, as in the following?
> UPDATE LinkedServer...Customers
> SET CustomerName = 'Anders'
> WHERE CustomerID = 'ALFKI'
> --
> HTH,
> Vyas, MVP (SQL Server)
> SQL Server Articles and Code Samples @. http://vyaskn.tripod.com/
>
> "JLFleming" <JLFleming@.discussions.microsoft.com> wrote in message
> news:7E155BC0-BF89-485F-99E7-A116002CFACC@.microsoft.com...
> I am testing linking an unsecured Access database to my SQL 2000 server.
I
> have been successfully been able to link the server and map a login to vie
w
> the data.
> I am trying to figure out how to create an update statement in TSQL. I am
> using the Cutomer table in the linked NWind database. Can someone help wi
th
> the syntax of translating the following syntax:
> UPDATE Cutsomers
> SET CustomerName = 'Anders'
> WHERE CustomerID = 'ALFKI'
> into a linked query.
> Thank you,
> JLFleming
>
>|||Sorry fogot a poitn in that:
UPDATE [linkedServername]...Customers
[linkedservername].[database].[owner].[objectname]
"Jens Sü?meyer" wrote:
[vbcol=seagreen]
> UPDATE [linkedServername]..Customers
> SET Companyname = 'Anders'
> WHERE CustomerID = 'ALFKI'
>
> "JLFleming" wrote:
>