Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 13th, 2006, 02:23 PM
Authorized User
 
Join Date: Aug 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to alirezaaali
Default error in asp page

Hi
I`ve installed SQl server 2000 and try to use a database in asp with this connection string :

SET objConn=Server.CreateObject("ADODB.Connection")
conStr="Provider=SQLOLEDB;data Source=(local);Initial catalog=testdb;user ID=alireza;Password=12345;"
objConn.open conStr
name=REQUEST.FORM("name")
MAIL=REQUEST.FORM("MAIL")
COMMENT=REQUEST.FORM("COMMENT")
STRSQL="INSERT INTO CONTACT (NAME,E_MAIL,COMMENT) VALUES('"&name&"','"&MAIL&"','"&COMMENT&"')"
SET RS=objConn.EXECUTE(STRSQL)



but when i run this
i got the error :

Microsoft OLE DB Provider for SQL Server (0x80004005)
Login failed for user 'alireza'. Reason: Not associated with a trusted SQL Server connection.
/irinventory1/CONTACT.asp, line 3

so please help me on this
thansk

__________________
I Really Love to learn ASP
 
Old August 13th, 2006, 03:07 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Cross-post of http://p2p.wrox.com/topic.asp?TOPIC_ID=48295

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
 
Old August 17th, 2006, 12:18 AM
Authorized User
 
Join Date: Aug 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to alirezaaali
Default

HI
thanks alot teh problem solved
and special thanks for the smart question page i love it







Similar Threads
Thread Thread Starter Forum Replies Last Post
error displaying asp page tanca Classic ASP Basics 5 November 28th, 2007 02:29 AM
ASP Page Error **NEED HELP** APD189 Classic ASP Databases 0 January 10th, 2006 07:25 PM
Asp page error hamed8esi Classic ASP Databases 2 March 8th, 2004 11:42 AM
Why my asp page error tamgo Classic ASP Databases 1 June 30th, 2003 03:32 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.