Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Visual database connection
Message
 
À
21/01/2014 19:25:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01592265
Message ID:
01592286
Vues:
69
I did as you told, but was not able to see the connection.

Below is how I did.

( in form button method)

1-First I connected as below:

lcServer="siteground150.com"
lcPort= 3306
lcDatabase= "mydatase"
lcUser= "user"
lcPassword="password"
lcStringConn="Driver={MySQL ODBC 5.1 Driver};Server=&lcServer;Port=lcPort;Option=16384;Stmt=;Database=&lcDatabase;Uid=&lcUser;Pwd=&lcPassword"

SQLSETPROP(0,"DispLogin",1)


thisform.status.Value = "connecting"
thisform.status.BackColor = RGB(255,242,236)

lnHandle=SQLSTRINGCONNECT(lcStringConn)

IF lnHandle < 1

= MESSAGEBOX("cannot connect " + STR(lnHandle))
RETURN

ENDIF

( connection was sucessful )



2-Then I tried to use the wizard to create the view:


Tools > wizards > all wizards > remote view wizard.

In ODBC datasources I cannot see the connection.

If I switch to connections, the box is empty.

Am I in the right way or doing something wrong.

Moises





>So do I.
>
>You can't bind directly to a SQL table. Use a remote view.
>
>>Thank you. But I mean connecting to a msql and not table.dbf
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform