sam. 23 avril 2005, 12h35
P. GILLES
atoutfox.public.association
Re: Omnis7 vers DBF
copie de l'aide fox
sinon poste sur microsoft.public.fr.fox plus approprié pour les probs
techniques
------------------------------------
Creates a named connection and stores it in the current database.
CREATE CONNECTION [ConnectionName | ?] [DATASOURCE cDataSourceName]
[USERID cUserID] [PASSWORD cPassWord] [DATABASE cDatabaseName]
| CONNSTRING cConnectionString]
Parameters
ConnectionName
Specifies the name of the connection to create.
?
Displays the Connection Designer from which you can create and save a
connection.
DATASOURCE cDataSourceName
Specifies the name of the ODBC data source for the connection.
USERID cUserID
Specifies your user identification for the ODBC data source.
PASSWORD cPassWord
Specifies your password for the ODBC data source.
DATABASE cDatabaseName
Specifies a database on the server to which the connection is made.
CONNSTRING cConnectionString
Specifies a connection string for the ODBC data source. The connection
string can be used instead of explicitly including the ODBC data source, the
user identification, and the password.
Remarks
If you omit the optional arguments, the Connection Designer appears,
allowing you to interactively create a connection.
Example
The following example assumes an ODBC data source called MyFoxSQLNT is
available. The testdata database is opened, and a connection named Myconn is
created. DISPLAY CONNECTIONS is used to display the named connections in the
database. The connection is then removed from the database with DELETE
CONNECTION.
Copy Code
CLOSE DATABASES
OPEN DATABASE (HOME(2) + 'data\testdata')
CREATE CONNECTION Myconn DATASOURCE "MyFoxSQLNT" USERID "<userid>" PASSWORD
"<password>"
CLEAR
DISPLAY CONNECTIONS && Displays named connections in the database
DELETE CONNECTION Myconn && Removes the connection just created
See Also
"alain-yves.bouix" <alain-yves.bouix@wanadoo.fr> a écrit dans le message de
news: Dd2j%23usRFHA.464@serveur...
> Merci
> mais ou ODBC dans fox ?
> Alain
>
> "P. GILLES" <pgilles_enlevezca_@ikoonet.com> a écrit dans le message de
> news:iJHQTmjRFHA.1720@serveur...
> de
>> news: hRzRvIgRFHA.464@serveur...
>> > Bonjour à tous
>> > de la Guyane Francaise et de Kourou en particulier
>> >
>> > comme toubib (et aussi fana de Fox)
>> > j'ai "herité" d'une base de donnée médicale d'un confrère médecin
> disparu
>> > ......
>> >
>> > bref c'est de l'omnis7 que je voudrai transformer en DBF ou XML ou
>> > autre
>> > mais ensuite lisible sous VFP7
>> > afin de recuperr un minimum de données médicales precieuses pour ses
>> > anciens
>> > patients
>> >
>> > Quelqu'un connait il une moulinette ?
>> > ou, au pire, pourrai faire la conversion a partir d'omnis, puis me la
>> > renvoyer
>> >
>> > A vous lire
>> > Alain
>> >
>> >
>>
>>
>
>
Permalink : http://www.atoutfox.org/nntp.asp?ID=0000001369