Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Diversas portas abertas
Message
From
07/02/2006 12:52:58
 
 
To
07/02/2006 12:38:10
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brazil
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01094285
Message ID:
01094329
Views:
10
Oi,
código exemplo:

SCAN
SQLInsert("INSERT INTO tabela (campos) VALUES (valores)")
ENDSCAN

PROCEDURE SQLInsert()
PARAMETERS cmdSQL
gcConnectSQLInsert="'gre','dbgre','gredb'"
STORE SQLCONNECT(&gcConnectSQLInsert) TO gnCHSQLInsert
IF gnCHSQLInsert <= 0
= MESSAGEBOX('Não pode estabelecer ligação!', 16, 'SQL Erro de Ligação!')
RETURN .f.
ENDIF
SQLEXEC(gnCHSQLInsert, cmdSQL)
wait window "A processar informação..." nowait &&timeout .1
= SQLDISCONNECT(gnCHSQLInsert)
RETURN(.t.)
ENDPROC

Espero que sirva como exemplo, obrigado,
Rui
Rui Trol
ruitrol@ruitrol.net
http:\\www.ruitrol.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform