Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFp x SQL
Message
From
07/07/2002 22:01:19
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00675807
Message ID:
00675993
Views:
15
Veja a função:
SQLEXEC(nConnectionHandle, [cSQLCommand, [cCursorName]])
no help do VFP.

Exemplo:
nID = SQLSTRINGCONNECT("driver={SQL Server}; server=NomeDoServidor; uid=SeuID; pwd=SuaSenha")
IF nID < 0
  MESSAGEBOX("Falha na tentativa de acesso ao SQL Server",16,"Status da Conexão")
  return
EndIf
SQLEXEC(nID, "USE Clientes") && Abre o banco Clientes
SQLEXEC(nID, 'SELECT * FROM Contatos', 'curContatos') && Abre a tabela Contatos jogando os dados cursor curContatos
Previous
Reply
Map
View

Click here to load this message in the networking platform