Network Database Path Problem - InfoPath Dev
in

InfoPath Dev

Network Database Path Problem

Last post 01-04-2007 02:19 AM by uma. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 01-04-2007 12:26 AM

    • PakiDev
    • Not Ranked
    • Joined on 12-29-2006
    • Pakistan
    • Posts 10

    Network Database Path Problem

    Dear InfoPath Devs

    I have a form which holds some data from the MS Access database. For deployment purposes I have to put the database on a local server machine say "infopathDbServer". In my Jscript code I have to refer this server and the folder where the database resides.The Jscript code runs well on my local hard drive but when I make changes in the connection string I get an error that the file is not valid. My code is as follows
    var sConnectString="Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=\\infoPathDbServer\nasir\TRF DATABASE\trf.mdb;" ;

    I also used Server.MapPath() but I got error saying "server" is undefined.

    So what is the proper way to refer the database on the network drive in JScript in data connection string.

    Please help me!
    Regards!
  • 01-04-2007 02:19 AM In reply to

    • uma
    • Top 500 Contributor
    • Joined on 12-23-2005
    • Posts 35

    Re: Network Database Path Problem

    I don't have the idea on Jscript. But just want you to take your observation on below mentioned Forum link which has the solution to the similer problem.

    http://infopathdev.com/forums/topic.asp?TOPIC_ID=3854&SearchTerms=Access,DB,Connection
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.