Solved

Find data source name of sql server database

Posted on 2008-09-30
5
1,155 Views
Last Modified: 2013-12-25
I am trying to find the "data source" name of a sql server database for a vb connection string.  sql server is running but there is no data base administrator here that I can ask.   I would like to connect to the pubs database for testing.  I can see the pubs database is there but get an sql server does not exist or access denied error.  Not sure which is the error because I'm not sure the data source I am using is correct.
0
Comment
Question by:utahalee
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 39

Expert Comment

by:BrandonGalderisi
ID: 22606675
The SQL Server Name goes in the "data source" in a connection string.  Also, make sure you have the correct username/password or you are using a trusted connection.


Here's some examples:
http://www.connectionstrings.com/?carrier=sqlserver
0
 

Author Comment

by:utahalee
ID: 22614617
Thanks for the reply and answer.

I do know the database name, user id, and password.

 How do I find the actual SQL Server Name for the data source?
 I can look at the databases with SQL Server Enterprise Manager.

From the first screen I see:
Root (folder)
    Microsoft SQL Servers
      Sql Server Group
         then the databases are displayed

Is "Sql Server Group" the actual name I am looking for as the data source in the connection string?
0
 
LVL 39

Expert Comment

by:BrandonGalderisi
ID: 22614956
Under Microsoft SQL Servers, SQL Server Group what you see is the names of the database SERVERS (ie. the SQL Server Names).

If you drill down into one of them further, you will find the database names.
0
 

Author Comment

by:utahalee
ID: 22616587
What I see under SQL Server Group is:
  (LOCAL) (Windows NT)
   Under this is "Databases" which I can expand to see the database names.

There is nothing else under SQL Server Group.

Is  "Windows Nt"  the data source name I'm looking for to use in my connection string then?  

Thanks for answering my questions!




0
 
LVL 39

Accepted Solution

by:
BrandonGalderisi earned 50 total points
ID: 22616723
ok... (LOCAL) is a different way to represent the LOCAL physical computer.  So right click on my computer, properties, computer name.  That is your SQL ServerName.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question