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 |
|
Stan Sainte-Rose
Starting Member
3 Posts |
Posted - 2001-10-15 : 09:14:10
|
| Hello,I have problem with a stored proc with SQL Server 2000It works well with IIS5 with Windows 2000 Server, but breaks with IIS4 withNT4This is the error reportServer: Msg 446, Level 16, State 9, Procedure sp_caddie, Line 27Impossible de résoudre le classement en conflit de l'opération equal to.- Impossible to resolve the order in conflict with Equal to - (I tried totranslate the french part)I thank u in advance for your helphere's my stored procCREATE PROCEDURE sp_caddie ( @Page int, @RecsParPage int, @idtk varchar(50) )ASSET NOCOUNT ONCreate Table #TempCaddie( ID int IDENTITY, tprod Int, tcde real, idshop varchar(50))Insert Into #TempCaddie (idshop,tprod,tcde)Select idshop, TotalProd=Count(*),totalcde=Sum(qtes*punitaire)From Templig Where idsession=@idtk Group by idshopDeclare @FirstRec int, @LastRec intSelect @FirstRec = (@Page-1) * @RecsParPageSelect @LastRec = (@Page * @RecsParPage +1)Select id,idshop,tprod,tcde,societes.idmenu, ' the line 27<--------------------------------- TotalRecords = ( Select Count(*) From #TempCaddie TI ), societes.raison,societes.logoshopFrom #TempCaddie,societesWhere ID>@FirstRec and ID<@LastRecAnd idsoc=idshopSet NoCount OFFGO |
|
|
|
|
|
|
|