Solved

WPF Window using Windows Authentication to SQL Server

Posted on 2008-10-23
4
2,096 Views
Last Modified: 2013-12-17
I am building an internal application for our Systems Team to use for various systems management controls like specific database tasks.  I will put together some maintenance tasks, but more important are a bunch of common queries that give good insight into the transactional system.   This will be my first WPF app that I am writing so I have a couple of questions.  I am building a Authentication class that will use a WPF window and other common controls used to submit to SQL Server for authentication.  I am using a mix of SqlClient classes and SMO classes to accomplish this.  The question I have is that when a user successfully authenticates to SQL Server either by SQL Auth or Windows Auth I then close the window and open up another that houses the specific db tasks.  Will that authentication that was successfully issued be carried over to the new Window I use once I close the previous?  I basically wonder if this holds the current session for the user or if by closing the authentication window it closes the connection.  Can someone help me understand how best make sure the user session carries over to the new window or does the session carry over until the app has been closed?
0
Comment
Question by:icarus2256
  • 2
4 Comments
 
LVL 18

Accepted Solution

by:
jmoss111 earned 500 total points
ID: 22791738
Its the connection that gets authenticated
0
 

Author Comment

by:icarus2256
ID: 22791778
jmoss I know it's the connection that gets authenticated, but will that connection carry over to another window if I close the current authentication window.  Take for example SSMS when you start it up it asks for your authentication, but after you enter it, it authenticates then closes and you then have whatever access is granted to you via the db object explorer.
0
 
LVL 18

Expert Comment

by:jmoss111
ID: 22791811
If you dont close the connection
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now