Disconnected Recordsets with JScript

Results 1 to 2 of 2

Thread: Disconnected Recordsets with JScript

  1. #1
    Join Date
    Dec 1969

    Default Disconnected Recordsets with JScript

    I get the following error:<BR>Microsoft OLE DB Provider for ODBC Drivers error &#039;80004005&#039; <BR><BR>[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified <BR><BR>my code is :<BR>var rsArticle = Server.CreateObject("ADODB.Recordset");<BR>rsArtic le.ActiveConnection = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=mypath;";<BR>rsArticle.Source = "SELECT *FROM article " <BR>rsArticle.CursorLocation = 3;<BR>rsArticle.Open();<BR>rsArticle.ActiveConnect ion = null;<BR><BR>why i cant assign null to the ActiveConnection;<BR>thanks a lot <BR>Marios

  2. #2
    Join Date
    Dec 1969

    Default RE: Disconnected Recordsets with JScript

    There is no null in ASP, althought you use JS.<BR>I have try to use null with<BR>var stringname<BR>if stringname==null<BR>it is not work<BR>but use <BR>if (isNaN(stringname)) // this command ok, hope help you<BR><BR>

Posting Permissions

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