Click here to Skip to main content
15,923,142 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
Hi
I need small help . It is possible An ASP.Net hosted application connect to local SQLServer which is running on my machine.

pls Please give me some idea how I can achieve this .

pls Please help

Thanks
Posted
Updated 18-Jun-13 1:29am
v2
Comments
Mahesh Bailwal 18-Jun-13 3:17am    
Is Asp.Net application and SQLServer are on same machine?
manoj12.shrivastava 18-Jun-13 3:49am    
No my asp.net application hosted on some domain address suppose
www.xyz.com
and my sqlserver is running on my machine ...
VICK 18-Jun-13 3:22am    
Where is your application hosted???

On some domain OR on IIS ????
manoj12.shrivastava 18-Jun-13 3:50am    
no both are individual
application hosted on xyz.com
and sqlserver is running on my machine
Osman24 18-Jun-13 4:01am    
What kind of Internet Connection do you use? It is important because to able to show your computer to your website domain you will probably need port forwarding. If you have not access to your routers you can not, if you have, yes you can achieve this.

to achieve this.. you should be having access to your local machine via some network.. ie.. your machine should be on some public network (having publicly accessed WAN IP)... and than through that Wan IP along with credentials of your local SQL in "web.config"... connectivity would be easy...
 
Share this answer
 
Create a ConfigurationString which is xml file in that you have to provide the Sql authentication through that you can able to connect your front end with the sql.
 
Share this answer
 

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