Script out database schema

  • Hi all,

    I'm trying to write a script to script out the schemas for all the non system databases on a server.

    I was wondering if someone can help me out on where to start.

    Which table is this information stored?

    I only want to script out the Create Database command not the objects within the database.

    Thanks

  • Please don't cross post. It just wastes peoples time and fragments replies.

    No replies to this thread please. Direct replies to: http://www.sqlservercentral.com/Forums/Topic847427-338-1.aspx

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply