Thanks for this. I have setup my SQL express instance with a port and
opened that port on my firewall....cannot connect
I'm trying this connection string externally
Data Source=<<ext IP static>>,8082;Initial Catalog=eproject;User
ID=sa;Password=<<password>>"
it's a bit odd as this works from another LAN client.
Data Source=<<internal server IP>>,8082;Initial Catalog=eproject;User
ID=sa;Password=<<password>>"
My SQL instance is set to listen on port 8082 (using IPALL in the TCP/IP
Properties dialog). Should that work or am I missing something? If it
should then I'm guessing a firewall issue.
I'll look into WCF as well. Is this likely to be an alternative to my data
access layer or sit between the DAL and database? By DAL currently opens
and closes the connection, initializes commands and fills datasets and
datatables.
Russ
"sloan" <(E-Mail Removed)> wrote in message
news:enzzt#(E-Mail Removed)...
>
> If you want to talk to Sql Server directly, then you need two things:
>
> Be able to ping the Sql Server Box.
> Open up (usually) port 1433.
>
> check www.connectionstrings.com for a connection string that has the IP
> and Port Number in it. (Which is kinda like the most anal way to define a
> connection string).
>
> OR
>
> You can also expose services to the outside world, instead of your
> database.
> WCF is one of the latest for that.
>
> See
> http://sholliday.spaces.live.com/Blog/cns!A68482B9628A842A!158.entry
> for a basic WCF example.
>
> My example is based on a DotNet to DotNet world, as opposed to a Java to
> DotNet world for example.
>
> Juval Lowy's book on Programming WCF services would help you out alot "in
> general" about the "Software as Service(s)" approach.
>
>
>
> You can also google:
> Microsoft REST
> Microsoft Astoria
>
> for another flavor.
>
>
>
>
>
>
> <(E-Mail Removed)> wrote in message
> news:1DFD8830-42FD-45BE-8570-(E-Mail Removed)...
>> I've developed an app for our company using VB.NET (winforms) and SQL
>> server express running on our SBS server.
>>
>> The app works really well within our LAN but I often work remotely and
>> quite often would benefit from using my custom app. I've tried the VPN
>> but for some reason my app just won't connect to the database.
>>
>> What I'd like is some advise about how I can allow remote clients to
>> access a SQL database that lives inside our LAN. I've never done any work
>> with web services but I thought I might be able to do something there.
>> Or maybe it's a simple matter of a firewall port and a clever connection
>> string.
>>
>> Any advice on the best strategies to adopt for this problem would be
>> hugely appreciated.
>>
>> TIA
>>
>> Russ
>
>