Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get database build script via sql code

Status
Not open for further replies.

hmckillop

Programmer
Oct 30, 2001
1,540
GB
Hello

i dont have access to my SQL database only access to asp pages. So I planned to run a script on one of the asp pages which would show an actual database build script (note the db only currently contains tables - with possible indexes) which I would then paste into QA and then run locally - thus allowing me to rebuild the database schema locally.
Any quick suggestions - i have a way of doing it but it seems it will take a while and just wanted to see if there was a shorter way.
Thanks in advance

"I'm living so far beyond my income that we may almost be said to be living apart
 
You would have to use the INFORMATION_SCHEMA views to get the information.

Denny

--Anything is possible. All it takes is a little research. (Me)

[noevil]
(My very old site)
 

I had been using the system tables which I suppose is the same data as information_schema. I just thought maybe there was a "magic" stored proc which would create build scripts but after running profiler whilst scripting another database I see that doesnt happen.
Thanks for reply though.

Cheers


"I'm living so far beyond my income that we may almost be said to be living apart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top