--- title: "SQL CobbleStone Database Installation" slug: "sql-installation" updated: 2024-01-25T16:52:31Z published: 2024-01-25T16:52:31Z canonical: "wiki.cobblestonesoftware.com/sql-installation" --- > ## Documentation Index > Fetch the complete documentation index at: https://wiki.cobblestonesoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # SQL CobbleStone Database Installation After setting up your SQL management studio as per CobbleStone® requirements in the [SQL Server Install Article](/v1/docs/sql-management-studio), run the DB_Installer executable that was sent from CobbleStone®. Keeping the name of the database as Contract Insight in the “Database” section below is recommended. ![Run Package to create a new Database ](https://cdn.document360.io/e3626857-1fb5-4e27-b278-2d3fc5508be4/Images/Documentation/Database%20Install%20Run%20Package%20SS.png) - Run create database Script (seen above) - Run activation codes script (This script will be sent to you in a separate email as this changes due to company and license). - Very rarely the specific server’s name along with username and password could be needed. ### Create Hangfire Database Create an empty database for Hangfire. Most of the time it should be contractinsight_hangfire. If the customer chooses to name database differently then take the name they use and add _hangfire (Underscore hangfire) ### Set Up Permissions/User for SQL Navigate to General Security, then logins. **For Windows authentication/trusted connection:** ![Login and Setup Permissions/User for SQL](https://cdn.document360.io/e3626857-1fb5-4e27-b278-2d3fc5508be4/Images/Documentation/Windows.PNG) * If using Windows Authentication password can **NEVER EXPIRE** in active directory or wherever it is stored. It is recommended that it is a service account whose password never expires. If using Windows authentication, please be sure that windows authentication is selected as in image above **SQL Authentication :** **![Setup SQL Server Authentication](https://cdn.document360.io/e3626857-1fb5-4e27-b278-2d3fc5508be4/Images/Documentation/SQL.PNG)** If using SQL server authentication, please be sure that SQL server authentication is selected as in image above - Uncheck “Enforce password policy” (this will also uncheck the other 2 and that is ok) - Set default db to “ContractInsight” or whatever name your company has chosen for the database. ### SQL Login User Mapping 1. Click on User Mapping in the top left under "Select a page" 1. ![Setting up SQL Login User Mapping](https://cdn.document360.io/e3626857-1fb5-4e27-b278-2d3fc5508be4/Images/Documentation/SQL_User%20Mapping.PNG) 2. Find the database and check the box to select it 3. Default schema, click the “ … “ button and add dbo click “check name”, then “OK.” 4. Make sure db_owner is checked, click “OK”, then refresh. 5. Repeat for the hangfire database. ### SQL Login Owned Schemas 1. Expand ContractInsight Database 2. Expand security 3. Expand Users and see user you created and double click. 4. Go to owned schema page 5. Select db_Owner and click “OK.” 6. Repeat for the hangfire database 1. ![Setup SQL Login Owned Schemas](https://cdn.document360.io/e3626857-1fb5-4e27-b278-2d3fc5508be4/Images/Documentation/SQL_Owned%20Schemas.PNG)