LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-12-2014, 05:34 PM   #1
4xjbh
LQ Newbie
 
Registered: Jan 2014
Posts: 6

Rep: Reputation: Disabled
MSSQL: Linux to Window 7 SQLEXPRESS Setup Failed


I have tried several drivers to connect my mint16 dev lappy to a windows 7 pc running sqlexpress 2012 and failed. FreeTDS and dblib being the most common I could find any reference to on google search....

The mssql pc has the firewall disabled. mssql has been configured to allow remote connections and ip2 has been configured with port 1433, ipaddress / tcpip and dynamic address disabled.....

In trouble shooting I have noticed I cannot telnet (telnet 192.168.1.10 1433) to the the pc. mssql has also been configured not to use windows authentication.....

The general error message was similar on both freetds and dblib which makes me think there is something I have missed.

Any assistance in pointing some things that may help me resolve this would be appreciated.. While I have benn through plenty of guides to date any additional known to be relavent would be appreciated.

Thanks, James


Quote:
There was a problem. Caught exception: SQLSTATE[HY000] Unable to connect: Adaptive Server is unavailable or does not exist (severity 9)
Quote:
[TDS]
host = 192.168.1.10
port = 1433
tds version = 7.0
Code:
	$msdbhost     = "192.168.1.10\SQLEXPRESS";
	$msdbname     = "sqlCompanyTables";
	$msdbuser     = "mssql";
	$msdbpass     = "mypassword";
try {	
	// database connection
 	$msconn = new PDO("dblib:host=$msdbhost; dbname=$msdbname", $msdbuser, $msdbpass);
	$msconn -> exec();
		
} catch(PDOException $e) {
	echo 'There was a problem. Caught exception: ',  $e->getMessage(), "\n";
}

Code:
$username="mssql"
$password="mypassword"

try { $con = new PDO('odbc:Driver=FreeTDS; Server=192.168.1.10\SQLEXPRESS; Database="sqlCompanyTables"; UID=$username;PWD=$password;');
}
  $con = null;
 } catch (PDOException $e) {
  echo $e->getMessage();
}
 
Old 02-13-2014, 09:04 AM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Seen this?
https://www.microsoft.com/en-us/down....aspx?id=28160
 
Old 02-13-2014, 04:39 PM   #3
4xjbh
LQ Newbie
 
Registered: Jan 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
I am on a Mint 16 32bit . Those drivers are 64bit.....
 
Old 02-14-2014, 10:46 AM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Cursory search of that document and others (search engine for "Microsoft® SQL Server® ODBC Driver 1.0 for Linux +32 bit" suggests that's all they have released.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to setup client(window) server(linux) connection and install samba aizen_hog Linux - Networking 6 10-09-2013 04:00 PM
MSSQL on Linux? spider99 Linux - Server 5 05-18-2010 09:23 AM
how to enable mssql on linux shafey Linux - Server 10 09-07-2008 08:30 PM
MSSQL Enterprise for Linux aliensub Linux - Software 2 02-04-2003 08:43 PM
setup network between Linux 7 and Window 98 gogo Linux - Networking 7 04-10-2001 05:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:42 AM.

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