Ruby Hunter wrote: > Basically it [will check] the format by checking the "create table" > or "insert into" commands and if the format is ok it will continue > to next line and if incorrect it would print ERROR and check teh > next line. Why do you want to do that? > can anyone help me out with the code and tell me what should > be there to in the following section and and get it working for me You need to write an SQL parser. It isn't diffrent than writing a parser for a programming language like pascal or C or whatever. It's a science in its own. But, again, why do you want to do that in the first place? -- Posted via http://www.ruby-forum.com/.