不要go createcom.CommandText:='Create DATABASE aa ';
    createcom.CommandText:=createcom.CommandText+'ON ( NAME = ''aa_dat'',';
    createcom.CommandText:=createcom.CommandText+'FILENAME = ''C:\Microsoft SQL Server\MSSQL\Data\aa.mdf'',';
    createcom.CommandText:=createcom.CommandText+'SIZE = 10,MAXSIZE = 50,FILEGROWTH = 5 ) LOG ON ';
    createcom.CommandText:=createcom.CommandText+'( NAME = aa_log,';
    createcom.CommandText:=createcom.CommandText+'FILENAME = ''C:\Microsoft SQL Server\MSSQL\Data\aa.ldf'',';
    createcom.CommandText:=createcom.CommandText+'SIZE = 5MB,MAXSIZE = 25MB,FILEGROWTH = 5MB ) ';
    createcom.Execute;