Results 1 to 8 of 8

Thread: [RESOLVED] Net Application and SQL express network deploy

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2004
    Posts
    72

    Resolved [RESOLVED] Net Application and SQL express network deploy

    I have my vbnet application with sql server express designed for individual desktop pc. Now I want to have it work on a network.

    1_ how can I make my customer to install sql express and the Database on the server and enable the network protocols seamlessly? dont want to have my customer configuring sql expess manually.
    2_ how can I have my client software to look for the sql express and connect to it in a seamless way??

    Does anyone have any ideas , perhaps any example of configuration file ?
    Can I avoid the customer to enter configuration data?

    Thanks in advance
    Cybersandokan

  2. #2
    Frenzied Member mickey_pt's Avatar
    Join Date
    Sep 2006
    Location
    Corner of the Europe :)
    Posts
    1,959

    Re: Net Application and SQL express network deploy

    I made something similar at long ago...

    You can ship the sql server express with your application install in silent mode sql server, proceed with your application, in your application, maybe in the first run, run a script that build your database and create the user that will be used by your application.

    SQL Server Silent Install
    Last edited by mickey_pt; Aug 17th, 2009 at 04:19 PM. Reason: Link

    Rate People That Helped You
    Mark Thread Resolved When Resolved

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2004
    Posts
    72

    Question Re: Net Application and SQL express network deploy

    Thanks for the answer. That answers my question #1
    what about the second?
    How can my application in the client pc detect where is the sql server express /database installed, in what server/instance??

    Cybersandokan

  4. #4
    Frenzied Member mickey_pt's Avatar
    Join Date
    Sep 2006
    Location
    Corner of the Europe :)
    Posts
    1,959

    Re: Net Application and SQL express network deploy

    If you install the sql server in silent mode, you define where and how to install so you know what instance will be installed.

    The database will be installed during install, or when your application start, just put some check (registry for example), and run an sql script that creates the database, the tables, the user and set the permissions for the new user, this user will be the user used in your application.

    EDIT - You can get by code the Sql Server installed instances in a local area network Dim dt As DataTable = Sql.SqlDataSourceEnumerator.Instance.GetDataSources
    Last edited by mickey_pt; Aug 17th, 2009 at 06:13 PM. Reason: Info

    Rate People That Helped You
    Mark Thread Resolved When Resolved

  5. #5

    Thread Starter
    Lively Member
    Join Date
    May 2004
    Posts
    72

    Resolved Resolved: Net Application and SQL express network deploy

    Thanks for your help. This is exactly what I needed.

    Cybersandokan

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

    Re: [RESOLVED] Net Application and SQL express network deploy

    Please remeber that by default SQLExpress is not set to allow connections to the Server from anything but the local machine. Ensure that is modified and set the protocalls you want to use for connections
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

  7. #7
    Frenzied Member mickey_pt's Avatar
    Join Date
    Sep 2006
    Location
    Corner of the Europe :)
    Posts
    1,959

    Re: [RESOLVED] Net Application and SQL express network deploy

    @Gary i think that all connections are local, it will install the SQL Server with the application

    Rate People That Helped You
    Mark Thread Resolved When Resolved

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

    Re: [RESOLVED] Net Application and SQL express network deploy

    If you do that then ensure that the application sitting on the server is given full trust on each client machine that will attempt to use it or you will get a security failure on the .Net application.
    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