Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Go Back   Code Forums > Application and Web Development > Everything SQL ( MySQL, MSSQL, DB2, Postgre, Oracle, etc...)
User Name
Password

Reply
 
LinkBack Thread Tools Display Modes
Old 08-20-2007, 10:06 AM   #1 (permalink)
pana
Recruit
 
Join Date: Aug 2007
Posts: 2
pana is on a distinguished road
Permission denied: 'dbConn'

I have been trying to install an ASP ticketing system written in ASP and using SQL Express Database.

All database tables are configured, however, when I attempt to log in I get the following error.

Active Server Pages error '00000000'

Create object failed

?

An error occurred while creating object 'dbConn'.

Microsoft VBScript runtime error '800a0046'

Permission denied: 'dbConn'

/helpCentricLoginConfirm.asp, line 49
__________________
pana is offline   Reply With Quote
Old 08-20-2007, 01:24 PM   #2 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,114
Belisarius is on a distinguished road
Just out of curiosity (I don't work with ASPs, but I do work with PHP and JSPs), are you sure you're passing the correct username and password to the database?
__________________
GitS
Belisarius is offline   Reply With Quote
Old 08-20-2007, 01:43 PM   #3 (permalink)
pana
Recruit
 
Join Date: Aug 2007
Posts: 2
pana is on a distinguished road
Yes, Initially I thought the same thing because of the Error "Permission Denied"

But I have checked the Connection string, and the username/Password in the SQL server. By using MS SQL server Studio and logged in with the same username/password.

I think it maybe having problems acctually using the connection string "dbconn"
My sting is
Code:
Application("shs1sql_ConnectionString") = "PROVIDER=SQLOLEDB;Database=help;SERVER=server-HQ\SQLEXPRESS;PASSWORD=mypass;UID=support;User Id=support;"
This code is in global.asa file in teh root dir.

it is called by a script like the one below
Code:
'##### validate the account and password connectStr = Application("shs1sql_ConnectionString") dbConn.Open connectStr spHC_adminLoginValidate.CommandText = "spHC_adminLoginValidate" spHC_adminLoginValidate.CommandType = 4 spHC_adminLoginValidate.CommandTimeout = 30 spHC_adminLoginValidate.ActiveConnection = dbConn spHC_adminLoginValidate.Parameters.Append spHC_adminLoginValidate.CreateParameter("RETURN_VALUE" ,3 ,&H0004) spHC_adminLoginValidate.Parameters.Append spHC_adminLoginValidate.CreateParameter("@account",adVarChar,&H0001,50,erpAccount) spHC_adminLoginValidate.Parameters.Append spHC_adminLoginValidate.CreateParameter("@password",adVarChar,&H0001,50,erpPassword)
__________________
pana is offline   Reply With Quote
Old 08-20-2007, 02:55 PM   #4 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,114
Belisarius is on a distinguished road
Good grief, I had forgotten just how convoluted Microsoft API code was.

I'm sorry, but I don't think I'm going to be much help - this is too different from what I've done in other languages.
__________________
GitS
Belisarius is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
changing file permission salmanjoo PHP 7 08-23-2005 12:32 PM
Access denied for user: '@192.168.0.71' (Using password: NO) infinite_root PHP 11 04-28-2004 05:30 PM
Permission Issues, Filesize() Ect JeC PHP 1 06-11-2003 09:34 PM


All times are GMT -8. The time now is 07:50 AM.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2006, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
Open Circle