Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Find data source name of sql server database

Posted on 2008-09-30
5
Medium Priority
?
1,180 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 200 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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
This month, Experts Exchange sat down with resident SQL expert, Jim Horn, for an in-depth look into the makings of a successful career in SQL.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Suggested Courses

618 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