Click here to Skip to main content
15,917,455 members
Home / Discussions / Database
   

Database

 
QuestionUrgent: SQL Server log: Login succeeded for user 'APPL_ACCOUNT'. Connection: Non-Trusted. Pin
devvvy16-Feb-06 17:45
devvvy16-Feb-06 17:45 
AnswerRe: Urgent: SQL Server log: Login succeeded for user 'APPL_ACCOUNT'. Connection: Non-Trusted. Pin
Edbert P19-Feb-06 13:16
Edbert P19-Feb-06 13:16 
GeneralRe: Urgent: SQL Server log: Login succeeded for user 'APPL_ACCOUNT'. Connection: Non-Trusted. Pin
devvvy19-Feb-06 14:45
devvvy19-Feb-06 14:45 
GeneralRe: Urgent: SQL Server log: Login succeeded for user 'APPL_ACCOUNT'. Connection: Non-Trusted. Pin
Edbert P19-Feb-06 17:03
Edbert P19-Feb-06 17:03 
GeneralRe: Urgent: SQL Server log: Login succeeded for user 'APPL_ACCOUNT'. Connection: Non-Trusted. Pin
devvvy19-Feb-06 17:10
devvvy19-Feb-06 17:10 
AnswerAn answer... Pin
devvvy19-Feb-06 17:45
devvvy19-Feb-06 17:45 
QuestionPer-user connection string to get good perf, good idea? Pin
Judah Gabriel Himango16-Feb-06 10:04
sponsorJudah Gabriel Himango16-Feb-06 10:04 
AnswerRe: Per-user connection string to get good perf, good idea? Pin
Colin Angus Mackay16-Feb-06 12:52
Colin Angus Mackay16-Feb-06 12:52 
The pro is that the view will return only the user's data because, I'm guessing, that it will be defined as something like this:
CREATE VIEW SELECT * FROM MyTable WHERE User = USER();
However, I don't see where the performance gain is on this because it will still be doing the same as before (it's just hidden).

Passing the user name and password in the connection string means that your application will lose some of its ability to use connection pooling. (If this is a thick client windows application with only one user at a time using it then this isn't really a problem, however if you have a web application with many users accessing it then losing the ability to effectively use connection pooling could introduce performance problems - However, I've never done any testing on that so I don't know. I'm flagging it as it may be a concern and something to look in to).

From your description of the problem I'd say that you have a problem with indexes rather than anything else. It is also the easiest solution because it won't require views to be created or code to be changed to have dynamic connection strings and so on.

Look at what columns are being referenced most often in the where clause (and it sounds like it will be something like the UserId column) and index it. If you are using SQL Server 2000 there is an index tuning wizard you may want to look at.

Does this help?

ColinMackay.net
Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?

GeneralRe: Per-user connection string to get good perf, good idea? Pin
Judah Gabriel Himango16-Feb-06 15:45
sponsorJudah Gabriel Himango16-Feb-06 15:45 
GeneralPartitioning Pin
Edbert P16-Feb-06 16:20
Edbert P16-Feb-06 16:20 
GeneralRe: Partitioning Pin
Judah Gabriel Himango16-Feb-06 16:44
sponsorJudah Gabriel Himango16-Feb-06 16:44 
QuestionT- SQL Inner Select Pin
Greeky16-Feb-06 1:21
Greeky16-Feb-06 1:21 
AnswerRe: T- SQL Inner Select Pin
Colin Angus Mackay16-Feb-06 2:16
Colin Angus Mackay16-Feb-06 2:16 
QuestionUML modeling Pin
Klempie15-Feb-06 23:57
Klempie15-Feb-06 23:57 
AnswerRe: UML modeling Pin
Juan Pedro Prez16-Feb-06 2:05
Juan Pedro Prez16-Feb-06 2:05 
GeneralRe: UML modeling Pin
Paul Conrad16-Feb-06 17:14
professionalPaul Conrad16-Feb-06 17:14 
AnswerRe: UML modeling Pin
Klempie16-Feb-06 19:25
Klempie16-Feb-06 19:25 
QuestionHelp with ADO.NET, please Pin
Juan Pedro Prez15-Feb-06 23:20
Juan Pedro Prez15-Feb-06 23:20 
AnswerRe: Help with ADO.NET, please Pin
Mike Ellison16-Feb-06 8:04
Mike Ellison16-Feb-06 8:04 
GeneralRe: Help with ADO.NET, please Pin
Juan Pedro Prez17-Feb-06 6:06
Juan Pedro Prez17-Feb-06 6:06 
GeneralRe: Help with ADO.NET, please Pin
Mike Ellison17-Feb-06 6:32
Mike Ellison17-Feb-06 6:32 
GeneralRe: Help with ADO.NET, please Pin
Juan Pedro Prez17-Feb-06 7:46
Juan Pedro Prez17-Feb-06 7:46 
QuestionHow to get record count from OledbDataReader? Pin
rushing15-Feb-06 23:00
rushing15-Feb-06 23:00 
AnswerRe: How to get record count from OledbDataReader? Pin
Colin Angus Mackay16-Feb-06 2:11
Colin Angus Mackay16-Feb-06 2:11 
GeneralRe: How to get record count from OledbDataReader? Pin
rushing16-Feb-06 17:04
rushing16-Feb-06 17:04 

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.