Hi H.HEMDAN ISMAILIA �EGYPT,
You said: so i have include my exe file in application deploy package under Application Folder and User Programs Menu.
Do you mean that you have created a Setup Project and add the Project Output to the Application Folder in File System view?
You also said: is any possible solution and i wanna know the Application file root on Installation project where its deploy this data .i just seemy project on Users Menu Programs
Do you mean that you want to know the install directory of the program? In Setup Project, there is a step during installing which allows the user to select a install directory. The install directory would often be like this: C:\Program Files\[Manufacturer]\[]ProductName] or C:\Program Files (x86)\[Manufacturer]\[]ProductName].
To solve the issue: the data source cannot be reached, we need to check the items below:
1. If the database can be accessed on another machine.
As default, the sql server database would not allow remote connections, we can follow the links below to enable it:
Sql server 2005:
http://support.microsoft.com/default.aspx/kb/914277
http://blogs.msdn.com/sql_protocols/archive/2006/09/30/SQL-Server-2005-Remote-Connectivity-Issue-TroubleShooting.aspx
Sql server 2008:
http://www.linglom.com/2009/03/28/enable-remote-connection-on-sql-server-2008-express/.
http://forums.asp.net/t/1338911.aspx.
Then we can open SQL Server Management Studio on another machine and try to connect to the server to see if we did enable it successfully.
2. If the connection string is correct.
Before we decide the Data Source in a connection string, we need to know the server name and the instance name. The server name is often a URL address or a IP address, such as www.hello.com or 192.168.2.3. We can know the instance name by following this thread: http://social.msdn.microsoft.com/Forums/en-US/sqlgetstarted/thread/eb58a7fe-4647-4eea-91e3-6ee369362d64.
This document is about instance name:
http://msdn.microsoft.com/en-us/library/ms143744(SQL.90).aspx.
When we know these two names, Data Source can be formatted as follows:
[server name]\[instance name].
The connection string can be as follows:
Server=myServerName\theInstanceName;Database=myDataBase;Trusted_Connection=True;
You can get more information about sql server connection strings from:
http://www.connectionstrings.com/sql-server-2005.
Let me know if this does not help.
Aland Li
Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.