Ik heb de volgende query waarvan ik de resultaten in een tabel weergegeven wil hebben maar ik loop helemaal vast en kom gene stap veredr... zou iemand mij hier willen helpen.. ik krijg wel connectie met de DB..
------------------
Query
------------------
select anr as Telefoonnummers, sum (duration / 3600) as Uren
from dbo.TELEDISCOUNT_CALL_IN
where country = 'NL' and
DATETIME between '2002-01-01 00:00:00.000' and '2003-01-01 00:00:00.000'
group by anr having sum(duration) >= 360000;
------------------
ASP code
------------------
<%@ Language=VBScript %>
<%
if Request("clientnr") <> "" then
Session("clientnr") = Request("clientnr")
elseif Session("clientnr") = "" then
Session("clientnr") = "111,114,222,333,888"
end if
Set oSQL = Server.CreateObject("ADODB.Connection")
oSQL.CursorLocation = 3 'client
oSQL.ConnectionTimeout = 60
oSQL.CommandTimeout = 600
oSQL.Open "Provider=SQLOLEDB.1;SERVER=31.71.1.201;DATABASE=TELEDISCOUNT;UID=nick;PWD=welkom"
set rsUpdate = oSQL.Execute("SELECT MAX(DATETIME) FROM CS_CALL")
query = "select anr as Telefoonnummers, sum (duration / 3600) as Uren " & _
" from dbo.TELEDISCOUNT_CALL_IN " & _
" where country = 'NL' and " & _
" DATETIME between '2002-01-01 00:00:00.000' and '2003-01-01 00:00:00.000' " & _
" group by anr having sum(duration) >= 360000; " & _
%>
Alvast bedankt
------------------
Query
------------------
select anr as Telefoonnummers, sum (duration / 3600) as Uren
from dbo.TELEDISCOUNT_CALL_IN
where country = 'NL' and
DATETIME between '2002-01-01 00:00:00.000' and '2003-01-01 00:00:00.000'
group by anr having sum(duration) >= 360000;
------------------
ASP code
------------------
<%@ Language=VBScript %>
<%
if Request("clientnr") <> "" then
Session("clientnr") = Request("clientnr")
elseif Session("clientnr") = "" then
Session("clientnr") = "111,114,222,333,888"
end if
Set oSQL = Server.CreateObject("ADODB.Connection")
oSQL.CursorLocation = 3 'client
oSQL.ConnectionTimeout = 60
oSQL.CommandTimeout = 600
oSQL.Open "Provider=SQLOLEDB.1;SERVER=31.71.1.201;DATABASE=TELEDISCOUNT;UID=nick;PWD=welkom"
set rsUpdate = oSQL.Execute("SELECT MAX(DATETIME) FROM CS_CALL")
query = "select anr as Telefoonnummers, sum (duration / 3600) as Uren " & _
" from dbo.TELEDISCOUNT_CALL_IN " & _
" where country = 'NL' and " & _
" DATETIME between '2002-01-01 00:00:00.000' and '2003-01-01 00:00:00.000' " & _
" group by anr having sum(duration) >= 360000; " & _
%>
Alvast bedankt