Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 How could it save the listing of the names of the servers SQL a file TXT?

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2003-07-31 : 08:33:28
Engels writes "Here are the ways I know of to enumerate a list of sql servers.

OSQL/ISQL
You can use isql or osql with the -L .

BUT???

How could it save the listing of the names of the servers SQL a file TXT?"

JohnDeere
Posting Yak Master

191 Posts

Posted - 2003-07-31 : 08:42:38
osql -L > c:\server.txt
This should just redirect the scren oputput to a text file.

Lance Harra
Go to Top of Page

SqlStar
Posting Yak Master

121 Posts

Posted - 2003-08-04 : 10:21:40
How simple this.... Very usefult this to me.

":-) IT Knowledge is power :-)"
Go to Top of Page
   

- Advertisement -