Question
Stored Procedure? Error Checking?
I'm getting
(Either BOF or EOF is True, or the current record has been deleted.)
on the page and I'm thinking it's because the SP errors because a part
of the requested items are empty. The page works until I add the items
after the *****'s . Without those, it works fine.
First of all, should I do error checking in the SP, second, how? Or, is
there somewhere else I should look? The first error that I get happens
when I do a file check to see if an Image actually exists on the server
line that first error pops up-------<% strFilename =
"e:\path\to\site\Pix\DD" & (recordset.Fields.Item("ProductID").Value) &
".jpg"
If (fs.FileExists(strFilename))=true Then %>----------------end of
error line
CREATE PROCEDURE spname
@variable1 varchar (20)
AS
SELECT P.ID AS ProductID, P.Name, P.ProdID, P.Price, P.ShipCost,
P.ClearSale, P.SalePrice, P.new, PC.gid AS PCgid, G.gid, G.pid AS Gpid,
G.ord, D.PID AS DPID, D.Paragraph
*******, AIG.copyright, AIG.itemsize, AIG.cartdate, AIG.grade,
AIG.specialNotice, AIG.warning, AIG.videoLength, AIG.keywords,
AIG.dateadded, AIG.bestseller
FROM atblProducts P
INNER JOIN Groups G ON P.ID = G.pid
INNER JOIN PCat PC ON G.gid = PC.gid
*******INNER JOIN atblAddInfoGroup AIG ON P.ID = AIG.addInfoID
LEFT JOIN Description D ON G.pid = D.PID
WHERE P.ProdID = @variable1 AND P.price IS NOT NULL AND P.Price <> 0
GO
(Either BOF or EOF is True, or the current record has been deleted.)
on the page and I'm thinking it's because the SP errors because a part
of the requested items are empty. The page works until I add the items
after the *****'s . Without those, it works fine.
First of all, should I do error checking in the SP, second, how? Or, is
there somewhere else I should look? The first error that I get happens
when I do a file check to see if an Image actually exists on the server
line that first error pops up-------<% strFilename =
"e:\path\to\site\Pix\DD" & (recordset.Fields.Item("ProductID").Value) &
".jpg"
If (fs.FileExists(strFilename))=true Then %>----------------end of
error line
CREATE PROCEDURE spname
@variable1 varchar (20)
AS
SELECT P.ID AS ProductID, P.Name, P.ProdID, P.Price, P.ShipCost,
P.ClearSale, P.SalePrice, P.new, PC.gid AS PCgid, G.gid, G.pid AS Gpid,
G.ord, D.PID AS DPID, D.Paragraph
*******, AIG.copyright, AIG.itemsize, AIG.cartdate, AIG.grade,
AIG.specialNotice, AIG.warning, AIG.videoLength, AIG.keywords,
AIG.dateadded, AIG.bestseller
FROM atblProducts P
INNER JOIN Groups G ON P.ID = G.pid
INNER JOIN PCat PC ON G.gid = PC.gid
*******INNER JOIN atblAddInfoGroup AIG ON P.ID = AIG.addInfoID
LEFT JOIN Description D ON G.pid = D.PID
WHERE P.ProdID = @variable1 AND P.price IS NOT NULL AND P.Price <> 0
GO
