salve ragazzi ogni tanto compare il seguente errore:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
/stampa_registrati.asp, line 42
dove la riga 42 è :call conn.Open (sConnect,"admin","")
l'errore rimane finquando non torno sulla homepage del sito e clicco su f5 e non da + errori...
il codice che eseguo per la connessione è il seguente:
codice:
<%
sConnect1= session("STRCONNECT")
dim conn1
dim cmd1
set conn1 = Server.CreateObject ("ADODB.Connection")
call conn1.Open (sConnect,"admin","")
set cmd2 = Server.CreateObject ("ADODB.Command")
cmd2.ActiveConnection = conn
dim TClienti1
set TClienti1 = Server.CreateObject ("ADODB.Recordset")
cmd2.CommandText = "SELECT Count (ID) AS numero FROM IscrittiEvento WHERE Citta ='Roma' "
TClienti1.Open cmd2,,1,3
'Response.Write (cmd2.CommandText)
%>
<td>
<%
Do While Not TClienti1.EOF
%>
[b]<%=TClienti1("numero")%>[b]
</td>
</TR>
</table>
<%
TClienti1.Movenext
Loop
if TClienti1.State<>0 then
TClienti1.close
end if
%>