I gave some code to a junior developer in a different division. They say that they can execute a sproc, and it runs in seconds...but when they try to insert the results to a holding table, the process hangs. Any ideas? Here is the code and her comments:I am still having trouble running the code that Lana had sent over to me. TRUNCATE TABLE SprocResultsDECLARE @rc int, @rs int, @x intINSERT INTO SprocResults (company_region, name, user_role, User_Type_Desc, user_id, ssoid)EXEC @x = PAERSCBVD0014.db_profiles..usp_SEL_Metrics_Main @rc OUTPUT, @rs OUTPUT SELECT @rc, @rsIf I comment out the INSERT statement, I get the result set (in a matter of seconds). However, once I put the INSERT statement back in, it just keeps executing until I kill it. Any advice you can give on this matter is greatly appreciated.
Brett8-)Hint: Want your questions answered fast? Follow the direction in this linkhttp://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspxAdd yourself!http://www.frappr.com/sqlteam