Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Debug SQL Statement

LEGEND ,
Jun 25, 2008 Jun 25, 2008
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.
TOPICS
Server side applications
316
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 25, 2008 Jun 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.



--

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 26, 2008 Jun 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.



--

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 26, 2008 Jun 26, 2008
LATEST
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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines