I am just wondering what this username & password refer to ? I tried with
the logon credentials when I started the computer but it doesn't work.
--
Message posted via http://www.dotnetmonster.com
Hope it helps
Patrick
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
If instead you want to use a different set of credentials to authenticate
with the database, then omit trusted_connection=yes and instead use "user
id=joe;password=somepassword". This will now authenticate using that database
account (not using a windows account).
Which option you choose depends upon how you and your DBA work things out.
As for storing secrets (passwords) it's better to go with the windows authentication
to the database using trusted_connection, but this might mean you'll need
to change what user the ASP.NET worker process runs as.
-Brock
DevelopMentor
http://staff.develop.com/ballen
http://www.dnzone.com/ShowDetail.asp?NewsId=504
--
Manohar Kamath
Editor, .netWire
www.dotnetwire.com
"Kim Chi via DotNetMonster.com" <fo...@DotNetMonster.com> wrote in message
news:65e894c98cd0449e...@DotNetMonster.com...
I've tried to supply/not supply a username and password at the SQL server
login but both methods could not work. I did not create a username and
password during the upsizing process although I specified a password during
installtion of the MSDE2000. I even uncheck the anonymous user option under
the IIS->Directory Seucrity but that did not help either.
What else can I do ?
If I want to try using a username and password, how should I create
them since my database is already upsized into the server explorer ?
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
-Brock
DevelopMentor
http://staff.develop.com/ballen
Error: no user selected. Try with -U or -E switches.
exec sp_grantlogin N'THOR\ASPNET'
exec sp_defaultdb N'THOR\ASPNET', N'pubs'
use pubs
exec sp_grantdbaccess N'THOR\ASPNET', N'ASPNET'
exec sp_addrolemember N'db_owner', N'ASPNET'
Replace THOR with your machine name and replace pubs with your database name.
One note is that this SQL adds ASPNET as dbo, so the ASPNET user has total
control over that DB. This is the fastest way to get it working, but I'd
suggest doing some research on SqlServer DB security to know how to scale
back the permissions for this user.
-Brock
DevelopMentor
http://staff.develop.com/ballen