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 - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-25-2018, 10:11 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Rep: Reputation: 177Reputation: 177
Unable to get MS SQL Operations Studio working


I've recently installed MS SQL Server Express 2017 on Slackware64 14.2. I can do queries from the command line using /opt/mssql-tools/bin/sqlcmd. I can also do queries from a remote host via port 1433. In KDE, I can run sqlops as a normal user. I get the SERVERS connection page. The stderr output seems innocuous:
Code:
$ sqlops
[main 4:18:01 PM] update#setState idle
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
[main 4:18:32 PM] update#setState checking for updates
[main 4:18:33 PM] update#setState idle
I've tried entering the local hostname, hostname/SQLEXPRESS, and the hostname of a remote server to which I'm able to connect from java on other Linux hosts. All I get is a spinning indicator and it never connects or gives any sort of error. No errors logged to /var/opt/mssql/log/errorlog.

If I try
Code:
sqlcmd -U sa -P password -S labrat\\SQLExpress
I get "Sqlcmd: Error: Microsoft ODBC Driver 13 for SQL Server : MAX_PROVS: Error Locating Server/Instance Specified [xFFFFFFFF]. ... Check if instance name is correct and if SQL Server is configured to allow remote connections."

Any ideas?

Last edited by mfoley; 08-25-2018 at 10:18 PM.
 
Old 08-26-2018, 10:14 AM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by mfoley View Post
Check if instance name is correct and if SQL Server is configured to allow remote connections."

Any ideas?
One or two

Code:
telnet labrat 1433
what happens?

Study https://blogs.msdn.microsoft.com/sql...nce-specified/

Last edited by Habitual; 08-26-2018 at 10:18 AM.
 
Old 08-27-2018, 12:37 PM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,555

Original Poster
Rep: Reputation: 177Reputation: 177
Quote:
Originally Posted by Habitual View Post
One or two

Code:
telnet labrat 1433
what happens?

Study https://blogs.msdn.microsoft.com/sql...nce-specified/
telnet labrat 1433 works. Not only that, I can do queries from a remote host to this SQL Server host via port 1433 and it works.

As far as the instance name goes, I've no idea how to find that and I've been searching quite extensively. All of the methods I've found for this are how to determine the instance name on a Windows hosted SQL Server and they involve examining the registry or running a Power Shell script. None of which helps for a Linux hosted SQL Server. Based on what I've read, the default instance name is SQLEXPRESS. I've also tried labrat\MSSQLSERVER

Something I didn't notice before, when I start sqlops I get the message "Failed to start sql-tools service". It flashed up briefly then goes away. Perhaps there is some service that needs to be running for sqlops to work? I'll check into that.

Last edited by mfoley; 08-27-2018 at 12:44 PM.
 
Old 09-01-2018, 01:17 PM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by mfoley View Post
Based on what I've read, the default instance name is SQLEXPRESS. I've also tried labrat\MSSQLSERVER
try:
Code:
sqlcmd -U sa -P password -S labrat
see what happens.
 
  


Reply

Tags
sql server



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
[SOLVED] Video - Studio 13.37 vs KXStudio, AV Linux, Dream Studio, and Ubuntu Studio l0wt3ch Studio 13.37 1 12-05-2012 07:45 PM
Studio to studio or studio to transmitter stable open source solution MATRIX_q Linux - Server 0 08-25-2011 03:44 AM
unable to store multiple sed operations using pipe in a variable amitverma4587 Programming 2 06-02-2011 10:58 AM
unable to reinstall sun studio babyphil Solaris / OpenSolaris 4 03-28-2006 12:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:25 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