Solved

I want to create a sql database in visual studio by selecting the Data Connections(right click) then Create New Sql Server Database but Nothing comes up in the server field how can i create database?

Posted on 2013-02-04
7
194 Views
Last Modified: 2013-02-05
I want to create a new sql database but unfortunately i could not create it because it asks me to choose server and then choose if windows or sql authentication then it asks me a name for the database, but since server comes empty and altough i tried computer name or the ip address i gave me the error in the second attachment ,how can i create one sql database?
newdb.JPG
error.JPG
0
Comment
Question by:nicedone
  • 3
  • 3
7 Comments
 
LVL 39

Expert Comment

by:lcohan
ID: 38852716
"but since server comes empty"...

Do you have access to ANY SQL Server or did you installed SQL 2008 Developer Edition (for instance - it's for free)?

",how can i create one sql database?"

Only after you have access to a SQL Server then you can connect to a it and create a database...
0
 
LVL 15

Expert Comment

by:Aaron Shilo
ID: 38854009
hi

if the sql server is installed localy just enter "LOCALHOST" or "." or "MACHINENAME"
use windows authentication.

if the server is remotly installed ask the admin to grant you a user/password and instance address so you can connect and create a new database.

Aaron.
0
 

Author Comment

by:nicedone
ID: 38854040
Hi, it is local but i enter localhost or the machine name (tried both) and i give it a name but i still get the error in the second picture?
0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
LVL 15

Expert Comment

by:Aaron Shilo
ID: 38854056
ok so it seems you have maybe a NAMED INSTANCE.

got to "start->programs->mssql server->configuration tools->sql server configuration manager " and under services sql server(INSTANCENAME) you instance name should appear in the brackets.

then in ssms enter ./INSTANCENAME OR MACHINENAME/INSTANCENAME.
0
 

Author Comment

by:nicedone
ID: 38854877
Hi unfortunately i dont see an instance name in configuration manager and i dont know how to add that , i posted the screen when i open sql server conf. manager when services selected any recommendation that i should do?
sql.JPG
0
 
LVL 15

Accepted Solution

by:
Aaron Shilo earned 500 total points
ID: 38855135
ok you have sql server express installed

just use :    .\sqlexpress
0
 

Author Closing Comment

by:nicedone
ID: 38855349
thnk you
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

Suggested Solutions

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
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.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

919 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

16 Experts available now in Live!

Get 1:1 Help Now