Hello,
I have a stored procedure which generates a table w/ financial information. When I execute it in query analyzer, it runs great (although it takes 2 hours). Now I'm trying to call it from an Access application. I'm calling it like this:
When I run the code, it does call the stored procedure. The problem is, it only runs for about 3 minutes and doesn't populate a tenth of the information it normally would if I run the exact same stored procedure in SQL Server Query Analyzer. The first SP runs just fine (it initializes the table), but the second one seems to bomb out after three minutes. I don't get any error messages, it just seems to quit as though it finished on it's own.
Any ideas why it'll run fine through Query Analyzer, but not when called through ADO???
Any ideas would be GREATLY appreciated.
Thanks,
Jason
I have a stored procedure which generates a table w/ financial information. When I execute it in query analyzer, it runs great (although it takes 2 hours). Now I'm trying to call it from an Access application. I'm calling it like this:
Code:
' Open ADO connection
strCnxn = "Provider='sqloledb';Data Source='SDSQL2';" & _
"Initial Catalog='TimberlineWarehouse';Integrated Security='SSPI';"
Set CnXn = New ADODB.Connection
CnXn.Open strCnxn
'Execute stored procedures CorporateAuditFootnote for Timberline & Yardi
CnXn.Execute "EXEC dbo.CorporateAuditFootnoteInitialize_UnconsolidatedYardi"
CnXn.Execute "EXEC dbo.CorporateAuditFootnote_UnconsolidatedYardi '" & FiscalYear & "'"
When I run the code, it does call the stored procedure. The problem is, it only runs for about 3 minutes and doesn't populate a tenth of the information it normally would if I run the exact same stored procedure in SQL Server Query Analyzer. The first SP runs just fine (it initializes the table), but the second one seems to bomb out after three minutes. I don't get any error messages, it just seems to quit as though it finished on it's own.
Any ideas why it'll run fine through Query Analyzer, but not when called through ADO???
Any ideas would be GREATLY appreciated.
Thanks,
Jason