SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


««123»»

The Enterprise Library for .NET Framework 2.0 Expand / Collapse
Author
Message
Posted Monday, August 28, 2006 4:33 PM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: 2 days ago @ 9:08 AM
Points: 2,433, Visits: 653
As a DBA my main concern is with apps developers who code things up with the assumption that they will have access to the SA password or similarly excessive access rights.

I would have thought that if you can add your own sections to a web.config file then you should be able to implement your own web.config reader to have a connection string decrypt method. The obvious problem is that the decryption key has to be stored somewhere.



LinkedIn Profile
Post #304595
Posted Tuesday, August 29, 2006 9:22 AM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Friday, September 04, 2009 8:09 AM
Points: 249, Visits: 61
The Data Access Application Block in the Enterprise Library makes use of the Configuration Application Block to store the connection information. The Configuration block can be used with the Cryptography block to encrypt the connection information without changing any code in the application.

This article mentions encrypting the connection information: http://msdn.microsoft.com/msdnmag/issues/05/07/DataPoints/

There might be a a tutorial on this on the tutorial site at http://channel9.msdn.com/wiki/default.aspx/Channel9.EnterpriseLibraryTutorials.

Problem solved



Bryant E. Byrd, BSSE MCDBA MCAD
SQL Server DBA
bryant{at}mindfair.com
Post #304686
Posted Tuesday, August 29, 2006 1:00 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, April 15, 2009 2:30 PM
Points: 4, Visits: 14
On the contrary Steve, config files are finally the perfect place to store connection strings since the .net 2.0 framework came out with "protected configuration".

This article will show you how to simplify encrypting your connection string in your config files (web AND app).
http://msdn2.microsoft.com/en-us/library/dtkwfdky.aspx

Hope this helps ease your mind! Before this came out, I shared your opinion about the plain text.
~DR
Post #304777
Posted Tuesday, August 29, 2006 2:09 PM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Friday, September 04, 2009 8:09 AM
Points: 249, Visits: 61
Won't it be nice when Kerberos is easier to set up. Then we can just do single sign-on and not worry about storing any credentials outside AD. If anyone knows of any good articles on how to set this up reliably I would love to know about it!


Bryant E. Byrd, BSSE MCDBA MCAD
SQL Server DBA
bryant{at}mindfair.com
Post #304815
Posted Tuesday, August 29, 2006 2:26 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, April 04, 2008 2:16 PM
Points: 7, Visits: 12
Thanks for the responses.  We are still using 1.1 and an older version of the application blocks so once we move to 2.0 we will definately investigate the encryption.  That might solve the trick.


Post #304824
Posted Wednesday, August 30, 2006 2:44 PM
SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: Moderators
Last Login: Thursday, March 11, 2010 10:33 AM
Points: 6,371, Visits: 950

Just dont throw out the idea of an enterprise library based on authentication for a couple reasons. One, if you don't like the code exactly as is, you can change it! The other is that authentication strategy doesn't really have to do with the library, but with your own coding and data access standards.



Andy
SQLShare - Learn One New Thing Each Day
SQLAndy - My Professional Blog
Connect with me on LinkedIn
Follow me on Twitter
Post #305185
Posted Wednesday, August 30, 2006 3:44 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, April 04, 2008 2:16 PM
Points: 7, Visits: 12

We certainly haven't thrown out the idea.  We will just have to investigate how best to implement it in such a manner that we are satisfied with the approach and flexibilty it gives us. Just a note, we are currently using a modified version of the precursor Microsoft Application Data Blocks.  We did in fact end up "changing the code" in a # of different ways because it was lacking and we didn't like the things that it assumed.  Earlier versions of it did not have the built in flexibility that the Enteriprise library appears to now have.  This had me concerned that we were being herded down a path that we did not necessarily wish to go just because "everyone else is doing it".  But it sound like my concerns will be allievated.  Thanks for all the input.




Post #305200
Posted Monday, September 25, 2006 11:59 AM
Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: 2 days ago @ 7:12 PM
Points: 3,082, Visits: 12,545

Data Access is just part of the Enterprise Application block it comes with everything you need to create a .NET application and SA is not required but DBO is needed if your application will use stored procs.  This new version uses DataReader most of the time which uses sp_executesql in the background.  It will help if you get to know it better.  Try the links below for details and a new book is out but it was based on the older version.  Hope this helps.

http://www.gotdotnet.com/codegallery/codegallery.aspx?id=295a464a-6072-4e25-94e2-91be63527327

http://msdn.microsoft.com/msdnmag/issues/06/07/PatternsAndPractices/default.aspx



Kind regards,
Gift Peddie
Post #311000
Posted Tuesday, April 21, 2009 11:35 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, October 08, 2009 12:55 PM
Points: 2, Visits: 3
Hi, i'm a student trying to connect enterprise Library with SQL Server 2005 but when i go to test the connection the following pops up

The user instance login flag is not supported on this version of SQL Server. The connection will be closed.

Does this mean that the enterprise library doesn't support SQL server 2005?

Thanks
Post #701719
Posted Tuesday, April 21, 2009 12:03 PM
Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: 2 days ago @ 7:12 PM
Points: 3,082, Visits: 12,545
The short answer is no because I used it to develop a very large three layered application with 2005. However in 2005 you must be in SP2 or SP3 and Enterprise Library must install in your C drive or it will not run. And I think you may be running a User Instance if you are in SQL Server Express, I don't know if User Instance is supported because I was using Server instance in the developer edition.

So check your service pack, Enterprise Library drive and make sure it is server instance.





Kind regards,
Gift Peddie
Post #701733
« Prev Topic | Next Topic »

««123»»

Permissions Expand / Collapse