Send a suggestion!

We're building a brand new version of the site, and we'd love to hear your ideas

Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

problem in usernames and passwords in SQL 2005

Last post 06-04-2008 4:20 AM by girlkulit. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 05-22-2008 5:55 AM

    • girlkulit
    • Top 500 Contributor
    • Joined on 01-17-2008
    • Philippines
    • Member
    • Points 480

    problem in usernames and passwords in SQL 2005

    Is it possible and advisable to use same account in SQL server by site users, because it is set to the web.config (in asp.net) like:

    <add name="strConnString" connectionString="Data Source=myCom;Initial Catalog=myDB;User ID=myUsr;Password=myPwd;Persist Security Info=True" providerName="System.Data.SqlClient" />

    Meaning, if there are 500 users simultaneously accessing the database (thru the site), all their usernames (in SQL server) will be the same (myUsr in this case).. Can sql database handle this? or do i have to have as many users added in security of the database as the actual users so that they have unique usernames?

     Thanks..

    i couldn't sleep, and wouldn't sleep, [love] asp.net and c# came and told me i shouldn't sleep, bewitched bothered and bewildered, am i
    • Post Points: 10
  • Advertisement

    • Red Gate Software

    Advertisement

    Want to boost your .NET application performance?

    Some developers always seem to write efficient and lightening-fast code. What is their secret? It’s ANTS Profiler. “We improved the performance of the application up to 10 times” Dan Ports, Intrigma.

    Try it for yourself now.

  • 05-22-2008 9:38 AM In reply to

    • TimL
    • Top 100 Contributor
    • Joined on 07-02-2007
    • United Kingdom
    • Fanatic Member
    • Points 1,695

    Re: problem in usernames and passwords in SQL 2005

    This is a perfectly acceptable configuration. If you are connecting using a single username/password and the connection strings are always the same, you will take full advantage of ado.net connection pooling.

    http://msdn.microsoft.com/en-us/library/8xx3tyca(VS.80).aspx
     

    Tim 

    • Post Points: 10
  • 05-22-2008 9:58 AM In reply to

    • girlkulit
    • Top 500 Contributor
    • Joined on 01-17-2008
    • Philippines
    • Member
    • Points 480

    Re: problem in usernames and passwords in SQL 2005

    thanks for the reply..

    one more thing, hmm, is it more advisable to add MinPoolSize and MaxPoolSize  to my connection string? (i really don't understand all that stuff..)

    thanks in advance..

    i couldn't sleep, and wouldn't sleep, [love] asp.net and c# came and told me i shouldn't sleep, bewitched bothered and bewildered, am i
    • Post Points: 10
  • 05-22-2008 10:30 AM In reply to

    • TimL
    • Top 100 Contributor
    • Joined on 07-02-2007
    • United Kingdom
    • Fanatic Member
    • Points 1,695

    Re: problem in usernames and passwords in SQL 2005

    I would suggest leaving those settings and to only look at them if you have a problem.  

    By default, the connections in the pool will be closed after a period of inactivity. By setting a MinPoolSize, those connections will remain open which is more performant since opening connections is a time and resource intensive operation.

    If you need to limit the number of connections that you have to SQL Server, set the MaxPoolSize. 

    Tim 

     

     

    • Post Points: 10
  • 06-04-2008 4:20 AM In reply to

    • girlkulit
    • Top 500 Contributor
    • Joined on 01-17-2008
    • Philippines
    • Member
    • Points 480

    Re: problem in usernames and passwords in SQL 2005

    ok, thanks..

    Yes

    i couldn't sleep, and wouldn't sleep, [love] asp.net and c# came and told me i shouldn't sleep, bewitched bothered and bewildered, am i
    • Post Points: 5
Page 1 of 1 (5 items)