Re: SQL DB

From: Hari Prasad (hari_prasad_k_at_hotmail.com)
Date: 07/05/04

  • Next message: William: "Re: SQL DB"
    Date: Mon, 5 Jul 2004 18:45:41 +0530
    
    

    Hi,

    Are you trying to delete the data from table or remove the database fully.

    Command to remove database. (Can anyone tell me the function that will
    allow me to delete my current db?)

    alter_database <dbname> set single_user with rollback immediate
    go
    drop database <dbname

    or
    from Enterprise manager .. Expland databases.. Select database.. Right click
    and Delete

    command to delete data from table (I need to delete all JobId's from the
    db.)

    See

    DELETE command in books online.

    --
    Thanks
    Hari
    MCDBA
    "William" <anonymous@discussions.microsoft.com> wrote in message
    news:267dd01c46292$c42c95a0$a501280a@phx.gbl...
    > G'Day folks,
    >
    > My question is related to deleting an existing db in sql.
    >
    > The reason why I need to delete the existing db in sql is
    > to update the db from my log file.
    >
    > Example for the table jobs, I need to delete all JobId's
    > from the db.
    >
    > Can anyone tell me the function that will allow me to
    > delete my current db?
    >
    > Sincerely your's.
    

  • Next message: William: "Re: SQL DB"

    Relevant Pages

    • Re: Cannot use a CONTAINS or FREETEXT predicate on table...
      ... command from the context of the database I wish to publish. ... This database is not enabled for publication. ... The replication agent has been successfully started. ... Source: Microsoft SQL Native Client ...
      (microsoft.public.sqlserver.replication)
    • Re: Upgrade Access backend to SQL database
      ... end to SQL tables rather than the current Access table structure. ... If the database is well designed in Access and then upgraded to SQL Server ... It's a five-star book at Amazon.com for a very good reason. ...
      (microsoft.public.access.modulesdaovba)
    • Re: SQL update in SQL database issue
      ... I am thinking if i change the database from Foxpro to SQL or MS Access, ... program installation require, if a table corrupted, user can just attach ... should I use SQL pass through command to update the Foxpro Database or ...
      (microsoft.public.fox.programmer.exchange)
    • inusual reindexing behavior in SQL 2000
      ... We have SQL 2000 standard edition installed on windows ... It would appear that the database ... 7GB transaction log backup using ApexSQL Log reader. ... Is there any other reason that the database would be reindexed without ...
      (microsoft.public.sqlserver)
    • RE: Event ID 447
      ... Please made a backup for Exchange database first. ... Please run the eseutil /mh command to see if the mailbox store is clean ... Microsoft CSS Online Newsgroup Support ...
      (microsoft.public.windows.server.sbs)