I am trying to access SQL Server via an ASP page using a Trusted Connection,
but it is not working. When I run the page I receive the following error
message:
Microsoft OLE DB Service Components error '80040e21'
Multiple-step OLE DB operation generated errors. Check each OLE DB status
value, if available. No work was done.
line 35
My connection string is in a separate file: cst = "data
source=X099789\Widgets;Initial Catalog=Automotive; Integrated Security=SSPI;
"
My code snipet looks like the following:
set OBJRST = Server.CreateObject("ADODB.Recordset")
Set objComm = Server.CreateObject("ADODB.Command")
objComm.ActiveConnection = cst '****LIne 35
MotorsSQL = "usp_MotorAll"
UIPWSQL = "usp_UIPW '" & struserid &"', '"& strpassword &"';"
objConnAll.open cst
What is the correct coding to connect to the SQL Server using Windows
Authentication in an ASP page?
I have read the instructions on:
http://support.microsoft.com/default.aspx/kb/247931, made the changes,
however the page still will not work.
Kindly assist. I will be thankful.
AuntieAuntieAuntie> Microsoft OLE DB Service Components error '80040e21'
> Multiple-step OLE DB operation generated errors. Check each OLE DB status
> value, if available. No work was done.
These errors are probably because there is no 'Provider' keyword in your
OLEDB connection string. Try adding 'Provider=SQLOLEDB'.
Hope this helps.
Dan Guzman
SQL Server MVP
"AuntieAuntieAuntie" <AuntieAuntieAuntie@.discussions.microsoft.com> wrote in
message news:EE4C5259-1F64-4893-9AF1-657A1C03917B@.microsoft.com...
>I am trying to access SQL Server via an ASP page using a Trusted
>Connection,
> but it is not working. When I run the page I receive the following error
> message:
> Microsoft OLE DB Service Components error '80040e21'
> Multiple-step OLE DB operation generated errors. Check each OLE DB status
> value, if available. No work was done.
> line 35
> My connection string is in a separate file: cst = "data
> source=X099789\Widgets;Initial Catalog=Automotive; Integrated
> Security=SSPI;"
> My code snipet looks like the following:
> set OBJRST = Server.CreateObject("ADODB.Recordset")
> Set objComm = Server.CreateObject("ADODB.Command")
> objComm.ActiveConnection = cst '****LIne 35
> MotorsSQL = "usp_MotorAll"
> UIPWSQL = "usp_UIPW '" & struserid &"', '"& strpassword &"';"
> objConnAll.open cst
> What is the correct coding to connect to the SQL Server using Windows
> Authentication in an ASP page?
> I have read the instructions on:
> http://support.microsoft.com/default.aspx/kb/247931, made the changes,
> however the page still will not work.
> Kindly assist. I will be thankful.
> AuntieAuntieAuntie
>
Showing posts with label receive. Show all posts
Showing posts with label receive. Show all posts
Thursday, March 22, 2012
Tuesday, March 20, 2012
authentication error Please help...
the isue is Report Builder, when i am deploy the progect is work fine and i
receive "Deploy Succeeded", but when i am trying to click on he report
builder i received "authentication error"...I got the same problem when deploy my report in website. I can not view my
report in site. When I talk to admin, he gave me access as content manager,
so i can view my report. you might need to have access to see the report. I
hope this might help you.
Thanks,
Ramana
"ud" wrote:
> the isue is Report Builder, when i am deploy the progect is work fine and i
> receive "Deploy Succeeded", but when i am trying to click on he report
> builder i received "authentication error"...
receive "Deploy Succeeded", but when i am trying to click on he report
builder i received "authentication error"...I got the same problem when deploy my report in website. I can not view my
report in site. When I talk to admin, he gave me access as content manager,
so i can view my report. you might need to have access to see the report. I
hope this might help you.
Thanks,
Ramana
"ud" wrote:
> the isue is Report Builder, when i am deploy the progect is work fine and i
> receive "Deploy Succeeded", but when i am trying to click on he report
> builder i received "authentication error"...
Subscribe to:
Posts (Atom)