Link to home
Start Free TrialLog in
Avatar of mahalakshmi_s
mahalakshmi_s

asked on

Generating SQL using ASA9

I created a table with 150 columns using interface in ASA9. Now my DBA wants the SQL of CREATE TABLE.
I dont have time to code and give him the SQL as every column name is lengthy too.
Also I may add, 40 more columns in future.
Is there anyway, I can generate SQL for my existing table ? Kindly help...
Thanks
M
Avatar of Joe Woodhouse
Joe Woodhouse

Sybase Central (shipped with ASA) can do this for you. Right click on the table and you should see something about "Generate DDL".
Avatar of mahalakshmi_s

ASKER

Am sorry Joe, I could not find "Generate DDL" at all :-(((((
any other way...its urgent
Sorry, I don't have a copy of ASA to check exactly where it's Sybase Central puts its commands. (Sybase has an unfortunate habit of not standardising the various Sybase Central versions for their different products...) If you have Sybase Central for ASA, it's there somewhere...
Sorry I couldnot find out any...
I was planning to use the foll command as of now...

select cname,coltype,length,nulls from sys.syscolumns where tname='#rps_500_temp' order by colno;
output to c:\#rps_500_temp.txt

That won't give you the SQL but it's a good start. 8-)
ASKER CERTIFIED SOLUTION
Avatar of Jan Franek
Jan Franek
Flag of Czechia image

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