Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stored proc sql server
Message
From
13/10/2004 13:48:43
 
 
To
13/10/2004 13:31:57
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
00950845
Message ID:
00951138
Views:
15
I believe I the queries running, but it is taking a very long time for the stored procedure to run. I am still using the temp table instead of the table variable because I was getting the error must define the table variable.

CREATE @TempPriorSales TABLE gave this error, but if I changed it to
DECLARE @TempPriorSales TABLE it will not error when I create the table variable but when I try to use it in the last select statement of the SP. Either way I couldn't get it to work with the table variable.

I was able to create an identity column on the table variable. I tested just that portion of the SP and it worked.

I haven't had a chance to try an index on the table variable because of the error I was getting.

Again, I appreciate the help. It looks like I still have a long way to go though.
Randy Belcher
AFG Industries, Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform