index | search | no replies | posting guidelines | help login | register
Index » Products » ASP Report Wizard v2
search this forum:
:: Error #:-2147467259 ::    show all messagesPost a New Message | Post a Reply
Nov 29 2005, 8:05 AM
 Re: Error #:-2147467259Post a Reply
 ghost

View this author's profile Send this author a private message Visit author's homepage

from: Washington, DC

This error could be caused by your database (MDAC) or non-database (ASP) related issue.
The first thing to do is make sure that your database connection is working. To do that, run the sample code below in a blank ASP page on your server.


Dim objConn, objRS, strConn

'TODO: Change Table1 below to an existing table name in your database
strSQL = "SELECT * FROM Table1"
  
strConn = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=Y:\database.mdb;"
  
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open strConn
      
Set objRS = objConn.Execute(strSQL)
If Not objRS.EOF  Then
    Do While Not
objRS.EOF
        Response.Write objRS(0) & "<br>"
        objRS.MoveNext
    Loop
    objRS.Close
End  If

Set
objRS =  Nothing
      
objConn.Close  
Set objConn =  Nothing


Let me know if you get any errors


-------------------------
Ghost
Pages: (1)   [1]

search this forum: