Not sure what exactly you are trying to do here, but I think this is one of these two.
Option 1 Attach the database stored on the remote shared drive to the local SQL Server
Note that this is only possible in SQL Server 2008 R2. If you are using SQL Server 2008, this is not an option.
Check it out for more details.
http://blogs.msdn.com/b/varund/archive/2010/09/02/create-a-sql-server-database-on-a-network-shared-drive.aspx
Option 2: Connect to a remote instance of SQL Server from the local computer
If this database is already attached to an instance of SQL Server that runs on the same computer, it is much better to simply connect to this instance from SSMS than to try to connect the database from remote storage.
To do this, you need to enable TCP / IP in SQL Server Configuration Manager. Its network configuration is SQL Server node. Make sure you enable TCP / IP and also configure the inclusion of an IP address for listening (this applies to TCP / IP properties).
In addition, you want to enable remote connections on the remote instance. This is done from SSMS -> instance properties -> Connection tab
When this is done, you will be able to connect to the remote instance from the local SSMS by entering the IPaddress / instance name. For example, 192.168.0.125/{instance_name} or only the IP address if this is the default instance.
source share