Re: Cannot open database requested in login
From: Paul (paul@themedialounge.com)
Date: 12/16/02
- Next message: Jobi: "Re: Cannot open database requested in login"
- Previous message: Dejan Sarka: "Re: Cannot open database requested in login"
- In reply to: Dejan Sarka: "Re: Cannot open database requested in login"
- Next in thread: Murali: "Re: Cannot open database requested in login"
- Reply: Murali: "Re: Cannot open database requested in login"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Paul" <paul@themedialounge.com> Date: Mon, 16 Dec 2002 12:11:31 -0000
DELL\VSdotNET is a Login and has been given permission to access the
database ITPSCustomers.
Within the Database node for ITPSCustomers database DELL\VSdotNET has been
added as a user and has been given all permisions to the tables and views
within the database.
I still get the same problem/error message.
I must be doing something wrong but I have no idea what.
"Dejan Sarka" <dejan_please_reply_to_newsgroups.sarka@reproms.si> wrote in
message news:eGJk9cPpCHA.1948@TK2MSFTNGP10...
> Paul,
>
> The Windows user you are using to login to SQL Server does not have access
> to the ITPSCustomers database - it is not mapped to a database user. Do
> please check the sp_grantdbaccess system SP in Books OnLine. Don't forget
> the permissions on objects as well - if you create a new database user,
it
> won't have any by default.
>
> --
> Dejan Sarka, SQL Server MVP
> FAQ from Neil & others at: http://www.sqlserverfaq.com
> Please reply only to the newsgroups.
> PASS - the definitive, global community
> for SQL Server professionals - http://www.sqlpass.org
>
> "Paul" <paul@themedialounge.com> wrote in message
> news:Om4V1JPpCHA.2360@TK2MaSFTNGP09...
> > I have used the following string to succesfully connect to my SQL Server
> > database :
> >
> > "Provider=SQLOLEDB.1;
> > Password=monkey;
> > Persist Security Info=True;
> > User ID=VSdotNET;
> > Initial Catalog=ITPSCustomers;
> > Data Source=DELL\VSdotNET"
> >
> > The problem is that I do not want SQL Server authentication so I opened
up
> > SQL Server, removed the login VBdotNET, added it again and changed the
> user
> > authentication to Windows. I then changed the connection string to :
> >
> > "Provider=SQLOLEDB.1;
> > Integrated Security=SSPI;
> > Persist Security Info=False;
> > Initial Catalog=ITPSCustomers;
> > Data Source=DELL\VSdotNET"
> >
> > When I now run my web page I get the errors :
> >
> > System.Data.OleDb.OleDbException: Cannot open database requested in
login
> > 'ITPSCustomers'. Login fails.
> > at System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr)
> > at System.Data.OleDb.OleDbConnection.InitializeProvider()
> > at System.Data.OleDb.OleDbConnection.Open()
> > at DreamweaverCtrls.DataSet.DoInit() System.Exception:
> > The DefaultView was requested but no tables yet exist.
> > at DreamweaverCtrls.DataSet.get_DefaultView()
> >
> > Can anyone help me out.
> >
> >
>
>
- Next message: Jobi: "Re: Cannot open database requested in login"
- Previous message: Dejan Sarka: "Re: Cannot open database requested in login"
- In reply to: Dejan Sarka: "Re: Cannot open database requested in login"
- Next in thread: Murali: "Re: Cannot open database requested in login"
- Reply: Murali: "Re: Cannot open database requested in login"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|