Link to home
Start Free TrialLog in
Avatar of stewartp
stewartp

asked on

Creating MS SQL Views from Delphi

I am using an SQL object in Delphi and supplying the following :-
SQL.add('CREATE VIEW TEST AS');
SQL.add('SELECT * FROM Type');
SQL.Prepare;
ExecSQL;

The view appears in MSSQL, but when I try to access it, SQL complains that
'The object 'TEST' does not exist in database 'Titan'.'

If I go into the view and Run it, all then works well.  

Can anybody point out the problem please.

Stewart Page
ASKER CERTIFIED SOLUTION
Avatar of yk030299
yk030299

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of stewartp
stewartp

ASKER

Thanks, Silly me!!!
:) glad to help.
I also have this kind of problem before.
it spend me for a whole morning so old silly me help.  haha