Isql syntax

Hi

What is the isql syntax for conneting to a Database(a.c.d.f.). I want to connect to a database using its IP from my Windows machine through command prompt.

Firoze
firozepashaAsked:
Who is Participating?
 
ChrisKingConnect With a Mentor Commented:
Objection, this question should not be deleted, the question has been asked and answered

the user want to use ISQL via an IP address and the answer is that it can not be done - ISQL will only connect to registered server names.
0
 
CallandorCommented:
Usually, you connect using the computername of the server:

isql -Scomputername -Uuserid -Ppassword
use databasename
go
0
 
leonstrykerCommented:
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
CallandorCommented:
LOL - that's why I thought I was experiencing deja-vu.  Maybe firozepasha doesn't know how to respond to comments, since he registered on 9/22/04?  (Type into the comment box near the bottom, and hit the Submit button).
0
 
firozepashaAuthor Commented:
C:\Sybase12>isql -Sservername -Uuser
Password:
CT-LIBRARY error:
        ct_connect(): network packet layer: internal net library error: Net-Lib protocol driver call
 to connect two endpoints failed

I am getting this response, what can i do to get rid of this.

0
 
firozepashaAuthor Commented:
I know i am asking same question, still not working.

Here i will tell you what exactly i did

1. I installed Sybase Client
2. Configured dsedit
3. Opened dos prompt and tried executing the isql command but i get the error
C:\Sybase12>isql -Sservername -Uuser
Password:
CT-LIBRARY error:
        ct_connect(): network packet layer: internal net library error: Net-Lib protocol driver call
 to connect two endpoints failed




0
 
CallandorCommented:
Did you substitute the actual name of the server, instead of literally "servername"?  Same with username and password.
0
 
bazikaCommented:
What does the 'ping' say ?
In dsedit select the necessary servername and press 'ping' button on the toolbar.

If it's not pingable, do the following:
 - check, do You use correct protocol (tcp, namedpipe etc)
 - check with windows 'ping' utility, if the tcp host available
 - check with windows 'telnet' utility, if something running on the server host/port

If it's pingable, check the environment variables PATH, SYBASE.

And of course, classical Windows 'solution' - restart the machine and try one more time :-)
0
 
ChrisKingCommented:
it is not the "servername" that tha database is running on, it is the sybase servername that you have registered in your initialisation file

Found in:
%sybase%\ini\sql.ini    (windows)
$SYBASE/interfaces     (linux/unix)

you can NOT just use an IP, is must be a registered server.
0
 
ce_culverCommented:
Is the Sybase service running on the box that you installed it on?  I had a similar problem with MSDE.
0
 
ChrisKingCommented:
I object, Venabili has no Sybase experience and is not qualified to be a CV in this TA
0
 
pg_vinodCommented:
try ISQL from OCS-12_0 directory of the Syabse installation.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.