Ask a Question related to ASP.NET General, Design and Development.
-
Daniel Bass #1
ASP.NET database won't connect...
I setup a asp.net project running on [url]http://localhost/[/url] which connects to a
database on another server running sqlserver...
I was able to connect to the database and create my application no problem.
The sqlserver database server had windows 2000 without any SP's or updates.
This was no problem and even though the OS hadn't the .net framework
installed, everything worked fine.
the requirements for that sqlserver database server have since changed, and
windows update was visited to get all the updates, including the latest SP's
as well as the .net framework. I also installed the remote only debugging
for VS.net on this server so that I'm also able to use this as a IIS
server...
Anyway, back to my problem, since these updates the asp.net application i
run from my machine, whcih connects to this database server, has stopped
working with error "SQL Server does not exist or access denied" on the line
where the .Open() is called on the ADO.net database connection object.
Any ideas???
Daniel Bass Guest
-
cant connect to sql database
i am using server2003 with iis6 cf 7.0.1 and sql server 2005 this is the error retun i get in my cf admin Connection verification failed for... -
how to connect to a database using asp
I am now beginning to work with ASP and SQL server, on IIS. Having worked with PHP and MySQL on Apache I am familiar with how all 3 should be set up... -
How to use “RDS.Connect” to connect to a MS Access database?
The example I am working from uses the following code which does not work: RDS.Connect = "Provider='sqloledb';Integrated Security='SSPI';Initial ... -
How can I connect this database?
One of my friend has a program written with delphi and which has an interface to add some data. The program use sybase to add data values to the... -
connect to database
hi, i have db2 server installed and attach a remote database, i want to open the command window , then i do connect to xx user xxx, i fill in the... -
Ken Cox [Microsoft MVP] #2
Re: ASP.NET database won't connect...
It sounds like one of the updates tightened the security on your SQL database.
You'll want to verify that the account you are using for the data still has
sufficient rights.
Is it possible that the sa account or its password was changed?
"Daniel Bass" <danielbassNOJUNK@MAILpostmaster.co.uk> wrote in message
news:eO9GBgBXDHA.2200@TK2MSFTNGP09.phx.gbl...
I setup a asp.net project running on [url]http://localhost/[/url] which connects to a
database on another server running sqlserver...
I was able to connect to the database and create my application no problem.
The sqlserver database server had windows 2000 without any SP's or updates.
This was no problem and even though the OS hadn't the .net framework
installed, everything worked fine.
the requirements for that sqlserver database server have since changed, and
windows update was visited to get all the updates, including the latest SP's
as well as the .net framework. I also installed the remote only debugging
for VS.net on this server so that I'm also able to use this as a IIS
server...
Anyway, back to my problem, since these updates the asp.net application i
run from my machine, whcih connects to this database server, has stopped
working with error "SQL Server does not exist or access denied" on the line
where the .Open() is called on the ADO.net database connection object.
Any ideas???
Ken Cox [Microsoft MVP] Guest
-
Daniel Bass #3
Re: ASP.NET database won't connect...
The strange thing is that when i connect to it via the server explorer it
still works, and I'm able to view tables, edit data etc etc...
If i delete my connection, recreate it and rename it, I get the same result.
If I connect to the database via classic ASP, it works fine...
I've checked the sa login but appears it's still okay.
"Ken Cox [Microsoft MVP]" <BANSPAMken_cox@sympatico.ca> wrote in message
news:ODWGphBXDHA.652@TK2MSFTNGP10.phx.gbl...database.> It sounds like one of the updates tightened the security on your SQLhas> You'll want to verify that the account you are using for the data stillproblem.> sufficient rights.
>
> Is it possible that the sa account or its password was changed?
>
> "Daniel Bass" <danielbassNOJUNK@MAILpostmaster.co.uk> wrote in message
> news:eO9GBgBXDHA.2200@TK2MSFTNGP09.phx.gbl...
> I setup a asp.net project running on [url]http://localhost/[/url] which connects to a
> database on another server running sqlserver...
>
> I was able to connect to the database and create my application noupdates.>
> The sqlserver database server had windows 2000 without any SP's orand> This was no problem and even though the OS hadn't the .net framework
> installed, everything worked fine.
>
> the requirements for that sqlserver database server have since changed,SP's> windows update was visited to get all the updates, including the latestline> as well as the .net framework. I also installed the remote only debugging
> for VS.net on this server so that I'm also able to use this as a IIS
> server...
>
> Anyway, back to my problem, since these updates the asp.net application i
> run from my machine, whcih connects to this database server, has stopped
> working with error "SQL Server does not exist or access denied" on the> where the .Open() is called on the ADO.net database connection object.
>
> Any ideas???
>
>
>
Daniel Bass Guest
-
Benny Tordrup #4
Re: ASP.NET database won't connect...
Daniel,
What does your connection string look like?
Benny Tordrup
"Daniel Bass" <danielbassNOJUNK@MAILpostmaster.co.uk> skrev i en meddelelse
news:eO9GBgBXDHA.2200@TK2MSFTNGP09.phx.gbl...problem.> I setup a asp.net project running on [url]http://localhost/[/url] which connects to a
> database on another server running sqlserver...
>
> I was able to connect to the database and create my application noupdates.>
> The sqlserver database server had windows 2000 without any SP's orand> This was no problem and even though the OS hadn't the .net framework
> installed, everything worked fine.
>
> the requirements for that sqlserver database server have since changed,SP's> windows update was visited to get all the updates, including the latestline> as well as the .net framework. I also installed the remote only debugging
> for VS.net on this server so that I'm also able to use this as a IIS
> server...
>
> Anyway, back to my problem, since these updates the asp.net application i
> run from my machine, whcih connects to this database server, has stopped
> working with error "SQL Server does not exist or access denied" on the> where the .Open() is called on the ADO.net database connection object.
>
> Any ideas???
>
>
Benny Tordrup Guest
-
Daniel Bass #5
Re: ASP.NET database won't connect...
Does this mean i have to set up an "asp.net" account?
I've not seen any place to do this, how is it done?
thanks.
Dan
"Kevin Spencer" <kevin@takempis.com> wrote in message
news:%23vq9tMCXDHA.2484@TK2MSFTNGP09.phx.gbl...it> Your server explorer runs under a different account than ASP.Net.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> .Net Developer
> [url]http://www.takempis.com[/url]
> Complex things are made up of
> lots of simple things.
>
> "Daniel Bass" <danielbassNOJUNK@MAILpostmaster.co.uk> wrote in message
> news:u6frlmBXDHA.3444@tk2msftngp13.phx.gbl...> > The strange thing is that when i connect to it via the server explorerstill> result.> > still works, and I'm able to view tables, edit data etc etc...
> >
> > If i delete my connection, recreate it and rename it, I get the same> > If I connect to the database via classic ASP, it works fine...
> >
> > I've checked the sa login but appears it's still okay.
> >
> >
> >
> > "Ken Cox [Microsoft MVP]" <BANSPAMken_cox@sympatico.ca> wrote in message
> > news:ODWGphBXDHA.652@TK2MSFTNGP10.phx.gbl...> > database.> > > It sounds like one of the updates tightened the security on your SQL> > > You'll want to verify that the account you are using for the datato> > has> > > sufficient rights.
> > >
> > > Is it possible that the sa account or its password was changed?
> > >
> > > "Daniel Bass" <danielbassNOJUNK@MAILpostmaster.co.uk> wrote in message
> > > news:eO9GBgBXDHA.2200@TK2MSFTNGP09.phx.gbl...
> > > I setup a asp.net project running on [url]http://localhost/[/url] which connectschanged,> a> > problem.> > > database on another server running sqlserver...
> > >
> > > I was able to connect to the database and create my application no> > updates.> > >
> > > The sqlserver database server had windows 2000 without any SP's or> > > This was no problem and even though the OS hadn't the .net framework
> > > installed, everything worked fine.
> > >
> > > the requirements for that sqlserver database server have sincelatest> > and> > > windows update was visited to get all the updates, including theapplication> debugging> > SP's> > > as well as the .net framework. I also installed the remote only> > > for VS.net on this server so that I'm also able to use this as a IIS
> > > server...
> > >
> > > Anyway, back to my problem, since these updates the asp.netstopped> i> > > run from my machine, whcih connects to this database server, has>> > line> > > working with error "SQL Server does not exist or access denied" on the> >> > > where the .Open() is called on the ADO.net database connection object.
> > >
> > > Any ideas???
> > >
> > >
> > >
> >
>
Daniel Bass Guest
-
Benny Tordrup #6
Re: ASP.NET database won't connect...
Daniel,
Apply the following commands in Query Analyzer (replace <ComputerName> with
the name of the SQL Server Computer and <DatabaseName> with the name of the
database that ASP.NET needs access to:
<SQL>
Exec sp_grantlogin '<ComputerName>\ASPNET'
go
use [<DatabaseName>]
go
EXEC sp_grantdbaccess '<ComputerName>\ASPNET'
go
exec sp_addrolemember @rolename='db_owner', @membername=
'<ComputerName>\ASPNET'
go
</SQL>
Best regards,
Benny Tordrup
"Daniel Bass" <danielbassNOJUNK@MAILpostmaster.co.uk> skrev i en meddelelse
news:uIQz4oCXDHA.2444@tk2msftngp13.phx.gbl...message> Does this mean i have to set up an "asp.net" account?
>
> I've not seen any place to do this, how is it done?
>
> thanks.
> Dan
>
>
> "Kevin Spencer" <kevin@takempis.com> wrote in message
> news:%23vq9tMCXDHA.2484@TK2MSFTNGP09.phx.gbl...> it> > Your server explorer runs under a different account than ASP.Net.
> >
> > --
> > HTH,
> >
> > Kevin Spencer
> > Microsoft MVP
> > .Net Developer
> > [url]http://www.takempis.com[/url]
> > Complex things are made up of
> > lots of simple things.
> >
> > "Daniel Bass" <danielbassNOJUNK@MAILpostmaster.co.uk> wrote in message
> > news:u6frlmBXDHA.3444@tk2msftngp13.phx.gbl...> > > The strange thing is that when i connect to it via the server explorer> > result.> > > still works, and I'm able to view tables, edit data etc etc...
> > >
> > > If i delete my connection, recreate it and rename it, I get the same> > > If I connect to the database via classic ASP, it works fine...
> > >
> > > I've checked the sa login but appears it's still okay.
> > >
> > >
> > >
> > > "Ken Cox [Microsoft MVP]" <BANSPAMken_cox@sympatico.ca> wrote inmessage> still> > > news:ODWGphBXDHA.652@TK2MSFTNGP10.phx.gbl...
> > > > It sounds like one of the updates tightened the security on your SQL
> > > database.
> > > > You'll want to verify that the account you are using for the data> > > has
> > > > sufficient rights.
> > > >
> > > > Is it possible that the sa account or its password was changed?
> > > >
> > > > "Daniel Bass" <danielbassNOJUNK@MAILpostmaster.co.uk> wrote inconnects> > > > news:eO9GBgBXDHA.2200@TK2MSFTNGP09.phx.gbl...
> > > > I setup a asp.net project running on [url]http://localhost/[/url] whichthe> to> changed,> > a> > > > database on another server running sqlserver...
> > > >
> > > > I was able to connect to the database and create my application no
> > > problem.
> > > >
> > > > The sqlserver database server had windows 2000 without any SP's or
> > > updates.
> > > > This was no problem and even though the OS hadn't the .net framework
> > > > installed, everything worked fine.
> > > >
> > > > the requirements for that sqlserver database server have since> latest> > > and
> > > > windows update was visited to get all the updates, including the> application> > debugging> > > SP's
> > > > as well as the .net framework. I also installed the remote only> > > > for VS.net on this server so that I'm also able to use this as a IIS
> > > > server...
> > > >
> > > > Anyway, back to my problem, since these updates the asp.net> stopped> > i> > > > run from my machine, whcih connects to this database server, has> > > > working with error "SQL Server does not exist or access denied" onobject.> > > line
> > > > where the .Open() is called on the ADO.net database connection>> >> > > >
> > > > Any ideas???
> > > >
> > > >
> > > >
> > >
> > >
> >
>
Benny Tordrup Guest



Reply With Quote

