ok mais como o fox aceita se eu criar as views por script ou seja em vez de fazer a view no criador de View eu faso por prg
Exemplo:
CREATE SQL VIEW "C_CAIXAS_CONSULTA" ;
REMOTE CONNECT "consulta" ;
AS SELECT Caixa.des_caixa, Movimento_caixa.cod_movimento,;
Movimento_caixa.dth_abertura,;
Movimento_caixa.cod_usuario,Movimento_caixa.val_abertura,;
Movimento_caixa.tip_abertura, 1.000-1.000 as valor_caixa, space(30) as;
nome_usuario,Caixa.cod_caixa;
FROM caixa Caixa left outer join movimento_caixa Movimento_caixa;
on (Caixa.cod_caixa = Movimento_caixa.cod_caixa and;
movimento_caixa.log_fechado = .f.)
DBSetProp('C_CAIXAS_CONSULTA', 'View', 'UpdateType', 1)
DBSetProp('C_CAIXAS_CONSULTA', 'View', 'WhereType', 3)
DBSetProp('C_CAIXAS_CONSULTA', 'View', 'FetchMemo', .T.)
DBSetProp('C_CAIXAS_CONSULTA', 'View', 'SendUpdates', .F.)
DBSetProp('C_CAIXAS_CONSULTA', 'View', 'UseMemoSize', 255)
DBSetProp('C_CAIXAS_CONSULTA', 'View', 'FetchSize', -1)
DBSetProp('C_CAIXAS_CONSULTA', 'View', 'MaxRecords', -1)
DBSetProp('C_CAIXAS_CONSULTA', 'View', 'Tables', 'caixa,movimento_caixa')
DBSetProp('C_CAIXAS_CONSULTA', 'View', 'Prepared', .F.)
DBSetProp('C_CAIXAS_CONSULTA', 'View', 'CompareMemo', .T.)
DBSetProp('C_CAIXAS_CONSULTA', 'View', 'FetchAsNeeded', .F.)
DBSetProp('C_CAIXAS_CONSULTA', 'View', 'FetchSize', -1)
DBSetProp('C_CAIXAS_CONSULTA', 'View', 'Comment', "")
DBSetProp('C_CAIXAS_CONSULTA', 'View', 'BatchUpdateCount', 1)
DBSetProp('C_CAIXAS_CONSULTA', 'View', 'ShareConnection', .T.)
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement