VB.NET clients connecting to remote SQL server using URL

VB.NET clients connecting to remote SQL server using URL

Post by Eric Won » Sun, 20 Oct 2002 00:24:16



Hi,

I have a scenario that multiple geographically distributed
branch offices ( over 20 ) would like to perform database
access (R/W/U) in the main office.

I understand that ADO.NET allows me to do connection to a
remote server via IP address with encrytion turned on (
please see attached ).  I would like to find out any
potential pitfalls I may be facing down the stretch.

Questions like connection resources, performance issues ...

Is there any more optimal solution for the above
scenario ??

Eric
================ attachment =================
If connection to a remote server (via IP address):

oSQLConn.ConnectionString = "Network Library=DBMSSOCN;" & _
                            "Data
Source=xxx.xxx.xxx.xxx,1433;" & _
                            "Initial
Catalog=mySQLServerDBName;" & _
                            "User ID=myUsername;" & _
                            "Password=myPassword"
Where:
- "Network Library=DBMSSOCN" tells SqlConnection to use
TCP/IP Q238949
- xxx.xxx.xxx.xxx is an IP address.  
- 1433 is the default port number for SQL Server.  Q269882
and Q287932
- You can also add "Encrypt=yes" for encryption

For more information, see:  System.Data.SQL Namespace,
Q308656, and .NET Data Providers

Note: Microsoft SQLXML Managed Classes exposes the
functionality of SQLXML inside the Microsoft .NET
Framework.

 
 
 

VB.NET clients connecting to remote SQL server using URL

Post by Bill » Sun, 20 Oct 2002 03:56:03


I expect you can do this, but I might tend to create a middle-tier approach
that used ASPX to achieve it. Depending on a connection over TCP/IP can
work, but it's likely to cause some problems later. The ASPX approach or
using a WebService accessed from a Windows Forms application would permit
the data access operations to take place on the central server. This way you
would not have to transmit large bodies of data across the wire (if designed
correctly). I would also investigate .NET Remoting as well.

As I disuses in my book, using individual user IDs and passwords is also not
a particularly good idea for a litany of reasons.

Discussion?

--
William (Bill) Vaughn, Author, Trainer, Mentor
Microsoft Pacwest Regional Director, MVP
"ADO and ADO.NET Examples and Best Practices for VB Programmers--2nd
Edition" (ISBN: 1-893115-68-2)
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
________________________________


Quote:> Hi,

> I have a scenario that multiple geographically distributed
> branch offices ( over 20 ) would like to perform database
> access (R/W/U) in the main office.

> I understand that ADO.NET allows me to do connection to a
> remote server via IP address with encrytion turned on (
> please see attached ).  I would like to find out any
> potential pitfalls I may be facing down the stretch.

> Questions like connection resources, performance issues ...

> Is there any more optimal solution for the above
> scenario ??

> Eric
> ================ attachment =================
> If connection to a remote server (via IP address):

> oSQLConn.ConnectionString = "Network Library=DBMSSOCN;" & _
>                             "Data
> Source=xxx.xxx.xxx.xxx,1433;" & _
>                             "Initial
> Catalog=mySQLServerDBName;" & _
>                             "User ID=myUsername;" & _
>                             "Password=myPassword"
> Where:
> - "Network Library=DBMSSOCN" tells SqlConnection to use
> TCP/IP Q238949
> - xxx.xxx.xxx.xxx is an IP address.
> - 1433 is the default port number for SQL Server.  Q269882
> and Q287932
> - You can also add "Encrypt=yes" for encryption

> For more information, see:  System.Data.SQL Namespace,
> Q308656, and .NET Data Providers

> Note: Microsoft SQLXML Managed Classes exposes the
> functionality of SQLXML inside the Microsoft .NET
> Framework.


 
 
 

VB.NET clients connecting to remote SQL server using URL

Post by Eric W » Wed, 23 Oct 2002 06:19:20


Our final solution is to use ADO with VPN over the
internet.  Our decision based on the facts:
- not many database hits in our applications
- reduce software complexity
- finite number of branch offices
- data security provided
Comments ?
Quote:>-----Original Message-----
>I expect you can do this, but I might tend to create a

middle-tier approach
Quote:>that used ASPX to achieve it. Depending on a connection
over TCP/IP can
>work, but it's likely to cause some problems later. The
ASPX approach or
>using a WebService accessed from a Windows Forms

application would permit
Quote:>the data access operations to take place on the central

server. This way you
Quote:>would not have to transmit large bodies of data across

the wire (if designed
Quote:>correctly). I would also investigate .NET Remoting as
well.

>As I disuses in my book, using individual user IDs and

passwords is also not
>a particularly good idea for a litany of reasons.

>Discussion?

>--
>William (Bill) Vaughn, Author, Trainer, Mentor
>Microsoft Pacwest Regional Director, MVP
>"ADO and ADO.NET Examples and Best Practices for VB
Programmers--2nd
>Edition" (ISBN: 1-893115-68-2)
>www.betav.com
>Please reply only to the newsgroup so that others can
benefit.
>This posting is provided "AS IS" with no warranties, and
confers no rights.
>________________________________



>> Hi,

>> I have a scenario that multiple geographically
distributed
>> branch offices ( over 20 ) would like to perform
database
>> access (R/W/U) in the main office.

>> I understand that ADO.NET allows me to do connection to
a
>> remote server via IP address with encrytion turned on (
>> please see attached ).  I would like to find out any
>> potential pitfalls I may be facing down the stretch.

>> Questions like connection resources, performance
issues ...

>> Is there any more optimal solution for the above
>> scenario ??

>> Eric
>> ================ attachment =================
>> If connection to a remote server (via IP address):

>> oSQLConn.ConnectionString = "Network Library=DBMSSOCN;"
& _
>>                             "Data
>> Source=xxx.xxx.xxx.xxx,1433;" & _
>>                             "Initial
>> Catalog=mySQLServerDBName;" & _
>>                             "User ID=myUsername;" & _
>>                             "Password=myPassword"
>> Where:
>> - "Network Library=DBMSSOCN" tells SqlConnection to use
>> TCP/IP Q238949
>> - xxx.xxx.xxx.xxx is an IP address.
>> - 1433 is the default port number for SQL Server.  
Q269882
>> and Q287932
>> - You can also add "Encrypt=yes" for encryption

>> For more information, see:  System.Data.SQL Namespace,
>> Q308656, and .NET Data Providers

>> Note: Microsoft SQLXML Managed Classes exposes the
>> functionality of SQLXML inside the Microsoft .NET
>> Framework.

>.

 
 
 

VB.NET clients connecting to remote SQL server using URL

Post by Bill » Thu, 24 Oct 2002 02:34:07


I used VPN for years when I was with MS. It was okay, but there were issues
on occasion with administration, but I expect those issues to be resolved
now. Peter Blackburn (my co-author) recommends VPNs for some of his
customers and he's smarter than I in this area...

--
William (Bill) Vaughn, Author, Trainer, Mentor
Microsoft Pacwest Regional Director, MVP
"ADO and ADO.NET Examples and Best Practices for VB Programmers--2nd
Edition" (ISBN: 1-893115-68-2)
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
________________________________


> Our final solution is to use ADO with VPN over the
> internet.  Our decision based on the facts:
> - not many database hits in our applications
> - reduce software complexity
> - finite number of branch offices
> - data security provided
> Comments ?
> >-----Original Message-----
> >I expect you can do this, but I might tend to create a
> middle-tier approach
> >that used ASPX to achieve it. Depending on a connection
> over TCP/IP can
> >work, but it's likely to cause some problems later. The
> ASPX approach or
> >using a WebService accessed from a Windows Forms
> application would permit
> >the data access operations to take place on the central
> server. This way you
> >would not have to transmit large bodies of data across
> the wire (if designed
> >correctly). I would also investigate .NET Remoting as
> well.

> >As I disuses in my book, using individual user IDs and
> passwords is also not
> >a particularly good idea for a litany of reasons.

> >Discussion?

> >--
> >William (Bill) Vaughn, Author, Trainer, Mentor
> >Microsoft Pacwest Regional Director, MVP
> >"ADO and ADO.NET Examples and Best Practices for VB
> Programmers--2nd
> >Edition" (ISBN: 1-893115-68-2)
> >www.betav.com
> >Please reply only to the newsgroup so that others can
> benefit.
> >This posting is provided "AS IS" with no warranties, and
> confers no rights.
> >________________________________



> >> Hi,

> >> I have a scenario that multiple geographically
> distributed
> >> branch offices ( over 20 ) would like to perform
> database
> >> access (R/W/U) in the main office.

> >> I understand that ADO.NET allows me to do connection to
> a
> >> remote server via IP address with encrytion turned on (
> >> please see attached ).  I would like to find out any
> >> potential pitfalls I may be facing down the stretch.

> >> Questions like connection resources, performance
> issues ...

> >> Is there any more optimal solution for the above
> >> scenario ??

> >> Eric
> >> ================ attachment =================
> >> If connection to a remote server (via IP address):

> >> oSQLConn.ConnectionString = "Network Library=DBMSSOCN;"
> & _
> >>                             "Data
> >> Source=xxx.xxx.xxx.xxx,1433;" & _
> >>                             "Initial
> >> Catalog=mySQLServerDBName;" & _
> >>                             "User ID=myUsername;" & _
> >>                             "Password=myPassword"
> >> Where:
> >> - "Network Library=DBMSSOCN" tells SqlConnection to use
> >> TCP/IP Q238949
> >> - xxx.xxx.xxx.xxx is an IP address.
> >> - 1433 is the default port number for SQL Server.
> Q269882
> >> and Q287932
> >> - You can also add "Encrypt=yes" for encryption

> >> For more information, see:  System.Data.SQL Namespace,
> >> Q308656, and .NET Data Providers

> >> Note: Microsoft SQLXML Managed Classes exposes the
> >> functionality of SQLXML inside the Microsoft .NET
> >> Framework.

> >.

 
 
 

1. connecting to a remote server using vb+sql server using ADO

hi,

i want to develop a database application using visual basic and ms-sql
server. i will be using front end application from different systems
on a network and the database resides on a Windows 200 Advanced Server
in the same network(in the same location).

i want to know which way i can connect to the server for accessing the
database.  i want to connect using ADO.

also i want to know the connection properties if the database resides
on a different location.

somebody can plz email me the connection properties at

regards,

sunil.

2. SS 7.0 sp error using EXEC sp_execute

3. Announcement:Access over 30,000 lines of FREE VB source code!

4. How to connect to remote SQL Server using ADO.NET

5. cancer data warehouse

6. Newbie needs code pages for SQL Server 2000 access from asp.net page using vb.net

7. Have Old Mac database Program?

8. How to connect a win95 client to a remote SQLserver over the Net

9. ORA-3114 connecting oracle database via a client W98 using SQL*NET V1

10. I can not connect SQL server 7.0 using SQL server 7.0 client

11. Question: connecting to a remote sql db using vb

12. Connecting to Oracle 6 DB though Net 8 or SQL NET client