Skip to main content
Inspiring
May 31, 2007
Question

Stored Procedure Problem

I'm breaking into Stored Procedures.

So far I've gotten a page to display my data...Good so far

Today, I've been trying to pull data onto a page after submitting a form.

This is the SP.
-----------------------
CREATE PROCEDURE searchresults(@searchfor varchar (6000))
AS
SELECT P.ID AS ProductID, P.Name, P.ProdID, P.Price, P.ClearSale,
P.SalePrice, P.ShipCost, G.gid, G.pid AS Gpid, G.ord, D.PID AS DPID,
D.Paragraph
FROM atblProducts P INNER JOIN Groups G ON P.ID = G.pid INNER JOIN PCat
PC ON G.gid = PC.gid LEFT JOIN Description D ON G.gid = D.PID
WHERE D.Paragraph LIKE @searchfor
ORDER BY G.gid, G.ord, P.ID, P.Name
GO
-----------------
When I am inside the Command window in Dreamweaver, and hit the test
button, no results appear. No errors but no results.
This topic is closed to new replies. Start a new post to keep the conversation going.

11 replies

Inspiring
June 1, 2007
What do you get when you execute the Stored Proc through Query Analyser?


"Lee" <lee_nospam_@artjunky.com> wrote in message
news:f3ngbq$gsr$1@forums.macromedia.com...
> I'm breaking into Stored Procedures.
>
> So far I've gotten a page to display my data...Good so far
>
> Today, I've been trying to pull data onto a page after submitting a form.
>
> This is the SP.
> -----------------------
> CREATE PROCEDURE searchresults(@searchfor varchar (6000))
> AS
> SELECT P.ID AS ProductID, P.Name, P.ProdID, P.Price, P.ClearSale,
> P.SalePrice, P.ShipCost, G.gid, G.pid AS Gpid, G.ord, D.PID AS DPID,
> D.Paragraph
> FROM atblProducts P INNER JOIN Groups G ON P.ID = G.pid INNER JOIN PCat PC
> ON G.gid = PC.gid LEFT JOIN Description D ON G.gid = D.PID
> WHERE D.Paragraph LIKE @searchfor
> ORDER BY G.gid, G.ord, P.ID, P.Name
> GO
> -----------------
> When I am inside the Command window in Dreamweaver, and hit the test
> button, no results appear. No errors but no results.


Translate