I have a table called "Daily" (Daily data) that looks like this:
DateStamp KWH
11/6/2005 1867
11/7/2005 2001
11/8/2005 2023
.
.
A second table called "15_min" (15 minute data) looks like this:
[DateTime] KW
11/8/2005 00:00 am 201
11/8/2005 00:15 am 198
...
I have this code that displays the results of a select query:
<%@ LANGUAGE="VBSCRIPT" %>
<% Option Explicit%>
<HTML>
<body>
<%
' Open Database connection
'***********************************************
DIM objConn, dbname, data_source
Set objConn = Server.CreateObject("ADODB.Connection")...
I have some ASP code that looks like this:
objRs.Open "Execute Proc1 " & strTableName & ", " & strColumn , objConn
The Stored procedure "Proc1" looks like this:
CREATE PROCEDURE [Proc1]
@strTable varchar(50),
@strColumn varchar(50)
AS
Exec('SELECT ' + @strColumn + ' FROM ' + @strtable + '...
How can I pass DateTime Paramter to stored procedure from within an ASP page? Can you give me an example - or maybe point me to a link where this is explained?
Thanks
I have an ASP page with this code:
strTable = "table1"
oRsSubs.Open "Execute sp_Proc " & strTable, conn
The stored procedure in SQL looks like this:
CREATE PROCEDURE sp_Proc ( @strTable varchar(50) )
AS
EXEC('SELECT * FROM ' + @strTable)
This work fine. I am trying however to add some...
I have an ASP page that contains a database table name as a string variable, i.e "strTableName".
I need to pass this string form the ASP page to a SQL stored procedure. The sp will execute something like:
select * from @strTableName
The results will be retured to the ASP in a record Set.
How...
I have a SQL View called "KWH_Daily", and it’s driven by a 15 minutes table called "KW_15min"
The 15-min table has data in 15-min intervals, i.e.:
[DateTime] KW
9/13/2005 11:00 am 300
9/13/2005 11:15 am 304
9/13/2005 11:30 am 298
The Daily View (KWH_Daily) is constructed by using the...
I have an ASP page called "sample.asp" that has two forms. The first form (form1) has a dropdown list box and a submit button. When selecttion is made and the submit is clicked ,tha user selection is passed to the same page (sample.asp).
I am using:
<form name="form1" method="post"...
I want to have multiple frames within a single ASP/HTML page.
The idea is that one frame will have a drop down menu and a submit button. When the submit button is clicked, the second frame should display. The second frame will have the dynamic content based on the selection that was made in the...
I want to have multiple frames within a single ASP/HTML page.
The idea is that one frame will have a drop down menu and a submit button. When the submit button is clicked, the second frame should display. The second frame will have the dynamic content based on the selection that was made in the...
I have T-SQL query,in which I do a calculation as follows:
SELECT CONVERT(int,
Volts * Amps * 0.001732 * PF / 100)
AS KW
FROM Elec_Table
I want the query to check if the number calculated (KW) is higher that say 1000, then to produce a null or zero.
How do I do this?
Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.