Re: accessing remote database



I don't put "user" credentials in the connection string--just those assigned to the application. The DBA then grants rights to a selected few stored procedures or views but NOT to any underlying tables. This dramatically reduces the surface area of vulnerability. Yes, there are also techniques that can be used to hide the ConnectionString credentials (or the string itself) but these also have crevices that can expose the string. No, I think you'll find that the limitations and other issues associated with a Web service (however sexy) outweigh the performance and flexibility you can achieve with a direct-connect approach.

--
I discuss this at length in my book an in my workshops (see www.devteach.com for the next offering).

____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant, Dad, Grandpa
Microsoft MVP
INETA Speaker
www.betav.com
www.betav.com/blog/billva
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
Visit www.hitchhikerguides.net to get more information on my latest book:
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
-----------------------------------------------------------------------------------------------------------------------

"Andy" <kc2ine@xxxxxxxxx> wrote in message news:ejYH1UEGIHA.3980@xxxxxxxxxxxxxxxxxxxxxxx
thanks William,
yes, most of the clients are in LAN and few remote users are on WAN and connect through VPN.
My manager argues that accesing through Web Service is more secure because clients don't have connection string embeded in application. What is your opinion on that?



"William Vaughn" <billvaNoSPAM@xxxxxxxxx> wrote in message news:%23RTgJk$FIHA.5228@xxxxxxxxxxxxxxxxxxxxxxx
It depends whether it's on a LAN or a WAN. If it's a LAN use direct-connect. On a WAN use an ASP.NET application to front it or better yet, a direct-connect via VPN connection.

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant, Dad, Grandpa
Microsoft MVP
INETA Speaker
www.betav.com
www.betav.com/blog/billva
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
Visit www.hitchhikerguides.net to get more information on my latest book:
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook)
-----------------------------------------------------------------------------------------------------------------------

"Andy" <kc2ine@xxxxxxxxx> wrote in message news:ecXoFG2FIHA.284@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
What is the best approach for a application havily using remote database to connect to?
Somebody suggested Web service, but isn't that slow and to big overhead for such application?






.



Relevant Pages

  • Re: SQL Compact Edition - Connection Pool --> Slow!
    ... You might want to check out my EBook on SQL Server Compact. ... Hitchhiker's Guide to Visual Studio and SQL Server ... and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook) ... mind (--> get a connection, use it and release it as soon as possible ...
    (microsoft.public.sqlserver.ce)
  • Re: Db connexion mode ???
    ... Hitchhiker's Guide to Visual Studio and SQL Server ... and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook) ... the Connection pool is not a factor. ...
    (microsoft.public.sqlserver.connect)
  • Re: accessing remote database
    ... The DBA then grants rights to a selected few ... Hitchhiker's Guide to Visual Studio and SQL Server ... and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook) ...
    (microsoft.public.sqlserver.connect)
  • Re: Randomly get timeout on SqlClient hitting localhost
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... Hitchhiker's Guide to Visual Studio and SQL Server ... and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook) ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: SQL Connection Strings
    ... "William Vaughn" wrote: ... the query plan is not going to change based on rights. ... What makes you think the SP or SQL Server will get confused? ... See Chapter 9 in my book or my blog for more info on connection issues ...
    (microsoft.public.dotnet.framework.adonet)

Quantcast