Windows 2000, VB Script, Visual InterDev and SQL Server 7 
Author Message
 Windows 2000, VB Script, Visual InterDev and SQL Server 7

Greetings,

PLEASE HELP !!!

The above is my configuration. I am having a wierd problem in Visual
Interdev. I working in an following ASP file that is using a DataEnvironment
command object. The Command object has the following SQL statement:


SELECT
UserGroups.PlantHireID, UserGroups.ContractorID, UserGroups.Admin,
Users.UserID, Users.UserGroupID, Users.UserName, Users.Password
FROM Users INNER JOIN UserGroups ON Users.UserGroupID =
UserGroups.UserGroupID

My problem is that I cannot for the life of me get a result back containing
valid information. I know that there is a valid record and when I execute
the script I get back nothing.

Here is the script for the ASP page:


<SCRIPT id=DebugDirectives runat=server language=javascript>

</SCRIPT>
<% ' VI 6.0 Scripting Object Model Enabled %>
<!--#include file="_ScriptLibrary/pm.asp"-->
<% if StartPageProcessing() Then Response.End() %>
<FORM name=thisForm METHOD=post>
<%
Dim CurrUserName
Dim CurrUserPass
Dim rs

CurrUserName = Request.Form("UserName")
CurrUserPass = Request.Form("UserPass")

thisPage.CreateDE()
DE.dbcmdVerify CurrUserName, CurrUserPass
Set rs = DE.rsdbcmdVerify

If rs.EOF then
  Response.Write("FAIL")
else
  Response.Write("Pass")
End if

rs.Close
Set rs = nothing

%>
<% ' VI 6.0 Scripting Object Model Enabled %>
<% EndPageProcessing() %>
</FORM>

Thanks,

Robert Lancaster



Mon, 07 Apr 2003 03:00:00 GMT  
 Windows 2000, VB Script, Visual InterDev and SQL Server 7
Two errors I see that jump right out at me.

See below.

--
Gerry O'Brien, MCP


Quote:

> Greetings,

> PLEASE HELP !!!

> The above is my configuration. I am having a wierd problem in Visual
> Interdev. I working in an following ASP file that is using a
DataEnvironment
> command object. The Command object has the following SQL statement:


> SELECT
> UserGroups.PlantHireID, UserGroups.ContractorID, UserGroups.Admin,
> Users.UserID, Users.UserGroupID, Users.UserName, Users.Password
> FROM Users INNER JOIN UserGroups ON Users.UserGroupID =
> UserGroups.UserGroupID

> My problem is that I cannot for the life of me get a result back
containing
> valid information. I know that there is a valid record and when I execute
> the script I get back nothing.

> Here is the script for the ASP page:



                               /\/\/\/\/\/\/\/\

Quote:
> <SCRIPT id=DebugDirectives runat=server language=javascript>

                /\/\/\/\/\/\/\

        Which language are you using?

Quote:
> // Set these to true to enable debugging or tracing


> </SCRIPT>
> <% ' VI 6.0 Scripting Object Model Enabled %>
> <!--#include file="_ScriptLibrary/pm.asp"-->

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

You cannot call an include file from script.  They mus be included at the
beginning of the ASP file.

- Show quoted text -

Quote:
> <% if StartPageProcessing() Then Response.End() %>
> <FORM name=thisForm METHOD=post>
> <%
> Dim CurrUserName
> Dim CurrUserPass
> Dim rs

> CurrUserName = Request.Form("UserName")
> CurrUserPass = Request.Form("UserPass")

> thisPage.CreateDE()
> DE.dbcmdVerify CurrUserName, CurrUserPass
> Set rs = DE.rsdbcmdVerify

> If rs.EOF then
>   Response.Write("FAIL")
> else
>   Response.Write("Pass")
> End if

> rs.Close
> Set rs = nothing

> %>
> <% ' VI 6.0 Scripting Object Model Enabled %>
> <% EndPageProcessing() %>
> </FORM>

> Thanks,

> Robert Lancaster



Mon, 07 Apr 2003 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. VB / Windows 2000 Server / Microsoft Scripting

2. CR8+VB6+SQL Server 2000 and Windows 2000

3. CR6 and SQL Server 2000 and Windows 2000

4. BUG: Visual Basic 6.0 T-SQL Debugger Fails Against SQL Server 2000 Named Instance (Q310647)

5. Connect to SQL server from Visual Interdev

6. Connect to SQL server from Visual Interdev

7. Q249024 - HOWTO: Enable Windows Script Version Tools Support for Visual InterDev

8. Question: Debugging scripts with MS Visual interDev 6.0 on Personal Web Server

9. Question: Debugging scripts with MS Visual interDev 6.0 on Personal Web Server

10. Question: Debugging scripts with MS Visual interDev 6.0 on Personal Web Server

11. adding a user DSN connection to MS SQL server 2000 using AD GPO logon scripts

12. VB6 application using SQL Server 2000 migrating db to SQL Server 2

 

 
Powered by phpBB® Forum Software