Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting the server name from an ODBC Data Source
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Getting the server name from an ODBC Data Source
Divers
Thread ID:
00312048
Message ID:
00312048
Vues:
65
Hi All,

I'm trying to find out which server an ODBC data source is pointing at. I can get the DSN that a connection uses with DBGetProp as well as the database, userID and password. However, to make sure that the Crystal Report I'm automating is pointing at the server on which I've created the temporary table that it uses as its primary data source, I need to know the server name.

The ConnectionString property is empty (because I've used the DSN route for the connection definition).

I've been scouring the MSDN docs for an appropriate SQLGet* function, but to no avail.

Any hints anyone (I'd love to hear that I've missed something obvious)?

Cheers,

Andrew


If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?


From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."


All my FoxTalk and other articles are available on my web site.


Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform