Click here to Skip to main content
15,921,279 members
Home / Discussions / Database
   

Database

 
GeneralRe: Connection Pooling Pin
anju21-Jun-05 8:44
anju21-Jun-05 8:44 
GeneralRe: Connection Pooling Pin
Colin Angus Mackay21-Jun-05 8:57
Colin Angus Mackay21-Jun-05 8:57 
GeneralRe: Connection Pooling Pin
anju21-Jun-05 9:11
anju21-Jun-05 9:11 
GeneralRe: Connection Pooling Pin
Colin Angus Mackay21-Jun-05 9:18
Colin Angus Mackay21-Jun-05 9:18 
GeneralRe: Connection Pooling Pin
anju21-Jun-05 9:23
anju21-Jun-05 9:23 
GeneralRe: Connection Pooling Pin
Colin Angus Mackay21-Jun-05 10:04
Colin Angus Mackay21-Jun-05 10:04 
GeneralRe: Connection Pooling Pin
anju21-Jun-05 10:14
anju21-Jun-05 10:14 
GeneralRe: Connection Pooling Pin
Luis Alonso Ramos21-Jun-05 16:58
Luis Alonso Ramos21-Jun-05 16:58 
anju wrote:
for different UserIds and Passwords the connection string is always different

Yes it is, but, then you don't use different user IDs/passwords in your application. If your application needs logins, you create a table in your database with the user name and passwords *for your application*.

Then you create one single SQL Server user that only has access to run stored procedures on your application's database. This is the user ID you use everywhere in your application to access your database (of course, you must have stored procedures to access all tables.)

When a user logs in your application, you find out in your database using the stored procedures what permissions that user has, and selectively enable/disable parts of your application.

But you only should have one database user ID/password, and use that in your connection string (never sa). This way, all the connection strings will be the same, and connection pooling will work fine.

-- LuisR



Luis Alonso Ramos
Intelectix - Chihuahua, Mexico

Not much here: My CP Blog!

GeneralRe: Connection Pooling Pin
Colin Angus Mackay21-Jun-05 20:25
Colin Angus Mackay21-Jun-05 20:25 
GeneralRe: Connection Pooling Pin
Mike Dimmick22-Jun-05 2:43
Mike Dimmick22-Jun-05 2:43 
GeneralRe: Connection Pooling Pin
Colin Angus Mackay22-Jun-05 2:58
Colin Angus Mackay22-Jun-05 2:58 
GeneralRe: Connection Pooling Pin
Luis Alonso Ramos22-Jun-05 14:21
Luis Alonso Ramos22-Jun-05 14:21 
GeneralUsing Zip component to Zip files Pin
Wilbur J. Pereira21-Jun-05 2:56
Wilbur J. Pereira21-Jun-05 2:56 
GeneralRe: Using Zip component to Zip files Pin
Eduard Keilholz21-Jun-05 22:46
Eduard Keilholz21-Jun-05 22:46 
GeneralExecuting DTS packages Pin
AetherS21-Jun-05 2:16
AetherS21-Jun-05 2:16 
GeneralIn Depth Knowledge - Edit Almost Anything in a datagrid -Declan Brennan Pin
21-Jun-05 1:15
suss21-Jun-05 1:15 
GeneralDisplay data in tree view. Pin
Anonymous20-Jun-05 23:46
Anonymous20-Jun-05 23:46 
GeneralSave DataTable to dbf Pin
kost8120-Jun-05 22:31
kost8120-Jun-05 22:31 
GeneralRe: Save DataTable to dbf Pin
Marek Konieczny20-Jun-05 22:51
Marek Konieczny20-Jun-05 22:51 
GeneralRe: Save DataTable to dbf Pin
kost8122-Jun-05 3:33
kost8122-Jun-05 3:33 
QuestionCreating Tables at runtime? Pin
kbalias20-Jun-05 21:29
kbalias20-Jun-05 21:29 
AnswerRe: Creating Tables at runtime? Pin
Colin Angus Mackay20-Jun-05 23:01
Colin Angus Mackay20-Jun-05 23:01 
GeneralSearch Record Pin
ADY00720-Jun-05 8:45
ADY00720-Jun-05 8:45 
GeneralRe: Search Record Pin
Yulianto.20-Jun-05 15:43
Yulianto.20-Jun-05 15:43 
GeneralRe: Search Record Pin
Luis Alonso Ramos20-Jun-05 18:06
Luis Alonso Ramos20-Jun-05 18:06 

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.