Criar banco de dados via sql
Como faço para criar um banco de dados via sql e runtime no delphi 7?
Obrigado
Obrigado
Jonnymarques
Curtidas 0
Respostas
Vanius
21/05/2004
Boa tarde Fera.
tente:
with Query1 do
begin
Close;
SQL.Clear;
SQL.Add(´CREATE DATABASE NomeDataBase´);
ExecSQL;
end;
[]s,
Vanius
tente:
with Query1 do
begin
Close;
SQL.Clear;
SQL.Add(´CREATE DATABASE NomeDataBase´);
ExecSQL;
end;
[]s,
Vanius
GOSTEI 0
Jonnymarques
21/05/2004
Se colocar Query1.Sql.Text := ´Select * from....´
ele não apenas fechar como substitui o que tiver no Sql
Ficaria
with Query1 do
begin
SQL.Text := ´CREATE DATABASE NomeDataBase´;
ExecSQL;
end;
ISTO DIMINUIRIA CÓDIGO OBRIGADO
ele não apenas fechar como substitui o que tiver no Sql
Ficaria
with Query1 do
begin
SQL.Text := ´CREATE DATABASE NomeDataBase´;
ExecSQL;
end;
ISTO DIMINUIRIA CÓDIGO OBRIGADO
Boa tarde Fera.
tente:
with Query1 do
begin
Close;
SQL.Clear;
SQL.Add(´CREATE DATABASE NomeDataBase´);
ExecSQL;
end;
[]s,
Vanius
GOSTEI 0
Jonnymarques
21/05/2004
Coloquei isso
with Dm.TqTmp do
begin
Close;
SQL.Clear;
SQL.Add(´CREATE DATABASE C:\DB\xyz.gdb´);
ExecSQL;
end;
não funcionou... não entendo uma vez eu já fiz isso e funcionou
with Dm.TqTmp do
begin
Close;
SQL.Clear;
SQL.Add(´CREATE DATABASE C:\DB\xyz.gdb´);
ExecSQL;
end;
não funcionou... não entendo uma vez eu já fiz isso e funcionou
Boa tarde Fera.
tente:
with Query1 do
begin
Close;
SQL.Clear;
SQL.Add(´CREATE DATABASE NomeDataBase´);
ExecSQL;
end;
[]s,
Vanius
GOSTEI 0