Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
TestEngineer
Starting Member
29 Posts |
Posted - 2006-02-17 : 14:25:33
|
| 'int' is not a recognized CURSOR option.I think this error message is related to the fact that I'm using CREATE Table in my stored procedure to handle temporary table data. What can I do to declare a variable here?CREATE PROCEDURE spTeamPORReport(@FacilityName nvarchar(50) = NULL,@CustomerTeamName nvarchar(50) = NULL,@CustomerName nvarchar(50)=NULL,@AssemblyPartNumber nvarchar(50)=NULL,@DateStart smalldatetime,@DateEnd smalldatetime)ASSET NOCOUNT ONDECLARE MyRecordCount intCREATE TABLE #FiveWorstPerformance(PartNumber nvarchar(50),Customer nvarchar(50),ProdDesc nvarchar(50),TestedICT bigint,FailedICT bigint,FPYICT float,TestedAOI bigint,FailedAOI bigint,FPYAOI float,TestedFUNC bigint,FailedFUNC bigint,FPYFUNC float,RecordID identity(1,1) int)...Thanks,Tom |
|
|
JoeNak
Constraint Violating Yak Guru
292 Posts |
Posted - 2006-02-17 : 14:40:47
|
| How about...DECLARE @MyRecordCount intLocal variables must begin with @. Cursors don't use the @ notation, so it's interpretting your declare as a cursor not a variable. |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-02-20 : 00:59:49
|
| Also what are you trying to do with Cursor?MadhivananFailing to plan is Planning to fail |
 |
|
|
Merkin
Funky Drop Bear Fearing SQL Dude!
4970 Posts |
Posted - 2006-02-20 : 01:06:32
|
| Read the code Madhivanan, he isn't trying to use a cursor.Damian"A foolish consistency is the hobgoblin of little minds." - Emerson |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-02-20 : 01:42:35
|
Yes. I think I didnt read it fully MadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|
|
|