SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Need help to create database without SSMS


Need help to create database without SSMS

Author
Message
willian-1136841
willian-1136841
SSC Rookie
SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)

Group: General Forum Members
Points: 49 Visits: 31
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.
GSquared
GSquared
SSC-Insane
SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)

Group: General Forum Members
Points: 23449 Visits: 9730
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
Elliott Whitlow
Elliott Whitlow
SSChampion
SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)

Group: General Forum Members
Points: 10068 Visits: 5314
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
willian-1136841
willian-1136841
SSC Rookie
SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)

Group: General Forum Members
Points: 49 Visits: 31
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.
willian-1136841
willian-1136841
SSC Rookie
SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)

Group: General Forum Members
Points: 49 Visits: 31
About GSquared's query: the result has no line... nothing!

There's another detail: ANY name I use I get the error.....Hehe
GSquared
GSquared
SSC-Insane
SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)

Group: General Forum Members
Points: 23449 Visits: 9730
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
willian-1136841
willian-1136841
SSC Rookie
SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)

Group: General Forum Members
Points: 49 Visits: 31
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?
GSquared
GSquared
SSC-Insane
SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)SSC-Insane (23K reputation)

Group: General Forum Members
Points: 23449 Visits: 9730
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
willian-1136841
willian-1136841
SSC Rookie
SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)SSC Rookie (49 reputation)

Group: General Forum Members
Points: 49 Visits: 31
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...
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search