Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / FoxPro / Setup / July 2004

Tip: Looking for answers? Try searching our database.

Client Deployment of VF8

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
W. Wong - 10 Jul 2004 04:30 GMT
Hello All,

My application is using VF8 and SQL2000.  When I deploy the application, I have to setup the ODBC(data sources) in client machine to make the connection of sql server.

Does anyone know is it possible to reduce such step(user data source setup)?  Just using the code inside the program or some UDL file etc...  So, I do not need to set the data sources for each machine?

Thanks
W. Wong
Gerben Kessen - 10 Jul 2004 12:57 GMT
Hi Wong,

If the right files are already installed on the client machine, an ODBC
connection is nothing more that a couple of registry settings so if that
makes it easy, you can take a look at that.
Some installation programs, I'm pretty sure Installshield-Express does, can
make the settings etc. for you.
At last but not least you can make a connection without the ODBC settings...

lcSrcFile1 = lcSrcDir + [XXXXXX.MDB]

lcConnectString = "Driver={Microsoft Access Driver (*.mdb)};Dbq=" +
lcSrcFile1 + ";UID=xxxxx; PWD=xxxxx"
lnHandle = SQLSTRINGCONNECT(lcConnectString)

IF lnHandle > 0
  SQLSETPROP(lnHandle,"BatchMode",.t.)
  SQLSETPROP(lnHandle,"Asynchronous",.f.)

 SQLEXEC(lnHandle, "SELECT * FROM Inventory", "Source")
  SQLDISCONNECT(lnHandle)
 ENDIF

Hth,

Gerben Kessen

> Hello All,
>
> My application is using VF8 and SQL2000.  When I deploy the application, I have to setup the ODBC(data sources) in client machine to make the
connection of sql server.

> Does anyone know is it possible to reduce such step(user data source setup)?  Just using the code inside the program or some UDL file etc...  So,
I do not need to set the data sources for each machine?

> Thanks
> W. Wong
Lee Mitchell - 12 Jul 2004 16:22 GMT
Hi W. Wong:

Take a look at this article and see if it helps:

155392 How To Creating a Connection to SQL Server Without a Datasource
http://support.microsoft.com/?id=155392

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 Public Beta Now Available!! --*
Download the VFP9 beta here: http://msdn.microsoft.com/vfoxpro/   

*-- VFP8 HAS ARRIVED!! --*
Read about all the new features of VFP8 here:
  http://www.universalthread.com/VisualFoxPro/News/VFP8Release.asp
Purchase VFP8 here:
  http://shop.microsoft.com/Referral/Productinfo.asp?siteID=11518

Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/default.aspx?id=fh;[ln];lifeprodv
  - VFP5 Mainstream Support retired June 30th, 2003
  - VFP6 Mainstream Support retired Sept. 30th, 2003

> Hello All,
>
[quoted text clipped - 8 lines]
> Thanks
> W. Wong
test - 12 Jul 2004 18:18 GMT
you can use either use sqlstringconnect() or call SQLConfigDataSource API

> Hello All,
>
> My application is using VF8 and SQL2000.  When I deploy the application, I have to setup the ODBC(data sources) in client machine to make the
connection of sql server.

> Does anyone know is it possible to reduce such step(user data source setup)?  Just using the code inside the program or some UDL file etc...  So,
I do not need to set the data sources for each machine?

> Thanks
> W. Wong
swdev2 - 15 Jul 2004 06:58 GMT
HEya W.
you can also make a vb script object that will stuff the keyboard in the
right places , emulating a manual system dsn creation.
taking this a step further, you can encapsulate the Windows Scripting Host
in VFP 8 and
do the same thing.

Others have mentioned using a sqlstringconnect - i'm a big fan of it as
well.
hth - mondo regards [Bill]

--
William Sanders / Electronic Filing Group  Remove the DOT BOB to reply via
email.
Mondo Cool TeleCom -> http://www.efgroup.net/efgcog.html
Mondo Cool WebHosting -> http://www.efgroup.net/efglunar.html
Mondo Cool Satellites -> http://www.efgroup.net/sat
VFP Webhosting? You BET! -> http://efgroup.net/vfpwebhosting
mySql / VFP / MS-SQL

> Hello All,
>
> My application is using VF8 and SQL2000.  When I deploy the application, I have to setup the ODBC(data sources) in client machine to make the
connection of sql server.

> Does anyone know is it possible to reduce such step(user data source setup)?  Just using the code inside the program or some UDL file etc...  So,
I do not need to set the data sources for each machine?

> Thanks
> W. Wong
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.