Solved

Isql syntax

Posted on 2004-09-22
15
25,160 Views
Last Modified: 2012-06-27
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
0
Comment
Question by:firozepasha
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
  • +4
15 Comments
 
LVL 69

Expert Comment

by:Callandor
ID: 12126290
Usually, you connect using the computername of the server:

isql -Scomputername -Uuserid -Ppassword
use databasename
go
0
 
LVL 29

Expert Comment

by:leonstryker
ID: 12126502
0
 
LVL 69

Expert Comment

by:Callandor
ID: 12127292
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
Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

 

Author Comment

by:firozepasha
ID: 12127877
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
 

Author Comment

by:firozepasha
ID: 12128001
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
 
LVL 69

Expert Comment

by:Callandor
ID: 12128735
Did you substitute the actual name of the server, instead of literally "servername"?  Same with username and password.
0
 
LVL 4

Expert Comment

by:bazika
ID: 12132300
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
 
LVL 6

Expert Comment

by:ChrisKing
ID: 12134588
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
 

Expert Comment

by:ce_culver
ID: 12143047
Is the Sybase service running on the box that you installed it on?  I had a similar problem with MSDE.
0
 
LVL 6

Expert Comment

by:ChrisKing
ID: 12543266
I object, Venabili has no Sybase experience and is not qualified to be a CV in this TA
0
 
LVL 6

Accepted Solution

by:
ChrisKing earned 500 total points
ID: 12592866
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
 
LVL 3

Expert Comment

by:pg_vinod
ID: 12817110
try ISQL from OCS-12_0 directory of the Syabse installation.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
sybase license issue 6 569
Copy a TadoDataSet to another and apply changes to database. 11 1,306
Generating a Format File in Sybase ASE BCP 1 1,273
SQL Syntax Select Top in each group 2 211
After hours on line I found a solution which pointed to the inherited Active Directory permissions . You have to give/allow permissions to the "Exchange trusted subsystem" for the user in the Active Directory...
In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

752 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