Results 1 to 7 of 7

Thread: Help needed!!

  1. #1
    only the finest beef
    Join Date
    Nov 2003
    Posts
    1,175
    Thanks
    4
    Thanked
    0 times in 0 posts

    Exclamation Help needed!!

    Need help urgently.

    Doing a project using ASP, said that I'd use ADO rather than ODBC so that the DSN didn't have to be set by the server admin.

    Hand in date nearing and I've just realised that I'm not using ADO.

    thought it might just be a case of changing the connection, but now it won't execute my SQL strings (worked fine before with ODBC).

    My SQL string:

    Code:
    	strSQL = "SELECT * FROM user "
    	strSQL = strSQL & "WHERE userName = '" & Replace(Request.Form("userName"), "'", "''") & "' "
    	strSQL = strSQL & "AND userPassword = '" & Replace(Request.Form("userPassword"), "'", "''") & "';"
    This is how it appears if I take all the executable stuff out to see what it's doing:

    SELECT * FROM user WHERE userName = 'admin' AND userPassword = 'admin';

    The error I get in explorer:

    Error Type:
    Microsoft JET Database Engine (0x80040E14)
    Syntax error in FROM clause.
    /projectsystem/System/ASPs/login.asp, line 58
    Last edited by Angus; 21-04-2004 at 08:48 PM.

  2. #2
    Pixel Abuser Spunkey's Avatar
    Join Date
    Nov 2003
    Location
    Milton Keynes
    Posts
    1,523
    Thanks
    0
    Thanked
    0 times in 0 posts
    im assuming youur using access, if so just use the standard access connection string which you'll find in a link in the Useful Resources sticky at the top of the page

    HTH
    Last edited by Spunkey; 21-04-2004 at 10:49 PM.

  3. #3
    only the finest beef
    Join Date
    Nov 2003
    Posts
    1,175
    Thanks
    4
    Thanked
    0 times in 0 posts
    you trying to leave me hanging in suspense?

  4. #4
    only the finest beef
    Join Date
    Nov 2003
    Posts
    1,175
    Thanks
    4
    Thanked
    0 times in 0 posts
    Have now tried all the connection strings that appear to be appropriate on the Able Consulting site. I'm still unable to get any of the DSN-less methods to work.

  5. #5
    Senior Member Shad's Avatar
    Join Date
    Jul 2003
    Location
    In front
    Posts
    2,782
    Thanks
    23
    Thanked
    42 times in 25 posts
    Can you get any queries to work at all?
    Simon


  6. #6
    only the finest beef
    Join Date
    Nov 2003
    Posts
    1,175
    Thanks
    4
    Thanked
    0 times in 0 posts
    nothing

  7. #7
    Pixel Abuser Spunkey's Avatar
    Join Date
    Nov 2003
    Location
    Milton Keynes
    Posts
    1,523
    Thanks
    0
    Thanked
    0 times in 0 posts
    hmmm intriguing watson.

    could you post the offending bit of code up so we can have a quick gander?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Couple of items! help needed
    By jack in forum Retail Therapy and Bargains
    Replies: 5
    Last Post: 29-01-2004, 02:44 PM
  2. Windows 98se Updates? Help Needed
    By Jimmy Little in forum Software
    Replies: 9
    Last Post: 01-12-2003, 01:27 AM
  3. how many posts needed
    By tommy6206 in forum General Discussion
    Replies: 6
    Last Post: 08-10-2003, 01:18 PM
  4. Radeon 8500 linux driver install problems
    By Dorza in forum Software
    Replies: 0
    Last Post: 22-09-2003, 12:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •