Re: Connection to SQL Server

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Well, HTTP is a stateless protocol, meaning that each subsequent page
request does not know anything about any prior requests.

What you need to do is establish a connection to the SQL server on each page
request.

"rodneybauer1" <rodneybauer1@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:157A5750-910B-4A5F-A06D-A17E3858C79E@xxxxxxxxxxxxxxxx
> I'm just learning this stuff, but I recall reading about "session state"
> and
> "view state" being able to deal with what you want to do. the msdn library
> should have samples
>
> "Graeme" wrote:
>
>> I want to have an ASP.Net application to connect to a SQL Server
>> database.
>>
>> I can't use Active Directories or Windows authentication (network
>> security!). So I want to use Forms authentication to allow the user to
>> enter
>> their SQL Server username and password, check their permissions (from a
>> table), and then add them to a SQL Server Application Role. I want to
>> use
>> the SQL Server Application role to simplify the management of permissions
>> with SQL Server.
>>
>> I can set up the authentication in the dotnet application.
>> I can access the user passwords.
>> I can run the sp_addapprole stored procedure to add a user to the
>> application role.
>>
>> But I can't maintain the connection to SQL Server (and application role)
>> when I change pages within the application.
>>
>> Any suggestions?


.



Relevant Pages

  • Re: Security question ..
    ... > If you use NT authentication, a user's permissions to a database are ... Your assertion that a user's permissions are independent of the application ... Even using Access and "exploring" will require an ODBC login to SQL Server. ...
    (microsoft.public.sqlserver.server)
  • Re: Security question ..
    ... What I want to prevent is any access to the database accept through our ... application unless you have elevated permissions. ... Authentication, if he is smart enough to create an NT Auth ODBC connection ... passes through to the database or to use SQL Server authentication. ...
    (microsoft.public.sqlserver.server)
  • Re: Determine Disk Block Size ?
    ... "SQL Server limits a single read-ahead request depth to 128 pages on most ... The read ahead is actually dynamic in the size of each read ahead request based somewhat on how fragmented the data is. ... Most of the documentation for 2000 is wrong in that it may state you need multiple files to spawn multiple threads. ... We have done so with a dramatic total disk I/O>> throughput. ...
    (microsoft.public.sqlserver.server)
  • Re: Determine Disk Block Size ?
    ... > "SQL Server limits a single read-ahead request depth to 128 pages on most ... Microsoft SQL Server Enterprise Edition raises the ... > that it may state you need multiple files to spawn multiple threads. ... We have done so with a dramatic total disk I/O ...
    (microsoft.public.sqlserver.server)
  • Re: Determine Disk Block Size ?
    ... that it may state you need multiple files to spawn multiple threads. ... > mentioned that EE can exceed the number of concurrent extents per request ... > Sql Server can spawn multiple threads to read a single file as well. ... We have done so with a dramatic total disk I/O ...
    (microsoft.public.sqlserver.server)