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 October 19th, 2004, 04:34 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 119
Thanks: 0
Thanked 0 Times in 0 Posts
Default When can i Use SQL statement in SQL

Hello Jason, Concatatanation error. Please fix it.
 strUpdate = "update tblCustRate set dtRateFrom =" &ndateFrom&
                "dtRateTo = " &ndateUntil&
                "decHourlyRate=" &nHourlyRate

I have a question I am using this Update in ASP. Can I use this query in SQL. If I want to use this query in SQL how will I use it? Can I write inSQL same as store procedure? If Yes please write it so that I can pass in ASP. I was wondering when can we use sql statements directly in SQL and when
can we use them in ASP. Just like above example, I am using in ASP. Is there any rule to to use
SQL statements in ASP or directly.


 
Old October 19th, 2004, 05:05 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Not sure what your requirement is. Is that you wanted to know how to execute this from your ASP page? or you want to know how to construct the query and run that in SQL query analyser?

_________________________
- Vijay G
Strive for Perfection
 
Old October 19th, 2004, 08:16 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 119
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yes, I want to know how to construct the query in and run that in SQL query analyser. My main question is that is upon the programmers will he or she can write the SQL in ASP or in SQL analyser. Writing in ASP means we donot need to call it from SQL, but if we write in SQL analzer we need to call from SQL to ASP.

 
Old October 20th, 2004, 09:10 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Not sure what you are trying to achieve. I hope the answer to your other post should clarify your doubt on this.

_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with SQL Statement forumsUID SQL Server 2000 1 August 23rd, 2007 08:08 AM
convert a SQL Statement from MS Access to a SQL Corey Access 6 March 28th, 2007 12:33 PM
SQL Statement??? carswelljr SQL Server 2000 2 August 25th, 2006 12:40 PM
SQL Statement SAMBUSA SQL Language 2 December 1st, 2004 11:10 AM
sql statement [email protected] Beginning VB 6 2 June 23rd, 2003 04:28 PM





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