Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Using existing database with ProGet

    Scheduled Pinned Locked Moved Support
    installerproget
    3 Posts 1 Posters 63 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      I am trying to install a proget instance against an existing database, but I can't get it to work. The installation guide indicates that if I put a database name in the connection string, the installer will not try to create a database. But when I run the installer, and use the connection string

      Data Source=sqldbadev102.taltrade.com;Initial Catalog=stage_proget;Integrated Security=true

      The installer attempts a "CREATE DATABASE",and fails because the account it is running as doesn't have database create rights. How do I make the installer use an existing database?

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        It looks like the installer hard codes "ProGet" as the database name at the moment, we'll have to fix that in the installer.

        As a workaround, if you let the database get created as ProGet, you can rename it to whatever value you plan to use in the connection string. Note you will have to manually update the connection string in two places once the installation is complete:

        • web.config in the \WebApp install directory
        • app.config in the \Service install directory
        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          I ended up just installing for SQL express, then taking a backup the database it created and restoring that on our sql server, and pointing the service and web app to that. Then I changed the service to log in as the domain login that has rights on the database.

          It would be nice it we could specify a database name when installing, and use an existing empty database. Also it would be nice to be able to specify the windows user accessing SQL when installing. Right now when installing the database creation script runs as the user running the installer, and the service itself runs as Network Service.

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post
          Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation