Connection Code

Results 1 to 2 of 2

Thread: Connection Code

  1. #1
    Join Date
    Dec 1969

    Default Connection Code

    Can someone tell me what&#039;s wrong with this piece of database connection code?<BR><BR>Dim rsgw, Connstringgw, Objconngw<BR>CONNSTRINGgw = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=DBQ=D:dbmaindatabase.mdb" & ";"<BR>Set objConngw = Server.CreateObject("ADODB.Connection")<BR>Set rsgw = Server.CreateObject("ADODB.Recordset")<BR>objConng w.Open CONNSTRINGGW <BR><BR>I get this error<BR>"Not a valid file name."<BR>On this line:<BR>objConngw.Open CONNSTRINGGW

  2. #2
    Join Date
    Dec 1969

    Default RE: Connection Code

    try this...<BR><BR>CONNSTRINGgw = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:dbmaindatabase.mdb"

Posting Permissions

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