Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Community > Tech > [HELP ASP] Recordset chiuso
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
Sonia
dsy newser

User info:
Registered: Mar 2002
Posts: 1372 (0.16 al dì)
Location: Provincia di Pavia
Corso: INFORMATICA
Anno: In tesi :)
Time Online: 23 Days, 18:21:37 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
[HELP ASP] Recordset chiuso

Ciao a tutti... ho un problema che mi sta facendo a dir poco impazzire

Prima di tutto, utilizzo ASP 3.0 e Sql Server 2000

Ho una stored procedure che crea tabelle temporanee, mi fa un po' di calcoli e alla fine restituisce tutto ciò che mi serve (non so se può essere utile, ma l'ultima select è una SELECT * FROM #TMP )

Nella mia bella (si fa per dire) paginetta ASP richiamo la USP, passandogli i suoi 3 parametri

Set objCommand = Server.CreateObject("ADODB.Command")
Set objRS = Server.CreateObject("ADODB.Recordset")
with objCommand
.ActiveConnection = objConnection
.CommandText= "USP"
.CommandType = adCmdStoredProc
end with
with objCommand.Parameters
.Refresh
.Item("@Par1") = Par1
.Item("@Par2") = Par2
.Item("@Par3") = Par3
end with
objRS.open objCommand, , adOpenForwardOnly, adLockReadOnly


Ma quando vado per estrarre quel che mi ha salvato in objRs, mi dice che il recordset è chiuso e infatto il suo .state è 0.
Ho provato ad eseguire la usp a parte, con gli stessi parametri che gli passo dall'asp, e mi restituisce risultati...
Quindi penso che non ci sia comunicazione tra usp e command/recordset...

Qualcuno mi sa aiutare?

__________________
Spietata e diabolica!

"Questi libri non possono cancellare secoli di storia, specialmente se quella storia è sostenuta dal più grande best seller di tutti i tempi." Fraukman aveva sgranato gli occhi. "Non dirmi che Harry Potter parlava del Santo Graal."
"Parlavo della Bibbia." Fraukman aveva fatto una smorfia. "Dovevo aspettarmelo."

15-10-2007 15:24
Click Here to See the Profile for Sonia Click Here to See the Blog of Sonia Click here to Send Sonia a Private Message Visit Sonia's homepage! Find more posts by Sonia Add Sonia to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
xSharKMaNx
un gioco della follia

User info:
Registered: Sep 2007
Posts: 1477 (0.22 al dì)
Location:
Corso: F49
Anno: Laureato
Time Online: 10 Days, 17:15:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Prova a sostituire la tua objRS.open in objCommand.Execute

Ciao

__________________
Perché, mentre il manganello può sostituire il dialogo, le parole non perderanno mai il loro potere; perché esse sono il mezzo per giungere al significato, e per coloro che vorranno ascoltare, all'affermazione della verità. E la verità è che c'è qualcosa di terribilmente marcio in questo paese. (V)

I popoli non dovrebbero aver paura dei propri governi, sono i governi che dovrebbero aver paura dei popoli. (T.J)

15-10-2007 15:48
Click Here to See the Profile for xSharKMaNx Click here to Send xSharKMaNx a Private Message Find more posts by xSharKMaNx Add xSharKMaNx to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 06:14.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.049 seconds (51.55% PHP - 48.45% MySQL) con 25 query.