Results 1 to 12 of 12

Thread: ERROR 21776, pls help

  1. #1
    Join Date
    Nov 2008
    Posts
    5

    ERROR 21776, pls help

    hi,

    i don't know how, but i got a database with no name, it's just a space. now i can't drop the database, i'm getting a error 21776. how can i delete a database with no name.

    please help.

  2. #2
    Join Date
    Nov 2008
    Posts
    5

    Question

    Quote Originally Posted by saif016
    hi,

    i don't know how, but i got a database with no name, it's just a space. now i can't drop the database, i'm getting a error 21776. how can i delete a database with no name.

    please help.

    anyone?????

  3. #3
    Join Date
    Sep 2002
    Posts
    5,938
    What do you get with sp_helpdb? Tried rename it with sp_renamedb?

  4. #4
    Join Date
    Nov 2008
    Posts
    5
    Quote Originally Posted by rmiao
    What do you get with sp_helpdb? Tried rename it with sp_renamedb?
    dear sir, i couldn't even select the database with query analyzer, how can i write code with it.....

    is there any sp command to delete a db without mention it's name??

  5. #5
    Join Date
    Nov 2008
    Posts
    5
    i've solved the problem, just use this command:

    drop database [ ]

    why the hell u professional couldn't find this answer, i don't know!!!

  6. #6
    Join Date
    Sep 2002
    Posts
    5,938
    So it has name with blank. Why the hell you name the db blank? I don't know!!!

  7. #7
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    saif016

    You are not paying anyone to get an answer so keep your attitude with yourself. It is a professional forum so act like one.

    rmiao pointed you in the right direction, you do not have to be in the context of blank database to run it.

  8. #8
    Join Date
    Nov 2008
    Posts
    5
    hey, why so hostile?? i was just surprised that no one give me this simple solution, thats all. did u see that if u just press space on database creation it create a database with a blank name. why is that option enable. it's a god damn bad option for new kidz like me.....

  9. #9
    Join Date
    Sep 2002
    Posts
    5,938
    If you want to complain of that, ask Microsoft. This is wrong place.
    Last edited by rmiao; 11-05-2008 at 02:11 PM.

  10. #10
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    it's a god damn bad option for new kidz like me
    so grow up and learn to be respectful.

  11. #11
    Join Date
    Dec 2004
    Posts
    502
    why the hell u professional couldn't find this answer, i don't know!!!
    hey, why so hostile??
    It's pretty obvious you were really proud of yourself for finding the solution yourself and you wanted to brag about it. Well clap clap for you, noob. News flash: you're supposed to find solutions yourself. So like skhanal said, grow up and drop the attitude.

  12. #12
    Join Date
    Nov 2008
    Posts
    1
    Show result for

    select * from master..sysdatabases

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •