Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old November 16th, 2006, 02:16 AM
Registered User
 
Join Date: Nov 2006
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Copy table structure

Hi,

I want to copy the table structures to a file of all the tables that are there in my SQL Server database.

How can i do thast???

Thanks and regards

Sagar
  #2 (permalink)  
Old November 16th, 2006, 02:39 AM
Friend of Wrox
Points: 1,536, Level: 15
Points: 1,536, Level: 15 Points: 1,536, Level: 15 Points: 1,536, Level: 15
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2006
Location: , MI, USA.
Posts: 475
Thanks: 0
Thanked 9 Times in 9 Posts
Default

Open Enterprise Manager.
Drill down to the desired database.
Drill down to tables.
On the right side of the screen where all the tables are, right click the mouse.
Select "ALL TASKS"
Select "Generate SQL Script..."
Follow your nose from there...

--Jeff Moden
  #3 (permalink)  
Old November 16th, 2006, 03:06 AM
Registered User
 
Join Date: Nov 2006
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thaks a lot !!!

could you also tell me that what are the possible causes that mark a database in sql server as suspect mode and how to recover it.

thanks again

cheers

  #4 (permalink)  
Old November 16th, 2006, 03:16 AM
Friend of Wrox
Points: 1,536, Level: 15
Points: 1,536, Level: 15 Points: 1,536, Level: 15 Points: 1,536, Level: 15
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2006
Location: , MI, USA.
Posts: 475
Thanks: 0
Thanked 9 Times in 9 Posts
Default

That would be in Books Online (comes with SQL Server) under "suspect database". Way too long to post here. Read everything before you even think of starting the recovery.

--Jeff Moden


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy whole structure of table in #temp table maulik77 SQL Server 2000 2 December 21st, 2006 02:42 AM
Splitting Table into more efficient structure MauiSpud Access 7 May 12th, 2006 07:35 AM
change table structure Duncan SQL Server 2000 1 March 3rd, 2005 04:10 AM
Printing of Table structure Vanaj SQL Server 2000 4 July 16th, 2004 01:26 AM
Table / DB Structure mtangorre SQL Server 2000 1 June 27th, 2003 01:32 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.