TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Dadu Da
NA
43
35.3k
MS Sql Connection using PHP in Linux
Jun 12 2017 9:05 AM
I am tring to access MS Sql Server from linux os,
I am successfuly connect MS Sql Server,
I alredy set DSN by configure files "odbcinst.ini" and "odbc.ini"
in "odbcinst.ini" file
[FreeTDS]
Description = Freetds v 0.95
Driver=/usr/lib/x86_64-linux-gnu/odbc/libtdsodbc.so
in "odbc.ini"
[MSSQLServer]
Driver = FreeTDS
Trace = No
Server = IP Address
Port = 1433
Database = Data Base Name
User = login
Password = password
on command prompt of linux I can connect MS SQl Server and fetch data succesfuly.
but when I try connect in php,
I tried both way to connect MS Sql Server
1> $conn = sqlsrv_connect( $serverName, $connectionOptions )
2> $conn = odbc_connect($dsn,$user,$password);
both time nothing get (error or message).
Reply
Answers (
1
)
sending data to another ip address computer in php
want to fix My SQL query Error