Skip to main content
Inspiring
June 25, 2008
Question

Debug SQL Statement

  • June 25, 2008
  • 3 replies
  • 317 views
Hi,

Can anyone tell me how I can debug a sql statement.
Ideally the execute.cmd would not run but rather output to the screen.

Thanks folks.

XP, Dreamweaver CS3, ASP VBScript.
This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

Inspiring
June 27, 2008
Comment out the
Set rsName = rsName_cmd.Execute
line the try this on your page
<%=rsName_cmd.CommandText%>
Change rsName to the name of your rs
That should write the SQL to your page.
Inspiring
June 26, 2008
I should have said

I use query analyzer IF the problem is only with the sql statement.

Philo wrote:

> I use query analyzer is the problem is only with the sql statement
>
>
>
> > Hi,
> >
> > Can anyone tell me how I can debug a sql statement.
> > Ideally the execute.cmd would not run but rather output to the
> > screen.
> >
> > Thanks folks.
> >
> > XP, Dreamweaver CS3, ASP VBScript.



--

Inspiring
June 25, 2008
I use query analyzer is the problem is only with the sql statement



> Hi,
>
> Can anyone tell me how I can debug a sql statement.
> Ideally the execute.cmd would not run but rather output to the screen.
>
> Thanks folks.
>
> XP, Dreamweaver CS3, ASP VBScript.



--