Click here to Skip to main content
15,881,281 members
Please Sign up or sign in to vote.
2.60/5 (2 votes)
Hi,

We have installed sql server 2008 on server PC and all clients can access server using LAN connection. Now we want to access server remotely without VPN network. We are having one global IP through we can connect remotely, but when we try to access server (IP\SqlExpress) it given error number 26.

We have enabled TCP/IP and did all setting using
http://akawn.com/blog/2012/01/configuring-sql-server-2008-r2-express-edition-for-remote-access/

Kindly suggest some solution to access sql server remotely.

Thanks & Regards,
Sheetal Gawde
Posted
Comments
ZurdoDev 9-Apr-13 8:18am    
I could be wrong but this sounds like a terrible idea. It sounds like you are saying you are trying to open your sql server to the world. Why?
[no name] 9-Apr-13 8:37am    
Try http://blogs.msdn.com/b/sql_protocols/archive/2007/05/13/sql-network-interfaces-error-26-error-locating-server-instance-specified.aspx

1 solution

I assumed Purpose to Remotly access SQL Server through any application.. Like VB6 or .NET
You can Create a connection string in aaplication (Remote Side Application)

For example in vb6.0 application you can create like this..

VB
If Con.State = 1 Then
    ''Do nothing
Else

    Con.Open _
            "Provider = sqloledb;" & _
            "Data Source=ServerIP;" & _
            "Initial Catalog=DatabaseName;" & _
            "User ID=UserName;" & _
            "Password=Password;"
End If

for "ServerIP" you can use your Internet_Service_Provider's IP.

Hope it will help.
 
Share this answer
 
v2

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