Solved

Find data source name of sql server database

Posted on 2008-09-30
5
1,115 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
  • 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
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

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now