Facebook   Twitter    e-mail newsletter    YouTube    RSS Feed    Android App    iPhone and iPad App     BlackBerry App    


Results 1 to 14 of 14

Thread: Using MS SQL without installing it.

  1. #1

    Default Using MS SQL without installing it.

    I'll be attempting this myself but asking here incase someone has gone through this, I'm creating a .net app
    and connecting it to ms sql.
    Am I right in saying that one can use SQL Compact edition, and avoiding installing MS SQL on a client's machine?
    I'm looking to avoid installing the whole of ms sql, whether it is express or not.

    Thx

  2. #2
    Grandmaster Hamster's Avatar
    Join Date
    Jan 2011
    Location
    Johannesburg
    Posts
    3,971

    Default

    Yes. All that will change is your connection string when you go live (and that you set in the app.config).

    EDIT: Wait, do you want to use CE once live?
    Last edited by Hamster; 03-07-2012 at 01:20 PM.
    Jason Brody is the Justin Bieber of the gaming world

    Bestest MMORPG ever! - www.investorchallenge.co.za

  3. #3

    Default

    Not sure what you mean but the idea is to use it on one application only, if there are more than one pcs we'll be using it on a network then I'd be willing to install ms sql on the machine that would be the server.

  4. #4

    Default

    You want to host an MS SQL database without the MS SQL server software? What
    www.domaincheap.co.za
    50% off 1st month Afrihost Uncapped here - No contracts

  5. #5
    Grandmaster Hamster's Avatar
    Join Date
    Jan 2011
    Location
    Johannesburg
    Posts
    3,971

    Default

    Then yes. The only difference will be the connection string.

    Note though, CE has some limitations like the total file size etc. but it doesn't sound like you are writing the kind of app that will reach these limits or make use of the advanced features of MSSQL any way.

    You are probably going to need to distribute the CE libraries with your app.
    Jason Brody is the Justin Bieber of the gaming world

    Bestest MMORPG ever! - www.investorchallenge.co.za

  6. #6

  7. #7
    Grandmaster
    Join Date
    Aug 2004
    Location
    South Africa.
    Posts
    1,069

    Default

    Been down this route a few times. Somehow you always end up supporting the MSSQL deployment as much as the application. Eventually we settled on SQLLite as a really stable, easy to deploy and functional alternative. You can just change your connection string and *most* of the sql is the same - the best part is it requires no installation and exists solely in a single file on the client system so it's very portable and easy to manage and backup. Also v. fast.

  8. #8
    Grandmaster Hamster's Avatar
    Join Date
    Jan 2011
    Location
    Johannesburg
    Posts
    3,971

    Default

    Quote Originally Posted by xumwun View Post
    Maybe what you need is SQLLite.
    http://en.wikipedia.org/wiki/SQLLite
    And if he wants to start using one database over the network?
    Jason Brody is the Justin Bieber of the gaming world

    Bestest MMORPG ever! - www.investorchallenge.co.za

  9. #9
    Grandmaster
    Join Date
    Aug 2004
    Location
    South Africa.
    Posts
    1,069

    Default

    Quote Originally Posted by xumwun View Post
    Maybe what you need is SQLLite.
    http://en.wikipedia.org/wiki/SQLLite
    +1. Beat me to it by a few mins

  10. #10
    Super Grandmaster Nerfherder's Avatar
    Join Date
    Apr 2008
    Location
    /\/ŻŻŻŻŻŻ\/\
    Posts
    11,994

    Default

    Quote Originally Posted by stoymigo View Post
    Not sure what you mean but the idea is to use it on one application only, if there are more than one pcs we'll be using it on a network then I'd be willing to install ms sql on the machine that would be the server.
    The application ?

    Do you mean the management studio ?
    "What can be asserted without proof can be dismissed without proof." ~ Christopher Hitchens

  11. #11
    Grandmaster
    Join Date
    Aug 2004
    Location
    South Africa.
    Posts
    1,069

    Default

    Quote Originally Posted by Hamster View Post
    And if he wants to start using one database over the network?
    Create a multi-tiered app where the core functions are hosted in the "server" version via sockets or wcf. This is good app design anyway. Otherwise, for relatively low volumes you can open the sqlite db in a windows share but concurrency may be an issue.

  12. #12

    Default

    If you want to use an in-process version of sql server... have a look at Sql Server LocalDB (new with 2012). It's the upgrade of Sql CE, and is designed for deployment on client machines without installation (like Sql CE or SQ Lite).

    10GB database limit though. If you need more, then look at SQLite.

    The bonus with using localDB vs SQLite is that your SQL will basically be the same as if you were connecting to the service hosted version, and working with things like Entity Framework don't require added plugins etc as far as I know.

  13. #13
    Grandmaster
    Join Date
    Aug 2004
    Location
    South Africa.
    Posts
    1,069

    Default

    Quote Originally Posted by shogun View Post
    If you want to use an in-process version of sql server... have a look at Sql Server LocalDB (new with 2012).
    AFAIK, LocalDb still runs in a separate SQLServer process requiring installation with admin rights??

  14. #14

    Default

    Quote Originally Posted by garp View Post
    AFAIK, LocalDb still runs in a separate SQLServer process requiring installation with admin rights??
    Nicely spotted, you are correct (it does require admin to install, and runs as a separate process), but... the process is triggered when the application needs it and runs as an attached process to the main executable. There is a separate "child" process per application instance of your program.

    I think this was their way to include the full Sql Server functionality (or more of it than Sql CE at least), without having to install the full version of sql server, or doing a complete re-write for an in-process (I was incorrect earlier... it's not in-process) db. You can include it as a pre-requisite to your application install from what I understand, so installation shouldn't be a headache.

    If you require installation without admin rights... that might be a problem (well spotted).

    "I'm looking to avoid installing the whole of ms sql, whether it is express or not." LocalDB has a 140MB footprint where Sql Server Compact has a 4MB footprint. A little larger, but if you include it as a pre-requisite, this surely shouldn't be an issue, considering the full-featured nature of the product.

Similar Threads

  1. Installing 3.1.2
    By StellenboschStudent in forum iPhone and iPad
    Replies: 1
    Last Post: 17-03-2010, 07:30 AM
  2. installing new cpu
    By wizdumb in forum PC Hardware and Gadgets
    Replies: 10
    Last Post: 23-10-2008, 04:18 PM
  3. Installing IIS on XP PRO
    By Pixie22 in forum PC Hardware and Gadgets
    Replies: 14
    Last Post: 02-06-2008, 06:31 PM
  4. Installing BF2 again
    By Kmasterrr in forum Gaming
    Replies: 4
    Last Post: 29-03-2008, 03:22 PM
  5. When installing WoW on a second PC
    By Pure_Acid in forum World of Warcraft and Diablo
    Replies: 9
    Last Post: 13-10-2007, 12:52 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •