Re: Add new users to SQL Server mdf
- From: "Willy Denoyette [MVP]" <willy.denoyette@xxxxxxxxxx>
- Date: Sun, 25 Mar 2007 10:32:29 +0200
"weird0" <amirediwan@xxxxxxxxx> wrote in message news:1174760383.999458.112800@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
How can i add new users to the sql server mdf. Since, when i try to
access the mdf it gives me
the following error under the setting "Windows Authentication":
" Could not open default database.Login failed for user AMIRDIWAN
\Administrator"
Alternatively, i tried the other way by keeping "SQL SERVER
Authentication":
" Login failed for user 'amirdiwan'.The user is not associated with a
trusted SQL Server connection."
How can i fix this. Please let me know, as i have to do it for my
final year project?
SQL server logins aren't "Windows logins", so if you are using Windows authentication (integrated security) you'll have to create windows accounts, when using SQL logins you have to create SQL accounts. Note that you can also confifigure SQL server to use both SQL and WIndows authentication, in which case you can use a mix of both.
Willy.
.
- References:
- Add new users to SQL Server mdf
- From: weird0
- Add new users to SQL Server mdf
- Prev by Date: Re: Working with a VB COM Component
- Next by Date: Re: kill process in .net
- Previous by thread: Re: Add new users to SQL Server mdf
- Next by thread: Windows Form DataGrid Contol, Cell text color problem
- Index(es):
Relevant Pages
|