isql

FreeTDS - tsql connects, isql fails

余生颓废 提交于 2019-12-06 00:48:51
问题 I'm trying to connect to a database on my host machine (windows xp, sql server 05). My guest machine is Ubuntu 10.04. I can connect and execute commands with tsql, but isql fails. Below are my config files and error messages. freetds.conf text size = 64512 [SQLEXPRESS] host = 192.168.163.1 port = 1433 tds version = 7.0 odbcinst.ini [FreeTDS] Description = TDS driver (Sybase/MS SQL) Driver = /usr/lib/odbc/libtdsodbc.so Setup = /usr/lib/odbc/libtdsS.so CPTimeout = CPReuse = FileUsage = 1 odbc

Failure to connect to SQl Server from Linux

天涯浪子 提交于 2019-12-05 17:55:23
I am trying to connect to SQL Server 2008 on CentOS 5.8. I am using unixODBC 2.3.0 and SQL Server ODBC Driver (www.microsoft.com/en-us/download/details.aspx?id=28160). When I try to test the connection by running: isql -v mydsn username password it givens me: [S1T00][unixODBC][Microsoft][SQL Server Native Client 11.0]Login timeout expired [08001][unixODBC][Microsoft][SQL Server Native Client 11.0]A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is

Executing a script using ISQL

我们两清 提交于 2019-12-04 11:39:04
问题 I'm creating a simple isql script but it's not working and I need some help to find out whats wrong with it. I need to connect to a database and execute a SQL file. This is my script called script.sql: CONNECT 'localhost:C:\Monde\Servidor\db\monde.fdb' USER 'SYSDBA' PASSWORD 'masterkey'; update usuario set senha = 'MYkWEn0kHLHHdm' where login = 'rose' When I try to connect to my database using.: isql.exe -i script.sql I get this follow message.: Use CONNECT or CREATE DATABASE to specify a

FreeTDS - tsql connects, isql fails

感情迁移 提交于 2019-12-04 06:23:13
I'm trying to connect to a database on my host machine (windows xp, sql server 05). My guest machine is Ubuntu 10.04. I can connect and execute commands with tsql, but isql fails. Below are my config files and error messages. freetds.conf text size = 64512 [SQLEXPRESS] host = 192.168.163.1 port = 1433 tds version = 7.0 odbcinst.ini [FreeTDS] Description = TDS driver (Sybase/MS SQL) Driver = /usr/lib/odbc/libtdsodbc.so Setup = /usr/lib/odbc/libtdsS.so CPTimeout = CPReuse = FileUsage = 1 odbc.ini [SQLEXPRESS] Driver = FreeTDS Description = ODBC connection via FreeTDS Trace = No Servername = 192

How I can find the list of Sybase Indexes for a given database?

为君一笑 提交于 2019-11-30 15:10:43
How I can find the list of Indexes for a given database in Sybase? Query against sysobjects and sysindexes: SELECT o.name, i.name FROM sysobjects o JOIN sysindexes i ON (o.id = i.id) Documentation on the interpretation of the sysobjects and sysindexes system tables is available on the Sybase web-site. Load up stored procedure library from http://www.edbarlow.com/ and type in sp__helpindex or use the Sybase-provided sp_helpindex which expects the table-name as a parameter. deepak11 SELECT Object_name(id) FROM sysindexes si WHERE indid > 0 Abhinav To get a complete list of indexes in Sybase ASE

Informix SQL - List all fields & tables

痴心易碎 提交于 2019-11-30 00:17:25
Informix iSQL has a command " info tables; " that shows all tables. The syntax for viewing the fields and their respective data types is " info columns for table; " Is there a similar command that shows table.field for all tables and all fields? Using the preferred JOIN notation: SELECT TRIM(t.tabname) || '.' || TRIM(c.colname) AS table_dot_column FROM "informix".systables AS t JOIN "informix".syscolumns AS c ON t.tabid = c.tabid WHERE t.tabtype = 'T' AND t.tabid >= 100 ORDER BY t.tabname, c.colno; or the old-fashioned join-in-where-clause notation: SELECT TRIM(t.tabname) || '.' || TRIM(c

How I can find the list of Sybase Indexes for a given database?

不想你离开。 提交于 2019-11-29 21:04:20
问题 How I can find the list of Indexes for a given database in Sybase? 回答1: Query against sysobjects and sysindexes: SELECT o.name, i.name FROM sysobjects o JOIN sysindexes i ON (o.id = i.id) Documentation on the interpretation of the sysobjects and sysindexes system tables is available on the Sybase web-site. Load up stored procedure library from http://www.edbarlow.com/ and type in sp__helpindex or use the Sybase-provided sp_helpindex which expects the table-name as a parameter. 回答2: SELECT

From a Sybase Database, how I can get table description ( field names and types)?

爷,独闯天下 提交于 2019-11-28 03:16:28
I have access to command line isql and I like to get Meta-Data of all the tables of a given database, possibly in a formatted file. How I can achieve that? Thanks. Lukasz Lysik Check sysobjects and syscolumns tables. Here is a diagram of Sybase system tables. List of all user tables: SELECT * FROM sysobjects WHERE type = 'U' You can change 'U' to other objects: C – computed column D – default F – SQLJ function L – log N – partition condition P – Transact-SQL or SQLJ procedure PR – prepare objects (created by Dynamic SQL) R – rule RI – referential constraint S – system table TR – trigger U –

FreeTDS working, but ODBC cannot connect

99封情书 提交于 2019-11-27 23:05:12
问题 I am trying to run connect to a MSSQL server from an Ubuntu 12.04 webserver with FreeTDS and unixODBC. Using tsql i can connect to the server with ~$ tsql -S dbs3 -U <username> -P <password> No problem there. When I try to connect with isql however, I get the following error message: ~$ isql -v database3 <username> <password> [S1000][unixODBC][FreeTDS][SQL Server]Unable to connect to data source [01000][unixODBC][FreeTDS][SQL Server]Unknown host machine name. [ISQL]ERROR: Could not SQLConnect