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 - 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-05-2008, 02:52 PM   #1
xmrkite
Member
 
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 554

Rep: Reputation: 30
Run a MS Sql server in Linux


Hello, Currently, we run our office in windows only. Windows server, and windows clients. I want to switch that all to Linux.

The main holdup is our cms software which runs in .net and connects to a MS Sql server (the freebie version) on the windows 2k server.

Is there a way to run that same ms sql server software on a linux server so that I don't have to keep the windows server?

-Thank you
 
Old 10-05-2008, 02:58 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Short answer: no.

You can run an emulator like wine, or run in a virtual copy of Windows with something like VMWare or VBox - but the results will be "sub optimal".

Microsoft SQL Server originally came from Sybase, and Sybase ran on non-Windows platforms (MS Windows didn't even exist at the time). But since then, it has been completely re-written - and optimized exclusively for Windows:

http://blogs.msdn.com/euanga/archive...19/514479.aspx
 
Old 10-05-2008, 03:06 PM   #3
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Without a complete rewrite of your client software, you're pretty much married to Mr Softy - and that was the point of Windows from the very beginning.
 
Old 10-05-2008, 03:09 PM   #4
xmrkite
Member
 
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 554

Original Poster
Rep: Reputation: 30
OK, that sucks.

What about converting our software to something to run in linux? How much work is it to convert the ms sql db over to mysql, and then to convert the C# program made in .net over to something that will run in linux?

I'm no programmer, so i'd probably have to hire out to get it done.

What is the general recommended way that most companies use when they make the switch to linux from windows?
 
Old 10-05-2008, 08:31 PM   #5
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Quote:
Originally Posted by xmrkite View Post
Is there a way to run that same ms sql server software on a linux server so that I don't have to keep the windows server?
That not, but the most logical way seems to port the database to MySQL:

http://dev.mysql.com/tech-resources/...microsoft.html

Note that MySQL is one Linux alternative, one other which is often mentioned is PostgreSQL.

That doesn't solve your client side problem though.

jlinkels
 
Old 10-05-2008, 08:40 PM   #6
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by jlinkels View Post
That not, but the most logical way seems to port the database to MySQL:

http://dev.mysql.com/tech-resources/...microsoft.html

Note that MySQL is one Linux alternative, one other which is often mentioned is PostgreSQL.

That doesn't solve your client side problem though.

jlinkels

Does mysql talk ".net"?
 
Old 10-05-2008, 08:46 PM   #7
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
The mysql API is supposed to be compilable with Visual Studio, and therefore should be able to replace an MS SQL environment.

In fact, I myself am porting a major app of mine and I intend to support both mysql and mssql on the backend.

All that said, I am having a lot of trouble getting the mysql API to work in Windows. I have tried compiling both with VS and with mingw, and I don't have it working right yet. Rather frustrated by it right now, actually.
 
Old 10-05-2008, 08:51 PM   #8
AuroraCA
Member
 
Registered: Jul 2008
Location: Northern CA USA
Distribution: Ubuntu, Slackware, Gentoo, Fedora, Red Hat, Puppy Linux
Posts: 370

Rep: Reputation: 35
The Linux application mono will run .NET applications and interface nicely with mySQL databases. You can see an outstanding application running .NET with mySQL in Windows and mono with mySQL in Linux at http://www.mindtouch.com Their application is an open source wiki called Mindtouch Deki.
 
Old 10-06-2008, 05:56 AM   #9
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Quote:
Originally Posted by Quakeboy02 View Post
Does mysql talk ".net"?
Do you mean that .NET has a special interface language with MSSQL? No SQL but something else?

jlinkels
 
Old 10-06-2008, 06:36 PM   #10
xmrkite
Member
 
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 554

Original Poster
Rep: Reputation: 30
So does Mono actually let you run a windows .net app? Would I use mono instead of Wine to run a .net program? My program didn't seem to run with Wine. That's why i'm asking.

-Thanks
 
Old 10-06-2008, 08:08 PM   #11
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
You could migrate your DB to Linux/MySQL, then use the ODBC driver from MS clients, I think...
http://dev.mysql.com/doc/refman/5.0/...ctor-odbc.html
 
Old 10-06-2008, 09:56 PM   #12
xmrkite
Member
 
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 554

Original Poster
Rep: Reputation: 30
Well, for now, I want to do this without any changes in the db or frontend software if possible.

What would i use to run the .net app in linux and have it connect to the windows server? This way, i could just move one part at a time...get the clients over to linux, then worry about changing the server. I tried to open the program in wine, but it just gave me a very basic error saying it couldn't open. I installed .net runtime environment for windows in my wine install, but that didn't seem to make it work.

I'm all ears to any ideas

-Thanks
 
Old 10-07-2008, 09:24 AM   #13
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Several options with Mysql.. ODBC is a good one, theres also a .NET connector..

http://dev.mysql.com/downloads/connector/
 
Old 10-07-2008, 12:56 PM   #14
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by xmrkite View Post
So does Mono actually let you run a windows .net app? Would I use mono instead of Wine to run a .net program? My program didn't seem to run with Wine. That's why i'm asking.

-Thanks
Here's a blurb about the latest release of mono. It has a link to the mono website, as well.

http://www.ddj.com/linux-open-source...PCKH0CJUNN2JVN
 
Old 10-07-2008, 01:21 PM   #15
xmrkite
Member
 
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 554

Original Poster
Rep: Reputation: 30
OK, so i'm a bit confused with this mono thing.

It seems to me that you take the source code of your .net program, and have the mono software analyze it. It tells you if you need to make any code changes. So you make the necessary changes, if any....and then what?

That's where i'm lost.

Or, is mono something you install just like wine, and all of a sudden, you can run those windows programs that utilize .net?

-Please clarify this one for me.
-Thanks
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Connect to MS SQL Server from linux C++ ? skosanba Linux - Software 0 08-14-2006 08:05 AM
Connect to ms sql server from linux RH saustin99 Linux - Newbie 1 02-17-2006 05:07 PM
Migrating from MS-SQL server to My-SQL emailssent Linux - Networking 2 02-07-2005 02:20 PM
setting up sql server on linux machine feetyouwell Linux - General 4 12-12-2004 10:58 AM
Will MS SQL run on a Linux box? cvonhelf Linux - Newbie 2 10-20-2003 02:01 PM

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

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