Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms 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 22nd, 2005, 10:26 AM
Authorized User
 
Join Date: Jun 2005
Posts: 42
Thanks: 0
Thanked 1 Time in 1 Post
Default Executing an SQL View from ASP

Can some assist me with a sample code on how can I execute an SQL View from an ASP Form?

arnniema
__________________
arnniema
 
Old August 30th, 2005, 08:23 AM
Authorized User
 
Join Date: Sep 2004
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Something like this,

Code:
   Set adoCnn = CreateObject ("ADODB.Connection")
    adoCnn.ConnectionString = your connection string here.
    adoCnn.Open
    Set rs = CreateObject ("ADODB.Recordset")
    sSQL = "SELECT xxx FROM yourview"   
    rs.Open sSQL, adoCnn
 
Old August 31st, 2005, 01:16 PM
Authorized User
 
Join Date: Jun 2005
Posts: 42
Thanks: 0
Thanked 1 Time in 1 Post
Default

Thank you!!!

arnniema





Similar Threads
Thread Thread Starter Forum Replies Last Post
Executing an SQL query and using it's result Andrew.Berry ASP.NET 2.0 Professional 5 April 14th, 2008 08:25 AM
Trouble executing SQL statement turbo_rabbit ASP.NET 1.0 and 1.1 Basics 13 July 6th, 2005 01:31 PM
Trouble executing SQL statement turbo_rabbit Classic ASP Databases 6 July 6th, 2005 01:30 PM
executing sql command redface Crystal Reports 0 April 6th, 2005 05:14 PM





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