Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hey guys
i want to open an ready project in my vs 2012
i've open all thing and every thing is ok
but
about database when i want to open it and see tables and data
or any thing in server expelorer
show me this error and i cant even creat a new Microsoft DataBase File :( allways show me this erorr
Image Bellow :(
[^]

What I have tried:

i treid Repair feature in Unistall Program\ And Tried To Repair SQL Data Tools but not working at all :(


i attach my whole project for you
Uploadfiles.io - eshop.zip[^]
with the database
Uploadfiles.io - database.zip[^]
Posted
Updated 14-May-17 22:27pm
v2

1 solution

You can't attach the database for the reason given in the error message: "the server was not found or was not accessible".

Start by looking at your connection string and find out what SQL instance you are trying to connect to. Then look at what the instance(s) you have available are called, and use a connection string that matches the correct one of those.

We can't do that for you: we have no access to your network, or your code!
 
Share this answer
 
Comments
Member 13019612 15-May-17 4:28am    
i attach my project and my database in the question bro
here is database
https://ufile.io/h7ri3
OriginalGriff 15-May-17 4:30am    
A) I'm not wading through your whole project trying to work out what you are supposed to be doing: that is your job, not mine.
B) The database is irrelevant: it's the SQL Server instance that that can;t be found to use the DB.
Member 13019612 15-May-17 4:33am    
i knew what is exactly this error but i dont know how to fix it !
so please give me a solution or a way to get out !
OriginalGriff 15-May-17 4:46am    
I have given you the solution!
We can't tell you what connection string to use, we have no access to your network to identify SQL instances, much less know what user ID and passwords you are expected to use...
Member 13019612 15-May-17 7:49am    
its not have any us pw :( its a simple database 1 table and 5 column just it

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900