JavaScript with DATABASE ( connection problem )

Discussion in 'JavaScript' started by dimayev, Feb 7, 2009.

  1. #1
    Hi everybody, can anybody help me about simple problem ?

    var conn_str = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=DATABASE.mdb;Persist Security Info=False";

    this code can run in my PC. but when I send it into my host, it cannot run.

    what should I do ? I think I have to write more thing before DATABASE.mdb...

    does anybody know what I should write ?
     
    dimayev, Feb 7, 2009 IP
  2. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #2
    this is not code, it is a string. i assume you load some library to achieve DB access - which one is it, how do you include it, how does it interface with it?

    additionally, most hosts won't have a ms sql server but a mysql one, so i wouldn't expect it to work.
     
    dimitar christoff, Feb 8, 2009 IP
  3. MMJ

    MMJ Guest

    Messages:
    460
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I'd guess you are using an ActiveX control?
     
    MMJ, Feb 8, 2009 IP