troubleshooting Question

Microsoft OLE DB Provider for SQL Server error '80040e14'

Avatar of gianitoo
gianitoo asked on
ASP
5 Comments1 Solution550 ViewsLast Modified:
Microsoft OLE DB Provider for SQL Server error '80040e14'

Line 1: Incorrect syntax near '92'.

/software/schedule/function.asp, line 438





' -----------------------------------------------------------------------------------------------
' This function returns a recordset when you supply it the SQL statement
' -----------------------------------------------------------------------------------------------

Function LoadRSFromDB(p_strSQL)
    dim ObjRS, conn
   
    if not IsObject("conn") then
         set conn=Server.CreateObject("ADODB.Connection")
         conn.ConnectionTimeout = 15
         conn.CommandTimeout =  10
         conn.Mode = 3 'adModeReadWrite
         if conn.state = 0 then
              conn.Open strConnectString
         end if
     end if

     set ObjRS= Server.CreateObject("ADODB.recordset")
     ObjRS.Open p_strSQL, conn

    if Err <> 0 then
        Err.Raise  Err.Number, "ADOHelper: RunSQLReturnRS", Err.Description
    end if
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros