Hello,
I have to make a new windows project using remote sql server database. To make a decision regarding the choice between Linq to Sql and the Entity Framework, I initially created two identical test projects the unique difference was data access technology, to compare the performance between these two technologies, I noticed that the EF project is about 4 times slower.
Now I'd like to be helped on the question of security:
Having to use an encryption of the connection string in the App.config file, I wonder if there would still be vulnerabilities in the use of data models. Dbml or. Edmx
Also I wonder how to configure remote (Windows Server / SQL Server 2008) and the local (Windows 7 / application) to establish connection with integrated security (Windows).
Thanks in advance
Loading

Posted Jun 20, 2012, 8:16 PM EDT
http://itzkumar.wordpress.com/2009/09/18/windows-authentication-vs-sql-server-authentication/
Samio170 reputationPosted Jun 21, 2012, 2:22 AM EDT
Can I use Windows authentication without having domain controler ?
Posted Jun 21, 2012, 7:35 AM EDT
If the sql server and application is on the same machine then you can try the below one.
1) Hold shift key + Right click on your exe application.
2) Run as different user
3) Give the user name password.
Do you have any issues to run the application on sql server authentication ?
Samio170 reputationPosted Jun 21, 2012, 9:40 AM EDT
From your last post I assume that I have to create a windows session with my credentials same as my local session credentials ? right ? I do not have to configure any Active Directory ?
Posted Jun 21, 2012, 2:40 PM EDT
Samio170 reputationPosted Jun 22, 2012, 1:13 AM EDT
Posted Jun 22, 2012, 2:34 AM EDT
Samio170 reputationPosted Jun 23, 2012, 3:17 AM EDT
Now I'm looking for a simple way to encrypt the connection string in the App.config, any idea please?
Posted Jun 24, 2012, 7:44 PM EDT
http://www.c-sharpcorner.com/Forums/Thread/165535/secure-connection-string-in-app-config-C-Sharp.aspx
http://stackoverflow.com/questions/1335413/entity-framework-encrypt-connection-string
Samio170 reputationPosted Jun 25, 2012, 1:00 PM EDT
Start -> Computer -> Manage
I created a new user credentials
At SQL Server Security -> Logins
I added that user, specifying windows authentication, and also made related configurations for mappings, permissions, and so on.
At My desktop side
I created a new windows session with the same credentials.
Then I had the choice to connect the app. from inside the related user session, or using the method like you specified above:
1) Hold shift key + Right click on your exe application.
2) Run as different user
3) Give the user name password.
That's it.
The most important in all this is the question (Title of thisTopic), and till now remain without answer...
Posted Jun 26, 2012, 9:01 PM EDT
Samio170 reputationPosted Jun 27, 2012, 12:33 AM EDT
I steel look for a good comparison between L2SQL and EF connection methods, to see then which encryption way to use.