Home > Archive > FoxPro database connector > March 2006 > Q: How define database path & store database path in .INI FILE









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Q: How define database path & store database path in .INI FILE
sanjib

2006-02-10, 7:24 am

dear Friends

Any body can help , I accept path for database (.dbc file) now i want to
store this path to application.INI file. database in windows 2000 server. or
how to define database path to get data from server. I am using vfp6.

please help me


--
sanjib
Lee Mitchell

2006-02-10, 9:24 am

Hi sanjib:

I am not sure if these articles will help you, but you might want to look
at them.

128996 How To Assign Database Location Generically in Data Env
http://support.microsoft.com/defaul...kb;EN-US;128996
147941 How to Handle Path Issues When Moving Databases
http://support.microsoft.com/defaul...kb;EN-US;147941


I hope this helps.

This posting is provided "AS IS" with no warranties, and confers no rights.

Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell

*-- VFP9 HAS ARRIVED!! --*
Read about all the new features of VFP9 here:
http://msdn.microsoft.com/vfoxpro/

*--Purchase VFP 9.0 here:
http://www.microsoft.com/PRODUCTS/i...cid=54787e64-52
69-4500-8bf2-3f06689f4ab3&type=ovr

Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/gp/lifeselectindex
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retired Sept. 30th, 2003


>dear Friends


>Any body can help , I accept path for database (.dbc file) now i want to
>store this path to application.INI file. database in windows 2000 server.

or
>how to define database path to get data from server. I am using vfp6.


>please help me



--
>sanjib


sanjib

2006-03-13, 7:25 am

Thanks sindy & Lee for reply,

I go the solution to read/write in private .INI file using
getprivateprofilestr
ing( ) & writeprivateprofiles
tring().

Now I face a problem when i try to read data from \\server\data\appdat
a.dbc
it is working fine but when i open a form "..dataenviroment.cursor1..." file
not found. because enviroment takes/stored local datapath.

Lee suggetion about that article is helpfull for me. but I have allready
developed lots of form using dataenv. now how to change data enviroment
database properties path ; because it should be flexable at the time of
application distribution.

kindly reply & help

thanks

sanjib
--
sanjib


"sanjib" ने लिखा:

> dear Friends
>
> Any body can help , I accept path for database (.dbc file) now i want to
> store this path to application.INI file. database in windows 2000 server. or
> how to define database path to get data from server. I am using vfp6.
>
> please help me
>
>
> --
> sanjib

Lee Mitchell

2006-03-13, 11:25 am

Hi sanjib:


I am glad are answers helped you somewhat.

Does this article help with the pathing problem in the forms?

229779 PRB: Data Environment Stores Paths as Relative Paths
http://support.microsoft.com/defaul...kb;EN-US;229779


I hope this helps.

This posting is provided "AS IS" with no warranties, and confers no rights.

Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell

*-- VFP9 HAS ARRIVED!! --*
Read about all the new features of VFP9 here:
http://msdn.microsoft.com/vfoxpro/

*--Purchase VFP 9.0 here:
http://www.microsoft.com/PRODUCTS/i...cid=54787e64-52
69-4500-8bf2-3f06689f4ab3&type=ovr

Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/gp/lifeselectindex
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retired Sept. 30th, 2003


>Thanks sindy & Lee for reply,


>I go the solution to read/write in private .INI file using
> getprivateprofilestr
ing( ) & writeprivateprofiles
tring().


>Now I face a problem when i try to read data from

\\server\data\appdat
a.dbc
>it is working fine but when i open a form "..dataenviroment.cursor1..."

file
>not found. because enviroment takes/stored local datapath.


>Lee suggetion about that article is helpfull for me. but I have allready
>developed lots of form using dataenv. now how to change data enviroment
>database properties path ; because it should be flexable at the time of
>application distribution.


>kindly reply & help


>thanks


>sanjib

--
>sanjib



>"sanjib" ने लिà¤-ा:


> dear Friends
>
> Any body can help , I accept path for database (.dbc file) now i want to
> store this path to application.INI file. database in windows 2000 server.

or
> how to define database path to get data from server. I am using vfp6.
>
> please help me
>
>
> --
> sanjib




Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com