How many MSSQL DBs are present on a server? [message #511630] |
Tue, 14 June 2011 05:47 |
shamsh_pervaiz
Messages: 22 Registered: September 2005 Location: bangalore
|
Junior Member |
|
|
Hi All,
I have got a task to find what all MSSQL DBs are present on a given server.
Can any one help me on this, I heard about the sqlscan.exe which will list all the available sql dbs on any given ip address.
But for me it does not work as it also needs sql server installed on the local machine.
So is there a way to find how many or which mssql dbs are present on any given unix server.
Thanks in advance
Shamsh Pervaiz
|
|
|
|
|
Re: How many MSSQL DBs are present on a server? [message #511649 is a reply to message #511648] |
Tue, 14 June 2011 06:36 |
shamsh_pervaiz
Messages: 22 Registered: September 2005 Location: bangalore
|
Junior Member |
|
|
Sorry for that.. But I have task to find both Mssql and Mysql DBs.
So was more concerned about the MSSQL DBs and posted here..
"Microsoft SQL server in Unix?
Is this a trick question?"
Not sure what it is.. I 'm working for MSSQL/MYSQL for the first time.. No idea how the server is installed and how to check.
Hence require help on this..
|
|
|
|
|
|
Re: How many MSSQL DBs are present on a server? [message #511658 is a reply to message #511649] |
Tue, 14 June 2011 07:15 |
|
Mahesh Rajendran
Messages: 10708 Registered: March 2002 Location: oracleDocoVille
|
Senior Member Account Moderator |
|
|
Well, MS SQL will not run in Unix.
For MySQL, it is quite simple.
Just issue
http://dev.mysql.com/doc/refman/5.1/en/show-databases.html
mahesh@flobee ~$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1061
Server version: 5.0.51a-3ubuntu5.8 (Ubuntu)
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> show databases;
+----------------------+
| Database |
+----------------------+
| information_schema |
| academic_appointment |
| hgcentral |
| joomla |
| mydb |
| mysql |
| reddien |
| scott |
| winenews |
+----------------------+
9 rows in set (0.00 sec)
[Updated on: Tue, 14 June 2011 07:16] Report message to a moderator
|
|
|
|
|
|