Ciao. Con questo script scrivo un file excel sul server con i dati provenienti da un dbase SQL Server:
codice:
sub listaClienti(objConn,byRef listaClientiOutput)
	sql = "SELECT * FROM STATO_AVANZAMENTO_LAVORI WHERE ID = "& strVar &" ORDER BY ID"
	set rs = server.createObject("ADODB.Recordset")
	rs.open sql, objConn, 1, 3
	if not rs.eof then
		listaClientiOutput = rs.getrows() 
	end if
	rs.close
	set rs = nothing
end sub
Il problema è che invece di prendere tutti i records che appartengono a strVar mi estrae solo il primo... dove sbaglio?
grazie