Click here to Skip to main content
15,894,013 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have make an installer with prerequisites .net3.5,sqlexpress(2005).
Problem is that, my application is installed successfully.
In the application, where i have used stored procedure, application throw an error of "database connection can not open, it may due to remote access"
while if i am writing query in my code then it is working properly.
i am not getting why it is happening
Posted

 
Share this answer
 
Comments
kunvar.nitin 9-Mar-11 2:53am    
Thanks a lot.
I have got my answer.
What problem do you see here? Where is your effort? There are no special or tricky techniques here, so why not trying to make it first?
 
Share this answer
 
Comments
m@dhu 9-Mar-11 0:19am    
This should be a comment rather than an answer and copy and pasting others information is rude.
kunvar.nitin 9-Mar-11 1:03am    
i got an error on using stored procedure i.e.
"an error has occurred while establishing a connection to the server.
when connecting to the sqlserver2005, this failure may be caused by the fact that under the default setting sql server does not allow remote connections.
(Provide: SQL Network interface, error:26-error locating server/instance specified)"

AND i am using simple query in code on login page, that is working properly.
Means Query in code is working while Stored procedure is not working.
SQL Viewes are also working properly

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