IT's Diary

  • Beranda
  • About
 

Debian Linux as a Microsoft SQL Server client

 

Par Pierrick, lundi 22 octobre 2007 à 22:09 / categorie: GNU/linux / tags: / #104 / rss

Debian logo Microsoft SQL Server

We’re using Debian Etch (with GNU/Linux) as a server at Talend office. We need to reach a remote Microsoft SQL Server database. The first step is to perform a select query in the command line.

We need to install FreeTDS: FreeTDS is a set of libraries for Unix and Linux that allows your programs to natively talk to Microsoft SQL Server and Sybase databases.. We have to define an “interface” for the Microsoft SQL Server in the FreeTDS “interfaces” file. At the end of the line,w use sqsh, a command line client for Sybase and Microsoft SQL Server.

 

$ sudo apt-get install freetds-dev sqsh
$ vi /etc/freetds/freetds.conf
 # talend alias is bound to a MS SQL Server 2000
 [talend]
        host = talend-dbms
        port = 1433
        tds version = 8.0
$ sqsh -Uroot -P******* -Stalend
[...]
1> select count(*) from sales;
2> \go

 -----------
        1000

(1 row affected)
1> quit
  • FreeTDS
  • SQSH

Trackbacks

Aucun trackback.

Les trackbacks pour ce billet sont fermés.

Commentaires

Aucun commentaire pour le moment.

Ajouter un commentaire

Tulisan ini dikirim pada pada Rabu, Oktober 31st, 2007 4:54 am dan di isikan dibawah PHP. Anda dapat meneruskan melihat respon dari tulisan ini melalui RSS 2.0 feed. r Anda dapat merespon, or trackback dari website anda.

Tinggalkan Balasan

Klik di sini untuk membatalkan balasan.

  • Pencarian

  • Terkini

    • Ganti Port Zimbra Web Service
    • Sharing : Table dan CSS
    • Turn your PC into a Mac
    • MedSys Progress Report 31/10/2007
    • PHP Access To An MSSQL Database From Debian Etch With ODBC And FreeTDS
    • Debian Linux as a Microsoft SQL Server client
  • Kategori

    • CSS
    • Desktop
    • HTML
    • PHP
    • Uncategorized
    • Web Design
  • Blog Stats

    • 972 hits

Tema Contempt oleh Vault9.
Blog pada WordPress.com.