Need help to create database without SSMS

  • Hi folks!

    I've installed SQL Server 2008 Express Edition (just the engine!) into my client. Now, I need to use a SQL Server Manager tool different that SSMS: I can't use SSMS in my client.

    So, I'm trying to use 2 tools for management: Toad for SQL Server 4.1 Freeware and SQL Manager 2008 For SQL Server Lite (from EMS).

    My problem is that in both tools, when I'll create database, I get the error message: The logical file name "MyDB" is already in use. Choose a different name.

    I don't know why it's in use 'cause I've just installed the SQL Server and I don't create any database... my SQL Server is with no one database, zero database!

    I've already uninstalled the SQL Server and delete all folder into Program Files, so I've reinstalled the SQL Server and problem still happens.

    I'm using de sa user to do this operations.

    What's wrong? Please, I need help.

  • Run this in your query tool:

    select *

    from master.sys.sysaltfiles

    where name = 'MyDB';

    Try that, see what it finds.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • Definitely use GSquared's query, but I have a question, you can use 3rd party tools but not vendor supplied tools? I'm not sure that makes any sense..

    You could always use the SQLCMD command line tool and issue the CREATE DATABASE command directly.. Also look in the express instances data directory to see what database files are there.

    CEWII

  • I know that it looks crazy but it's real 'cause I can't install Power Shell into my client 'cause he doesn't have original Windows and it doesn't validate the install...

    Here in my job everything is original and I use SSMS with no problem but I'm with this problem into my client.

  • About GSquared's query: the result has no line... nothing!

    There's another detail: ANY name I use I get the error.....:hehe:

  • He doesn't have a licensed copy of Windows?

    I recommend convincing him to shift to a free OS (FreeBSD is my favorite in that category, but lots of others like Ubuntu Linux instead), and a free database (MySQL is good). Then you don't have to worry about licensing issues, and so on. And, with WINE, he can probably run whatever Windows programs he needs, if any.

    Trying to support an illegal copy of Windows will just get you more pain than it's worth. If he wants free, he should get what's officially free. Otherwise, the risk of ending up needing a security update that he can't get is just about 100%.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • GSquared (9/15/2009)


    Trying to support an illegal copy of Windows will just get you more pain than it's worth.

    That's reason I don't install Power Shell and NO ONE program there... he's doing everything alone: I'll give just the database to him...

    But, thanks for alert.

    Any idea about how to solve this problem?

  • On a matter of principle, I don't support illegal software. I'd be doing that indirectly if I go any further on this. I have too much respect for the amount of work that goes into building, marketing, selling, etc., to violate that.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • Yes, I agree with you...

    I'm trying to convence (is this word correct?) this client to use original software... there is the Open Licence that offers good price and a easy set of payment...

    Here in my job is everything original...

Viewing 9 posts - 1 through 8 (of 8 total)

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