Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Wrox Announcements and Feedback > Wrox Book Feedback
|
Wrox Book Feedback A forum to submit feedback on Wrox books if other forums on P2P have been unable to address your book-specific needs. IF YOU ARE LOOKING FOR CODE DO NOT ASK "Where can I find the code for this book?" That question is answered here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Wrox Book Feedback 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
  #1 (permalink)  
Old August 24th, 2003, 02:25 PM
Registered User
 
Join Date: Aug 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default ADO connection using password values

'I'm posting my password values from my form page to my connection_asp page but my values seem not to be passing through correctly to my connection_asp page to Open my db.
'It must be that I need my parameters for my ADO object edited in my connection_asp page but to what?

==================================================
'A) form parameters:
==================================================
[]
--------------------------------------------------
'a) - II form parameters:..
--------------------------------------------------

[sConn = Application("Conn.ConnectionString") & ";User Id=" & Request.Form("UserName") & ";PASSWORD=" & Request.Form("UserPwd") & ";"

        Conn.Open sConn
        If Conn.State = adStateOpen Then]

====================
'B) CONNECTION_PAGE:
==================================================

[Dim Conn
'Check to see if our Connection already exists if it does, don't do anything
If Not isObject(Conn) Then
    'If it doesn't set out variable to type ADO Connection Object
    Set Conn = Server.CreateObject("ADODB.Connection")
    With Conn
          "Server; Catalog; UserName; Password;"
        .ConnectionTimeout = 15
        .CommandTimeout = 30
        .CursorLocation = 3
        .Open Application("Conn_ConnectionString")
    End With]
--------------------------------------------------

'If somebody could help me with the proper syntax, I would greatly appreciate it.

GLCGLC



Reply With Quote
  #2 (permalink)  
Old August 25th, 2003, 10:53 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Please read the sticky message in this forum at http://p2p.wrox.com/topic.asp?TOPIC_ID=1378

Hal Levy
Unemployed (Thanks GWB)
NOT a Wiley/Wrox Employee
Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
Using DAO and ADO within ADODB.connection faridrd Access VBA 0 January 8th, 2008 10:43 PM
Exclusive ADO Connection bsa Pro VB Databases 1 September 6th, 2004 07:16 AM
Exclusive ADO Connection bsa SQL Server 2000 2 August 24th, 2004 12:10 AM
ADO Connection Crashes IIS byron Pro VB Databases 0 July 29th, 2004 10:46 AM
ADO Connection String jmss66 Classic ASP Basics 3 February 3rd, 2004 12:10 PM





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