?
Solved

Find data source name of sql server database

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Suggested Courses

765 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