Re: Script A Login
- From: "Uri Dimant" <urid@xxxxxxxxxxx>
- Date: Sun, 14 Oct 2007 08:55:56 +0200
Hi
http://dimantdatabasesolutions.blogspot.com/2007/04/sql-or-windows-authentication.html
"Phil" <Phil@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:313F8DB1-3495-4050-9CA7-714255738EB9@xxxxxxxxxxxxxxxx
Hi.
I am crrently running SQL Server 2005, I have an Excel VBA application
that
exacutes a number of stored procedures against the database, this database
is
restored every evening so needs a login created on it every time the
restore
job runs. I believe the script should look a little like this for
creating a
Login and User
USE [Database]
CREATE LOGIN ExcelKPI WITH password='ExcelKPI',
Default_Database = [Database]
CREATE USER ExcelKPI FOR LOGIN ExcelKPI
WITH DEFAULT_SCHEMA=dbo_owner
And then I need to Grant necessary permissions, e.g. Insert & Update
It runs fine and creates the logins but still doesn't work, I have to then
go to the main security tab and give the login Sysadmin rights to get it
to
work which I am sure shouldn't be necessary, I am probably just not
setting
it up correctly.
Could anyone offer some advice.
Thanks P
.
- Prev by Date: Re: Fixed Database roles do not appear for database tables Permissions
- Next by Date: SQL Server 2005, HIPAA and File Encryption
- Previous by thread: Re: Script A Login
- Next by thread: Re: Script A Login
- Index(es):
Relevant Pages
|
|