Click here to Skip to main content
15,886,873 members
Home / Discussions / Database
   

Database

 
QuestionSet Null in Ms Access DB again! Pin
Whoami Whoami14-Oct-07 8:35
Whoami Whoami14-Oct-07 8:35 
AnswerRe: Set Null in Ms Access DB again! [modified] Pin
pmarfleet14-Oct-07 10:02
pmarfleet14-Oct-07 10:02 
QuestionSystem.Data.OleDb.OleDbException Pin
s4_sabahatf14-Oct-07 8:31
s4_sabahatf14-Oct-07 8:31 
AnswerRe: System.Data.OleDb.OleDbException Pin
Mike Dimmick14-Oct-07 11:06
Mike Dimmick14-Oct-07 11:06 
QuestionSQL Server Batch jobs Pin
naren37814-Oct-07 7:32
naren37814-Oct-07 7:32 
AnswerRe: SQL Server Batch jobs Pin
Marek Grzenkowicz14-Oct-07 23:49
Marek Grzenkowicz14-Oct-07 23:49 
QuestionDeploy .Net Application With Sql Server 2005 Pin
DotNetWWW14-Oct-07 6:46
DotNetWWW14-Oct-07 6:46 
AnswerRe: Deploy .Net Application With Sql Server 2005 Pin
Mike Dimmick14-Oct-07 11:26
Mike Dimmick14-Oct-07 11:26 
Presumably you mean that your client application itself connects directly to the database, there is no server application involved?

If you want to use Windows Authentication, you will need to ensure that Windows can authenticate the users. This means either that the clients and server are all in the same domain (or in the same Active Directory domain tree, forest, or with appropriate inter-forest trusts), or that they have the same usernames and passwords on both client and server (this is a quirk of Windows Authentication coming from workgroup file sharing). If you don't have this, you may well find SQL Server authentication easier. The main problem with that is that the passwords are sent unencrypted in the channel, and so can be observed by someone with a packet sniffer. It also means that the password is typically stored in a configuration file - anyone with access to the file can get the password.

You can solve the first problem by setting up an SSL certificate on the SQL Server and setting the Encrypt property in the connection string to true. That encrypts the entire conversation between client and server.

The second problem can be solved by encrypting the connection string in the file. See for example SectionInformation.ProtectSection in the .NET SDK documentation.

You will then need to set the users up with logins to SQL Server, and map those logins to users in the database. After that, you need to give the users permissions to manipulate the database objects, or make them members of appropriate database roles. The default for a new user is to be a member of the public role which has no permissions to act on anything. You can create a SQL Server login for a Windows security group if you prefer, which simplifies things a lot.

It's hard to do a full treatment of SQL Server security in such a small space. I had a go here[^].


DoEvents: Generating unexpected recursion since 1991

GeneralRe: Deploy .Net Application With Sql Server 2005 Pin
DotNetWWW14-Oct-07 19:09
DotNetWWW14-Oct-07 19:09 
QuestionOleDB using MS-Access Pin
s4_sabahatf14-Oct-07 5:28
s4_sabahatf14-Oct-07 5:28 
AnswerRe: OleDB using MS-Access Pin
pmarfleet14-Oct-07 7:45
pmarfleet14-Oct-07 7:45 
AnswerRe: OleDB using MS-Access Pin
Hesham Amin14-Oct-07 7:52
Hesham Amin14-Oct-07 7:52 
QuestionOleDB using MS-Access Pin
s4_sabahatf14-Oct-07 5:27
s4_sabahatf14-Oct-07 5:27 
AnswerRe: OleDB using MS-Access Pin
Muhammad Shahid Farooq28-Oct-07 13:17
professionalMuhammad Shahid Farooq28-Oct-07 13:17 
QuestionProblem with updating dataset with database Pin
vbar14-Oct-07 4:03
vbar14-Oct-07 4:03 
QuestionSQL Server Management Studio Express Problem Pin
Vipin.d13-Oct-07 21:26
Vipin.d13-Oct-07 21:26 
AnswerRe: SQL Server Management Studio Express Problem Pin
Hesham Amin13-Oct-07 22:51
Hesham Amin13-Oct-07 22:51 
GeneralRe: SQL Server Management Studio Express Problem Pin
Vipin.d14-Oct-07 1:11
Vipin.d14-Oct-07 1:11 
QuestionInserting Only Distinct Items Pin
Ian Uy13-Oct-07 9:55
Ian Uy13-Oct-07 9:55 
AnswerRe: Inserting Only Distinct Items Pin
Giorgi Dalakishvili13-Oct-07 10:18
mentorGiorgi Dalakishvili13-Oct-07 10:18 
GeneralRe: Inserting Only Distinct Items Pin
Ian Uy13-Oct-07 18:18
Ian Uy13-Oct-07 18:18 
QuestionMS SQL Express Edition Username/Password Pin
Ian Uy13-Oct-07 9:52
Ian Uy13-Oct-07 9:52 
AnswerRe: MS SQL Express Edition Username/Password Pin
pmarfleet13-Oct-07 10:13
pmarfleet13-Oct-07 10:13 
GeneralRe: MS SQL Express Edition Username/Password Pin
Ian Uy13-Oct-07 10:15
Ian Uy13-Oct-07 10:15 
GeneralRe: MS SQL Express Edition Username/Password Pin
pmarfleet13-Oct-07 10:48
pmarfleet13-Oct-07 10:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.