Find Jobs
Hire Freelancers

Script to Deploy SQL Server Databases

$15-25 USD / hour

Abgeschlossen
Veröffentlicht vor mehr als 9 Jahren

$15-25 USD / hour

I have an online Windows 2012 server with SQL Server. I would like to deploy a new SQL Server database to my customers. Each customer must only have access to their own database. I have started to script this (see below) but want an experienced SQL Server coder to improve on the security and ensure the script does the following: [1] Fix a problem - After creating the user and database, I cannot log into the database or create tables. If I use my sa account, it works so looks like a permissions / grants issue. [2] Allow me to specify Database Name, Username and password in one place such as a parameter at the top of the script so I don't need to find, copy and paste the values throughout the script. [3] Creates the database, the user and sets all the required security for the user to log into the database and create tables using my own custom software I have developed. The user must and have full access to the the database (to create and delete tables, SPs etc) [4] They must not have access to anything else other than their own database as there will be several users using the SQL Sever. I am sure this is a very quick job for someone and I will have a lot more SQL work for this project very soon and this will lead to a lot more work once i have found the right person. My original (not 100% working script): --=================================================== -- db_TestDatabase Database name -- TestPa$$w0rd password -- TestUser1 username use master go --create a test database CREATE DATABASE [db_TestDatabase] GO --create user login CREATE LOGIN [TestUser1] WITH PASSWORD=N'TestPa$$w0rd' GO --create user in database CREATE USER [TestUser1] FOR LOGIN [TestUser1] WITH DEFAULT_SCHEMA=[test_Schema] GO --create role CREATE ROLE [test_Role] AUTHORIZATION [dbo] GO --create schema CREATE SCHEMA [test_Schema] AUTHORIZATION [TestUser1] GO --apply permissions to schemas GRANT ALTER ON SCHEMA::[test_Schema] TO [test_Role] GO GRANT CONTROL ON SCHEMA::[test_Schema] TO [test_Role] GO GRANT SELECT ON SCHEMA::[test_Schema] TO [test_Role] GO GRANT DELETE ON SCHEMA::[dbo] TO [test_Role] GO GRANT INSERT ON SCHEMA::[dbo] TO [test_Role] GO GRANT SELECT ON SCHEMA::[dbo] TO [test_Role] GO GRANT UPDATE ON SCHEMA::[dbo] TO [test_Role] GO GRANT REFERENCES ON SCHEMA::[dbo] TO [test_Role] GO --ensure role membership is correct EXEC sp_addrolemember N'test_Role ', N'TestUser1' GO --allow users to create tables in test_Schema GRANT CREATE TABLE TO [test_Role] GO --Allow user to connect to database GRANT CONNECT TO [TestUser1] --===================================================
Projekt-ID: 6386205

Über das Projekt

10 Vorschläge
Remote Projekt
Aktiv vor 10 Jahren

Möchten Sie etwas Geld verdienen?

Vorteile einer Ausschreibung auf Freelancer

Legen Sie Ihr Budget und Ihren Zeitrahmen fest
Für Ihre Arbeit bezahlt werden
Skizzieren Sie Ihren Vorschlag
Sie können sich kostenlos anmelden und auf Aufträge bieten
Vergeben an:
Avatar des Nutzers
I have finished the query , in case you still need it , just let me know. Currently I am working at big financial organization in which I’am responsible for the MIS. I have designed and the Developed and administer the Organization’s Reporting Database which has been constructed with SQL Server 2008 R2. i can send you the script today until16:00 (UK Time)
$22 USD in 1 Tag
5,0 (76 Bewertungen)
6,3
6,3
10 Freelancer bieten im Durchschnitt $20 USD/Stunde für diesen Auftrag
Avatar des Nutzers
Hello Sir, Greeting for the day, Hope you are doing well. I am Working with Data Center Organization as a Linux and windows Expert, I have more than 8 years’ experience in Web hosting and migration, working on more than 1000 of Linux and Windows servers. I will do all mentioned task successfully and fast. Please let me know your time availability for this task.
$16 USD in 1 Tag
4,8 (43 Bewertungen)
6,2
6,2
Avatar des Nutzers
Hi, I have gone through your requirements and script,I am a DBA at CMMI-5 Level company since August 2010.I am working on MySql,SQL Server,Oracle database, I can do your job confidently. I am very much Interested to do your work,Please revert me if you have any concern .I am ready to start now.
$21 USD in 3 Tagen
3,9 (27 Bewertungen)
5,4
5,4
Avatar des Nutzers
Greetings! This is Hamza and I work as a IT consultant for several key accounts in my country (Morocco). I am a Microsoft Certified Professional in Implementing a Data Warehouse with SQL Server 2012. I have experience in both application development and Business Intelligence projects. I will be pleased to work with you on this project. Please feel free to start a discussion to talk about details. Thank you!
$16 USD in 1 Tag
0,0 (0 Bewertungen)
0,0
0,0
Avatar des Nutzers
Hello i am software development engineer and i am interested in your project i am able to do what do you want it and i have good experience in sql server 2008/2012 and i do this operation always in my jobs, i export the script from your sql server in sql scripts with users and data schema + structure just after finish, execute script via sql server managment thanks
$22 USD in 1 Tag
0,0 (0 Bewertungen)
0,0
0,0
Avatar des Nutzers
I have worked as a SQL data migrator for 8 months in a well known Services company. I'm able to write complex queries to access data using SQL from any database.
$15 USD in 1 Tag
0,0 (0 Bewertungen)
0,0
0,0
Avatar des Nutzers
A proposal has not yet been provided
$22 USD in 1 Tag
0,0 (0 Bewertungen)
0,0
0,0
Avatar des Nutzers
I allready rewrote your code so that it works on SQL Servers 2008 and 2012, so you can use parameters to configure it. I am an expert at sql server and sql, t-sql. I worked for more than 15 years with sql server throught my career and was member within the microsoft inner circle sql. If there is more on sql to do, i would like to show, that I am more than able to help. I just started new on this plattform, so actually no rating. best regards harald
$22 USD in 1 Tag
0,0 (0 Bewertungen)
0,0
0,0

Über den Kunden

Flagge von UNITED KINGDOM
Poole, United Kingdom
4,9
12
Zahlungsmethode verifiziert
Mitglied seit Aug. 10, 2006

Kundenüberprüfung

Danke! Wir haben Ihnen per E-Mail einen Link geschickt, über den Sie Ihr kostenloses Guthaben anfordern können.
Beim Senden Ihrer E-Mail ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.
Registrierte Benutzer Veröffentlichte Jobs
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Vorschau wird geladen
Erlaubnis zur Geolokalisierung erteilt.
Ihre Anmeldesitzung ist abgelaufen und Sie wurden abgemeldet. Bitte melden Sie sich erneut an.