Solved

suppress a result when using sql print

Posted on 2009-07-07
9
358 Views
Last Modified: 2012-05-07
I was wondering if there was a way a simple way of surpressing the server returning a :

Msg 15200, Level 16, State 1, Procedure sp_helpremotelogin, Line 14
There are no remote servers defined.

When I run the below code ?
print ''

print '<A Name="7"></A><B>7. Information about remote servers </B>'

print '*****************************************'

print ''
 

exec sp_helplinkedsrvlogin

exec sp_helpremotelogin

print '<A HREF="#TOP"><TOP></A>'

go

Open in new window

0
Comment
Question by:mooriginal
  • 4
  • 4
9 Comments
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 125 total points
ID: 24799744
One workaround would be to modify the sp_helpremotelogin stored procedure and create a new one that does not trigger that error.
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 24849094
Can you please tell me what was wrong with the solution I supplied?
0
 

Author Comment

by:mooriginal
ID: 24849652
sure

didnt have a chance to explore your suggestion myself

and the need to answer the question moved focus from this question in particular.
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 24851638
0
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 

Author Comment

by:mooriginal
ID: 24852497
ok cant see what you mean from that link
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 24854989
I am sorry, but my comment was directed at a Moderator in Community Support.
0
 

Author Comment

by:mooriginal
ID: 24857352
ah i see
no worries
0
 

Author Comment

by:mooriginal
ID: 24859907
i guess you get the points
i dont mind as you have been polite

otherwise id make a comment about it
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now