Re: SQL Connection Strings

Tech-Archive recommends: Speed Up your PC by fixing your registry



The connection string does not change. And SSPI is enabled (I apologize for
supplying incorrect info in my last post). It's a web application. This is
what is happening: Based on their unique ID user A will see a list of data
and user B will see a list of different data. But if they try pulling the
data at the same time user B will see User A's dataset.

"William (Bill) Vaughn" wrote:

Okay, if you're using SQL Server authentication (because Integrated
Security=SSPI or =True is the only other option), and the ConnectionString
is changing (I assume to reflect the credentials of the current user) then
the rights granted to the database objects are a function of the currently
assigned user. No, the query plan is not going to change based on rights.
Yes, the stored procedure might not be accessible to all users. It would
help to know more about the application. Is it a Windows Forms application?
What makes you think the SP or SQL Server will get confused?
--
__________________________________________________________________________
William R. Vaughn
President and Founder Beta V Corporation
Author, Mentor, Dad, Grandpa
Microsoft MVP
(425) 556-9205 (Pacific time)
Hitchhiker’s Guide to Visual Studio and SQL Server (7th Edition)
http://betav.com/blog/billva
____________________________________________________________________________________________



"Erica" <Erica@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:BC62C027-68C9-4FC4-BAA4-E1A6844C4CD5@xxxxxxxxxxxxxxxx
Thanks for your response. However, Integrated Security is not set to
SSPI...using Enterprise Library DAAB. Could DAAB be caching result set?

"William (Bill) Vaughn" wrote:

In a Windows Forms application, when you use Integrated Security = SSPI
instead of SQL Server authentication, the current user's credentials are
passed to be authenticated at the server. In this case, each user must
have
a Login account or the user must be a member of a specific role on the
server which has been granted specific rights to the database objects.
In an ASP.NET application, it's IIS that logs on when you use Integrated
Security=SSPI so anyone accessing the web page has the same rights.

See Chapter 9 in my book or my blog for more info on connection issues
and
mechanics. www.betav.com/blog/billva

--
__________________________________________________________________________
William R. Vaughn
President and Founder Beta V Corporation
Author, Mentor, Dad, Grandpa
Microsoft MVP
(425) 556-9205 (Pacific time)
Hitchhiker’s Guide to Visual Studio and SQL Server (7th Edition)
____________________________________________________________________________________________



"Erica" <Erica@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:0B7F6EEC-273D-43BD-A6E0-867625E94C7A@xxxxxxxxxxxxxxxx
Data returned from Sql through a stored procedure is dependent on what
user
is logged in. If the connection string is NOT unique, will this cause
the
connections to get mixed up and cause one user to see data another user
(also
logged in) should be seeing. If not, what might cause this?



.



Relevant Pages

  • Re: Connection using IP vs. hostname (which one is better for prog
    ... "William (Bill) Vaughn" wrote: ... Hitchhiker’s Guide to Visual Studio and SQL Server ... which one is faster and reliable in term of connection? ...
    (microsoft.public.sqlserver.connect)
  • Re: How migrate from SQL Express to SQL Server
    ... William Vaughn ... Hitchhiker's Guide to Visual Studio and SQL Server ... I expect that all you'll need to do is detach/reattach the database and change the connection string. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: SQL Connection Strings
    ... "William Vaughn" wrote: ... the query plan is not going to change based on rights. ... What makes you think the SP or SQL Server will get confused? ... See Chapter 9 in my book or my blog for more info on connection issues ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Error "SQL Server does not allow remote connections"
    ... The application could not connect to the sql server db. ... network is blocking the connection. ... SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 ... integratedSecurity, SqlConnection owningObject) +737554 ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: accessing remote database
    ... The DBA then grants rights to a selected few stored procedures or views but NOT to any underlying tables. ... Hitchhiker's Guide to Visual Studio and SQL Server ... and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook) ... My manager argues that accesing through Web Service is more secure because clients don't have connection string embeded in application. ...
    (microsoft.public.sqlserver.connect)