You are here: Re: Deleting all data « MsSQL Server « IT news, forums, messages
Re: Deleting all data

Posted by Joe Hurzeler on 10/25/07 01:02

Hugo Kornelis <hugo@perFact.REMOVETHIS.info.INVALID> wrote in
news:p36ia39c3bhvcs5dfjsbluvphgus0nbqtu@4ax.com:

> On Thu, 26 Jul 2007 12:01:36 -0700, Tmuld wrote:
>
>>Is there a way to delete all data from a database - all tables and all
>>tables excluding system tables?
>>
>>sqlserver 2000?
>
> Hi Tmuld,
>
> DROP DATABASE xxx
> go
> CREATE DATABASE xxx
> -- add options here
> go
>

Might not be a bad idea to create a script to recreate the database and all
its objects before you start if you don't want to reinvent the wheel.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация