Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am connecting two systems in network. I am using sql server as centralised. so i need access database in one system from another system

I am using following connections string but it is not working

 Public con As New SqlConnection("Data Source=NILE-WINDOWS\SQLEXPRESS;Initial Catalog=phoneix;Integrated Security=True")
Public con As New SqlConnection("Server=NILESOFT\SQLEXPRESS,10000;Initial Catalog=phoneix;User Id=sa;Password=welcome123")
 Public con As New SqlConnection("Integrated Security=SSPI;Initial Catalog=phoneix;Data Source=NILESOFT\SQLPRESS;User Id=sa;Password=welcome")
 Public con As New SqlConnection("Data Source=192.170.1.53,1433;Network=TCP/IP;Initial Catalog=phoneix;Integrated Security=SSPI;user Id=sa;Password=welcome123")


But it is not working

In my sql server i fetched the sqlserver in network using Browse for more

But it is not display the sqlserver in network

Please anybody help how to access the sqlserver from networking

Thank you
Posted
Comments
Om Prakash Pant 18-Jan-12 7:19am    
what is the error you are getting?
devausha 18-Jan-12 7:20am    
The type initializer for 'WindowsApplication1.Module1' threw an exception

1 solution

Please check below
1) are you able to connect sql server (on network) from your local sql server client ?
2) If not what type of error it throw ?
3) If error related to "Named pipe" then enable it by configuring network sql server using sql server configuration wizard.
 
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