Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

Can't edit Linked Server General Properties after saving
Hi,

When I click on the properties of a linked server, all the General
properties are read - only, which means that if I want to edit any
general properties I have to delete the linked server and recreate it.
Needless to say this is a pain. Is this by design or some kind of bug?
Is there a workaround?

Thanks


Report this thread to moderator Post Follow-up to this message
Old Post
Crazy Cat
12-20-05 01:25 AM


Re: Can't edit Linked Server General Properties after saving
Oops, forgot to mention SQL Server 2005 Express Edition -- sorry, my
brain is kind of fried messing with this thing

Thanks


Report this thread to moderator Post Follow-up to this message
Old Post
Crazy Cat
12-20-05 01:25 AM


Re: Can't edit Linked Server General Properties after saving
OK, I need to be more specific still,

When I click on the properties of a linked server, all the General
properties are read - only, which means that if I want to edit any
general properties I have to delete the linked server and recreate it.
Needless to say this is a pain. Is this by design or some kind of bug?
Is there a workaround?

I'm using SQL Server 2005 Management Studio Express CTP, the latest
edition with SQL Server 2005 Express.

Thanks


Report this thread to moderator Post Follow-up to this message
Old Post
Crazy Cat
12-20-05 01:25 AM


Re: Can't edit Linked Server General Properties after saving
Hello, Crazy Cat

Considering that this behaviour was also in Enterprise Manager (for SQL
Server 2000), I'd say that it is "by design". And seeing that the
relevant procedures are only sp_addlinkedserver and
 sp_droplinkedserver,
 I'd say that there isn't any workaround (except
the one that you mentioned: drop the linked server and recreate it).

However, it is interesting to notice that for certain OLEDB Providers,
some properties are not read-only in the General tab (for example, for
the "Microsoft Jet 4.0 OLE DB Provider", the "Product name", "Data
source" and "Provider String" can be modified). Management Studio (and
Enterprise Manager) accomplishes this by directly updating the
sysservers system table. However, I do not recommend trying to update
the system tables yourself. This is unsupported and if they didn't do
it in Management Studio, there are very good reasons why this should
not be done.

Razvan


Report this thread to moderator Post Follow-up to this message
Old Post
Razvan Socol
12-20-05 08:23 AM


Re: Can't edit Linked Server General Properties after saving
After looking at this thing a little bit more, I noticed that the
"Product name", "Data
source", etc properties can always be modified for any OLE DB Provider,
including "Microsoft OLE DB Provider for SQL Server". So, if it's
important for you to modify those properties (without dropping and
recreating the linked server), you shoud try creating a linked server
using this OLE DB Provider (select "Other data source", instead of "SQL
Server"). However, I guess that there may be some other differences
between the two methods.

Razvan


Report this thread to moderator Post Follow-up to this message
Old Post
Razvan Socol
12-20-05 08:23 AM


Re: Can't edit Linked Server General Properties after saving
Thanks Razvan,

However from what I'm seeing it is not the case that I can modify the
General properties for an OLE DB provider -- my linked server uses the
OLE DB Provider for Oracle. I also experienced the same frustration
with the OLE DB provider for ODBC sources. As soon as I exit the Linked
Server dialog after creating the Linked Server the General Properties
become read-only. Guess it's something I'll just have to live with.

Thanks again


Report this thread to moderator Post Follow-up to this message
Old Post
Crazy Cat
12-20-05 12:23 PM


Re: Can't edit Linked Server General Properties after saving
Hmm... you are right. Earlier, I tried using Management Studio Express
(Nov CTP) on a SQL Server 2000 server and I was able to modify the
properties of a linked server, if it is using a OLE DB Provider
(including the OLE DB Provider for Oracle and for ODBC Drivers).
However, if I connect to a server running SQL Server 2005, the
properties are read-only.

Razvan


Report this thread to moderator Post Follow-up to this message
Old Post
Razvan Socol
12-20-05 02:23 PM


Re: Can't edit Linked Server General Properties after saving
Hi All,

I came up with a workaround -- if you right click on the link server
then select 'Script Linked Server As/ CREATE to/ New Query Window'
Management Studio will generate the code for creating the linked server
in a Query Window. You can then edit the code to change the desired
properties, delete the existing Linked Server, then execute the code to
recreate the linked server. If you then click the refresh selection for
the linked server folder's popup menu you will then see your newly
edited linked server. I found that this pretty much served the same
need as some of the features I'm surprised are missing from Management
Studio, such as an option to copy and paste a linked server or edit the
general properties. Nonetheless, I found that doing it this way is just
as popular, though not as obvious.

Thanks all


Report this thread to moderator Post Follow-up to this message
Old Post
Crazy Cat
12-20-05 02:23 PM


Re: Can't edit Linked Server General Properties after saving
Razvan Socol (rsocol@gmail.com)  writes:
> Hmm... you are right. Earlier, I tried using Management Studio Express
> (Nov CTP) on a SQL Server 2000 server and I was able to modify the
> properties of a linked server, if it is using a OLE DB Provider
> (including the OLE DB Provider for Oracle and for ODBC Drivers).
> However, if I connect to a server running SQL Server 2005, the
> properties are read-only.

That sonds reasonable. I got a bit puzzled when you talked about direct
update to the syservers table, as in SQL 2005, there are no system tables
visible for direct update - sysservers and all the others are now views
only.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pr...oads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodin...ions/books.mspx

Report this thread to moderator Post Follow-up to this message
Old Post
Erland Sommarskog
12-23-05 01:24 AM


Sponsored Links





Last Thread Next Thread
Post New Thread

Microsoft SQL Server forum archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 12:57 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006