-
SQL ODBC error 80040e14
I just started with ASPdb-Pro (and SQL). I used the attched code successfully with MS Access. When I tried to switch to MS SQL 6.5 (after 'upsizing' I received: ODBC Driver error '80040e14' ... [SQL Server]Line 1: Incorrect syntax near '1'. The error occurs only when I enter a valid userid/password combination in my form...
Any help would be greatly appreciated !
Set MyDb=Server.CreateObject("ASPdb.Pro"
MyDb.dbQuickProps="4711;Darwinet.System;;form; "
Session("myUnit" = Session("MyUnit" + 1
MyDb.dbUnit=Session("myUnit"
MyDb.dbFormTableTag=" "
MyDb.dbSQL = "SELECT * FROM Users WHERE UserID='" & Session("myUserID" & "' AND Password ='" & Session("myPassword" & "'"
MyDb.dbFormDisplayFlds = "-1"
MyDb.dbNavigation= "none"
MyDb.dbStatusBar=false
MyDb.dbSuppressMsg=true
MyDb.dbExportFlds = "0,1,2,3,4"
MyDb.ASPdbPro
-
SQL ODBC error 80040e14 (reply)
Add -> MyDb.dbDBType="SQL" for MS-SQL "ORACLE,Server" for ORACLE server etc...
On 2/17/99 6:28:21 PM, Klaus P Springer wrote:
> I just started with ASPdb-Pro (and SQL). I used the attched code
> successfully with MS Access. When I tried to switch to MS SQL 6.5 (after
> 'upsizing' I received: ODBC Driver error '80040e14' ...
> [SQL Server]Line 1: Incorrect syntax near '1'. The error occurs
> only when I enter a valid userid/password combination in my form...
Any
> help would be greatly appreciated !
Set
> MyDb=Server.CreateObject("ASPdb.Pro"
> MyDb.dbQuickProps="4711;Darwinet.System;;form; "
> Session("myUnit" = Session("MyUnit" + 1
> MyDb.dbUnit=Session("myUnit"
MyDb.dbFormTableTag=" "
> MyDb.dbSQL = "SELECT * FROM Users WHERE UserID='" &
> Session("myUserID" & "' AND Password ='" &
> Session("myPassword" & "'"
MyDb.dbFormDisplayFlds =
> "-1"
MyDb.dbNavigation= "none"
> MyDb.dbStatusBar=false
MyDb.dbSuppressMsg=true
MyDb.dbExportFlds =
> "0,1,2,3,4"
MyDb.ASPdbPro
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|