Results 1 to 13 of 13

Thread: Installing stand alone SQL Server Express 2008 on shared network drive

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    515

    Installing stand alone SQL Server Express 2008 on shared network drive

    How can I get SQL Server Express 2008 with Tools to install as a stand-alone on a shared network drive ?

    Thanks for any help.
    Last edited by Xancholy; Dec 17th, 2008 at 10:41 PM.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: Installing stand alone SQL Server Express 2008 on shared network drive

    What exactly do you mean by "a stand-alone"? SQL Server 2008 runs as a Windows service so you need to either install a separate instance on each machine or else install a single instance on a server and then have everyone connect to that. If you want to distribute the MDF data file with your app and attach on demand then you'd want a local instance.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    515

    Re: Installing stand alone SQL Server Express 2008 on shared network drive

    Here's the scene. I need to install an instance on a shared network drive.

    I then distribute my app frontend to networked users with connection string pointing to that database instance on the shared drive.

    Hope that makes it clearer. I dont see the option of 'where' we want sqlserver to install to.
    Last edited by Xancholy; Dec 17th, 2008 at 10:59 PM.

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: Installing stand alone SQL Server Express 2008 on shared network drive

    Shared drives are for data. You need to go to a machine on the network and install SQL Server Express on that machine. You then simply specify the name of that machine in your connection string instead of the usual dot for the local machine, i.e. "Data Source=Server\SQLEXPRESS" instead of "Data Source=.\SQLEXPRESS".
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    515

    Re: Installing stand alone SQL Server Express 2008 on shared network drive

    So the instance of SQLExpress is not considered data or stored on the shared drive ?

    This seems very different from an Access mdb that would be stored on a shared drive and all front ends would be pointed to it using connection strings.

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: Installing stand alone SQL Server Express 2008 on shared network drive

    Absolutely it's different. Access databases are simply MDB data files. SQL Server - even the Express edition - is a fully-fledged RDBMS, so it is server-based. SQL Server databases themselves are just MDF files, but those data files are useless on their own because it's SQL Server, which runs as a Windows service, that provides access to those data files. Without the service the data is essentially inaccessible.

    The benefit is that all the data access and manipulation is managed by SQL Server instead of the free-for-all you get with Access. It's this difference that makes Access unsuitable for scenarios that SQL Server can handle with ease.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    515

    Re: Installing stand alone SQL Server Express 2008 on shared network drive

    Quote Originally Posted by jmcilhinney
    If you want to distribute the MDF data file with your app and attach on demand then you'd want a local instance.
    Thanks for the explanation. In my scenario, I'm deploying the common database as well as frontend that networked users tap into.

    You mentioned that I could have a sqlserver instance on my pc as it is a Windows service.

    How does the distributed mdf work in this case ?

  8. #8
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: Installing stand alone SQL Server Express 2008 on shared network drive

    Quote Originally Posted by Xancholy
    How does the distributed mdf work in this case ?
    It doesn't. If you have multiple users accessing a common database then you have multiple users connecting to a single instance of SQL Server.

    If you have a local instance of SQL Server then you can also attach local databases on demand, but they would not be shared databases. They would only be local to an application on the same machine.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  9. #9
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Installing stand alone SQL Server Express 2008 on shared network drive

    All the connections would point to your machine. Also the MDF isn't distributed.... it's part of the SQL Server instance. You're still thinking in terms of files the way Access works... this is a totally different animal that requires a paradigm shift in thinking.

    Basically any machine that everyone can see can have SQL installed. then all you need to do is point all the connection strings to that machine. Depending on the number of people connecting, I'd recommend using a machine that doesn't get used much, has a bit of HD space available, and it fairly speedy.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  10. #10
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: Installing stand alone SQL Server Express 2008 on shared network drive

    Also (at least in Express 2005) SQL Express is not set to allow outside connections by default (accepts on local machine connections). You must change that using the SQL Surface Area Configuration tool to allow access from remote computers.
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

  11. #11

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    515

    Re: Installing stand alone SQL Server Express 2008 on shared network drive

    Quote Originally Posted by techgnome
    Basically any machine that everyone can see can have SQL installed. then all you need to do is point all the connection strings to that machine. Depending on the number of people connecting, I'd recommend using a machine that doesn't get used much, has a bit of HD space available, and it fairly speedy.

    -tg
    Thanks people. Therein is the problem. This is going to be in a conservative corporate setup where machines don't 'see' each other but do have access to a common network drive.

    In order to have successful implementation, what do you suggest ?

  12. #12
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Installing stand alone SQL Server Express 2008 on shared network drive

    They don't need to be able to access the computer via Explorer etc, they just need to be on the same network - as you connect to SQL Server directly.

    You should install SQL Server on a computer which is always running (so a server of some sort), and preferably does not have much else running on it.

    You will then use the computer name (or IP address) and the database name (not the file name, but the name inside SQL Server) in your connection string.

  13. #13
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: Installing stand alone SQL Server Express 2008 on shared network drive

    They do not see the machine... They see the database instance. You install on a server and do not share it. The connect string will be used to get to the database instance.

    Slow typing SI bet me to it
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

Posting Permissions

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



Click Here to Expand Forum to Full Width