Amigos del Foro:
No me crea la Bd, cual es el error
No me crea la Bd, cual es el error
Â
 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 tryfwh 17.12, harbour 3.2.0, pelles C, bcc7, Ms-Sql