Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remotely connecting to a local/default instance
Message
From
31/10/2010 06:36:45
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2008
Miscellaneous
Thread ID:
01484955
Message ID:
01487690
Views:
63
>Hi Cetin,
>
>This is proving to be very helpful. Next we'll be connecting to the database using an ip address and a port. The syntax is all in your original response, I just don't know the syntax for sticking the port no. in the connection string! Would you please enlighten me
>on that?
>
>Thank you
>
>
>>>Hi all,
>>>
>>>I have never tried to connect to a local / default instance of sql server remotely? I know about making sure it is configured to allow remote uses, but I always name my instances so am not familiar with this. This is ok is it not? I've got "\\ServerName\(local)" in my connection string but it comes back with error 87 - fails to make the connection.
>>>
>>>Any feedback much appreciated
>>
>>With a default instance it would be just the server name or IP (and also you might require port number). ie:
>>
>>Driver={SQL Native Client};server=1.2.3.4;uid=userName;pwd=password
>>Driver={SQL Native Client};server=myComputerName;uid=userName;pwd=password
>>Driver={SQL Native Client};server=tcp:1.2.3.4;uid=userName;pwd=password
>>Provider=SQLNCLI;server=tcp:1.2.3.4;uid=userName;pwd=password
>>
>>(local) is a special identifier like a dot to mean local < g >
>>Besides your connection string you need to make sure it is enabled for remote access and firewall doesn't block access. Also you need to check protocols enabled.
>>
>>Cetin

Driver={SQL Native Client};server=1.2.3.4,1433;uid=userName;pwd=password

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform