Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have made a project on vs2010 using windows forms and sql server 2005. database is not showing in management stdio's project folder :(

That's why
I m not able to make its backup.
not able to send it as it doesnt work on any other computer and gives sql instance error
not even i can submit it to my teacher :(

How can i know where it is saved?

I already search my computer.
Posted
Updated 20-Jun-11 20:05pm
v2

What you are asking is not clear.

If you have created a database in your project, it should be in project directory itself.
Search *.mdf or *.sdf (if compact)
 
Share this answer
 
Comments
Sweety Khan 21-Jun-11 2:55am    
no i m not saying this. a windows form project has a connection with database. it works fine on my laptop but when i send to someone it doesnot work n give sql connection instance error. i want to solve this
Prerak Patel 21-Jun-11 3:26am    
Your laptop has database, and SQL instance for which application is running. right?
Then, do you send database with your application to another machine? Other machine has same SQL instance name? If no, try configuring your connection string.
Sweety Khan 21-Jun-11 3:58am    
yes u got my point. i want to send database too so tht it can run on other computer but how?
Sweety Khan 22-Jun-11 13:11pm    
ohh now i got it wht u r saying. project's .mdf and .sdf files are in c->programfiles->sql server->mssql1 or mssql2 -> data. they should be sent with database project but before tht they have to be detach from management stdio.
Prerak Patel 22-Jun-11 13:13pm    
You got me right... :)
One project is not showing in another project at all. The projects can be placed in one Solution and appear in a single tree in the Solution Explorer.

If you still have a problem, can you post your solution file? Probably, project files, too.

—SA
 
Share this answer
 
Comments
Sweety Khan 21-Jun-11 2:55am    
no i m not saying this. a windows form project has a connection with database. it works fine on my laptop but when i send to someone it doesnot work n give sql connection instance error. i want to solve this
Sergey Alexandrovich Kryukov 22-Jun-11 17:34pm    
What you say is: "sql project is not showing in management stdio project folder". But it is not supposed to show there. You need to support integral solution is projects depend on each other, send all source code including *.*proj and *.sln file and not use any absolute path names. You also should setup project dependency within the solution correctly. If you do all that correctly you will be fine.
--SA

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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