Re: sql call not working but should!

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: David Browne (meat_at_hotmail.com)
Date: 05/25/04


Date: Tue, 25 May 2004 13:24:31 -0500


"chris" <anonymous@discussions.microsoft.com> wrote in message
news:C05BF536-840F-4C79-B54A-DF6125A94AE7@microsoft.com...
> I have this login routine that I can't seem to get the Sub loginpartner to
work. There are two login subs on this >page (loginnasba (works) and
loginpartner (does not)). The sql statement for loginpartner has been
confirmed to >work. But it won't allow login, genertating no hasrows
(setting lblpartnerloginfailed.text label on else). If I replace it >with
the Sub loginnasba sql statement, modifying the fields that get populated
from the form accordingly, then login >works! What am I not seeing? I run
the SQL3 statement through my SQl Server 2K and it works! THANX!

This code is impossible to read. Move the procedures to a VB code-behind
module, strip the comments and replace all the SQL string concatenation with
parameter markers and bind the parameters.

If that doesn't fix it, at least it will be more readable.

David



Relevant Pages

  • Re: Web Import
    ... I tried to create a small procedure to load a web browser so I could login, ... Sub NextStep() ... .RefreshStyle = xlInsertDeleteCells ... .WebDisableDateRecognition = False ...
    (microsoft.public.excel.programming)
  • Re: Open child form from dialog form
    ... found out that login failed in sub main? ... except I can't close login dialog. ... > Dim LoginForm As New LoginForm ... > I've set the button's dialogresult property in the designer. ...
    (microsoft.public.dotnet.languages.vb)
  • Simple Login programming: Authentication does not work for me!
    ... I thought it should be a simple matter to put a login page together after watching LearnVisualNet videos! ... The Login1.Authenticate sub may not be necessary. ... Protected Sub Login1_LoggedIn(ByVal sender As Object, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Secure Multiple Applications in one Domain
    ... Original Page, Login Page, Post of Login Page, Original Page, ... Is using the element in my root web's web.config file the way to ... > another sub application located in the ... Regarding on the repeatly be redirect to login page. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • [NEWS] Abusing Poor Programming Techniques in Web Server Scripts (SQL Statements)
    ... Abusing Poor Programming Techniques in Web Server Scripts ... It is possible to "validate" a login without knowing the username and/or ... the authentication mechanism or any other SQL statement. ... all previous conditions are present in the login script. ...
    (Securiteam)