LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-24-2009, 05:15 AM   #1
kalidoss
Member
 
Registered: Mar 2009
Posts: 50

Rep: Reputation: 0
mssql connection in php


hi,

how to connect the mssql server in php on redhat linux?
mssql library is needed to connect with?? if so, which library file was needed??/
Is it possible to connect through odbc??


plz help ..........
 
Old 10-24-2009, 03:26 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,911

Rep: Reputation: 7014Reputation: 7014Reputation: 7014Reputation: 7014Reputation: 7014Reputation: 7014Reputation: 7014Reputation: 7014Reputation: 7014Reputation: 7014Reputation: 7014
Quote:
Originally Posted by kalidoss View Post
hi,

how to connect the mssql server in php on redhat linux?
mssql library is needed to connect with?? if so, which library file was needed??/
Is it possible to connect through odbc??
plz help ..........
Spell out your words, please.

Google returns quite a bit for "php mssql tutorial", first hit is:
http://www.webcheatsheet.com/php/con...l_database.php
 
Old 10-24-2009, 04:07 PM   #3
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Kalidoss -

Yes, it's possible (and actually quite easy!) to use PHP with SQL Server. And yes, you can connect via ODBC.

All you need is the right SQL Server driver for your platform.

Here are a few links that might help:

http://www.linuxjournal.com/article/6636

http://php.net/manual/en/book.mssql.php

http://www.easysoft.com/products/dat...g-started.html

http://www.freetds.org/

'Hope that helps .. PSM
 
Old 10-26-2009, 05:53 AM   #4
kalidoss
Member
 
Registered: Mar 2009
Posts: 50

Original Poster
Rep: Reputation: 0
ADAPTIVE SERVER CONNECTION FAILED ERROR on freeTDS

hi,

i installed freeTDS software for ODBC connection.
Installed well but while connecting the server using command

./tsql -S <ip_name> -U <user_name>

ADAPTIVE SERVER CONNECTION FAILED error is coming.
Not able to telnet the server. My configuratuion is
host = 10.10.192.6
port = 1433
tds version = 8.0

Anything wrong with that?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP connect to MSSQL question leiw Programming 2 09-28-2008 09:34 AM
PHP + unixODBC + MSSQL Question ckoniecny Linux - General 0 02-15-2007 08:43 AM
Php + Mssql + Ldap lewus Linux - Software 4 01-27-2005 02:48 AM
RH9 + apache + php + mssql how to iel Linux - General 0 07-02-2004 04:25 AM
PHP and MSSQL BBPS Linux - Software 2 10-10-2003 10:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration