niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » Sybase
Get servername and port
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
Author Message
Rob Verschoor
*nix forums addict


Joined: 19 May 2005
Posts: 75

PostPosted: Tue Jul 11, 2006 10:23 pm    Post subject: Re: Get servername and port Reply with quote

It seems you're connected to the ASE server with a non-priviliged account...
Assuming you're connecting from a Windows system, check out the SQL.INI file
in directory %SYBASE%\ini (this is the defualt location). This file contains
the hostname/port number of the ASE server you're conecting to. Otherwise,
try 'netstat -a' to see if you can figure out the host +port number you're
connecting to.

Rob V.

"Sashi" <smalladi@gmail.com> wrote in message
news:1152623032.927682.290530@p79g2000cwp.googlegroups.com...
Quote:

Rob Verschoor wrote:
"Sashi" <smalladi@gmail.com> wrote in message
news:1152281088.411692.142740@m79g2000cwm.googlegroups.com...
Hi, I'm connected to a DB server via a command prompt. I'm not sure
how
this comand prompt is set up and I'm trying to figure out a way of
getting the (fully qualified) server name (or address) and the port
thru which I'm connected so that I can use this info to use a more
user
friendly GUI to connect to the same DB.
Is this possible?
Thanks,
Sashi


select * from master..syslisteners

Rob V.
-------------------------------------------------------------
Rob Verschoor

Certified Sybase Professional DBA for ASE 12.5/12.0/11.5/11.0
and Replication Server 12.5 / TeamSybase

Author of Sybase books (order online at www.sypron.nl/shop):
"Tips, Tricks & Recipes for Sybase ASE"
"The Complete Sybase Replication Server Quick Reference Guide"
"The Complete Sybase ASE Quick Reference Guide"

mailto:rob@YOUR.SPAM.sypron.nl.NOT.FOR.ME
http://www.sypron.nl
Sypron B.V., P.O.Box 10695, 2501HR Den Haag, The Netherlands
-------------------------------------------------------------

$ select * from master..syslisteners

Msg 10330, Level 14, State 1:
Server 'server_name', Line 1:
SELECT permission denied on object syslisteners, database master, owner
dbo.

Oh, well, thanks for the tip anyway.
Sashi
Back to top
Sashi
*nix forums addict


Joined: 14 Jun 2005
Posts: 95

PostPosted: Tue Jul 11, 2006 1:03 pm    Post subject: Re: Get servername and port Reply with quote

Rob Verschoor wrote:
Quote:
"Sashi" <smalladi@gmail.com> wrote in message
news:1152281088.411692.142740@m79g2000cwm.googlegroups.com...
Hi, I'm connected to a DB server via a command prompt. I'm not sure how
this comand prompt is set up and I'm trying to figure out a way of
getting the (fully qualified) server name (or address) and the port
thru which I'm connected so that I can use this info to use a more user
friendly GUI to connect to the same DB.
Is this possible?
Thanks,
Sashi


select * from master..syslisteners

Rob V.
-------------------------------------------------------------
Rob Verschoor

Certified Sybase Professional DBA for ASE 12.5/12.0/11.5/11.0
and Replication Server 12.5 / TeamSybase

Author of Sybase books (order online at www.sypron.nl/shop):
"Tips, Tricks & Recipes for Sybase ASE"
"The Complete Sybase Replication Server Quick Reference Guide"
"The Complete Sybase ASE Quick Reference Guide"

mailto:rob@YOUR.SPAM.sypron.nl.NOT.FOR.ME
http://www.sypron.nl
Sypron B.V., P.O.Box 10695, 2501HR Den Haag, The Netherlands
-------------------------------------------------------------

$ select * from master..syslisteners

Msg 10330, Level 14, State 1:
Server 'server_name', Line 1:
SELECT permission denied on object syslisteners, database master, owner
dbo.

Oh, well, thanks for the tip anyway.
Sashi
Back to top
Rob Verschoor
*nix forums addict


Joined: 19 May 2005
Posts: 75

PostPosted: Tue Jul 11, 2006 10:37 am    Post subject: Re: Get servername and port Reply with quote

"Sashi" <smalladi@gmail.com> wrote in message
news:1152281088.411692.142740@m79g2000cwm.googlegroups.com...
Quote:
Hi, I'm connected to a DB server via a command prompt. I'm not sure how
this comand prompt is set up and I'm trying to figure out a way of
getting the (fully qualified) server name (or address) and the port
thru which I'm connected so that I can use this info to use a more user
friendly GUI to connect to the same DB.
Is this possible?
Thanks,
Sashi


select * from master..syslisteners

Rob V.
-------------------------------------------------------------
Rob Verschoor

Certified Sybase Professional DBA for ASE 12.5/12.0/11.5/11.0
and Replication Server 12.5 / TeamSybase

Author of Sybase books (order online at www.sypron.nl/shop):
"Tips, Tricks & Recipes for Sybase ASE"
"The Complete Sybase Replication Server Quick Reference Guide"
"The Complete Sybase ASE Quick Reference Guide"

mailto:rob@YOUR.SPAM.sypron.nl.NOT.FOR.ME
http://www.sypron.nl
Sypron B.V., P.O.Box 10695, 2501HR Den Haag, The Netherlands
-------------------------------------------------------------
Back to top
Sashi
*nix forums addict


Joined: 14 Jun 2005
Posts: 95

PostPosted: Fri Jul 07, 2006 2:46 pm    Post subject: Re: Get servername and port Reply with quote

Sashi wrote:
Quote:
Hi, I'm connected to a DB server via a command prompt. I'm not sure how
this comand prompt is set up and I'm trying to figure out a way of
getting the (fully qualified) server name (or address) and the port
thru which I'm connected so that I can use this info to use a more user
friendly GUI to connect to the same DB.
Is this possible?
Thanks,
Sashi

To answer my own question, I googled around some more and dug here and
there and found the answer in the $SYBASE/interfaces file. (This is on
Solaris 5.8, sorry for not mentioning it earlier).
Sashi
Back to top
Sashi
*nix forums addict


Joined: 14 Jun 2005
Posts: 95

PostPosted: Fri Jul 07, 2006 2:04 pm    Post subject: Get servername and port Reply with quote

Hi, I'm connected to a DB server via a command prompt. I'm not sure how
this comand prompt is set up and I'm trying to figure out a way of
getting the (fully qualified) server name (or address) and the port
thru which I'm connected so that I can use this info to use a more user
friendly GUI to connect to the same DB.
Is this possible?
Thanks,
Sashi
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
The time now is Sat Nov 22, 2008 4:32 am | All times are GMT
navigation Forum index » Databases » Sybase
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts changing port in vsftp henk@oegema.com Suse 2 Fri Jul 21, 2006 10:42 am
No new posts does squid 2.6 support setting cache_peer port in redirec... Victor Tsang Squid 0 Fri Jul 21, 2006 8:16 am
No new posts linux port on ARM core based board. noor.fatma@gmail.com embedded 1 Wed Jul 19, 2006 6:27 am
No new posts making the proxy and/or rewrite mods respond to a particu... Mike Soultanian Apache 1 Tue Jul 18, 2006 9:46 pm
No new posts log failed attempts to a port number jayce AIX 2 Tue Jul 18, 2006 9:15 pm

Free Ringtones | Free Ringtones | Xbox Mod Chip | Mortgages | Fast Loans
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1758s ][ Queries: 20 (0.0699s) ][ GZIP on - Debug on ]