No me crea la Bd, cual es el error
Code: Select all
cCad := "Provider=SQLOLEDB;"
cCad += "Server=PYSASERVER;"
cCad += "Database=PysaBD;Uid=sa;Pwd=Pysa123456;"
TRY
oCon := CreateObject( "ADODB.Connection" )
CATCH oError
MsgStop( oError:Description )
END
TRY
oCon:Open( cCad )
CATCH oErr
MsgInfo( "Could not open Connection to Database " )
RETURN(.F.)
END TRY
cSql:="CREATE TABLE IF NOT EXISTS cabguit AS (SELECT * FROM cabguia)"
Try
oCon:Execute( cSQL )
Catch
MsgInfo( "Table Create BIN Failed" )
End try