When I try to list records from a recordset that execute a Stored Procedure(show records from a temporary table - global or local), error message shows up.<br><br>VB Code:<br><br>Dim conn as New ADODB.Connection<br>Dim cmd as New ADODB.Command<br>Dim rs as New ADODB.Recordset<br>Dim strConnection as string<br><br>strConnection = "Provider=SQLOLEDB;Data Source=XXXXX;Initial Catalog=DBDBDB"<br><br>conn.Open strConnection <br><br>Set cmd.ActiveConnection = conn<br>cmd.CommandType = adCmdText<br>cmd.CommandText = "Execute SP_Teste"<br><br>Set rs.ActiveConnection = conn<br>rs.CursorLocation = adUserServer<br>rs.CursorType = adOpenStatic<br>rs.Open cmd<br><br>Stored Procedure Script:<br><br>Create Procedure SP_Test<br>as<br>Select *<br>into ##tmp_Test<br>from tbTest<br><br>Select * from ##tmp_Test<br><br>drop table ##tmp_Test<br><br>return 0<br><br>Are there erros on this code? Could you help me? I can't count records (recordcount) or show results from the recordset above.<br><br>Sincerely<br><br>ofsouto<br>Brazil