Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
MS Sql Connection using PHP in Linux
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Dadu Da
7y
237
1
Reply
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).
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
sending data to another ip address computer in php
want to fix My SQL query Error