Connect to DataBase programmatically with Integrated Security in SharePoint - which account credentials are used?

Hi to All!
I have a simple question. I connect to DataBase programmatically, using SqlConnection and Integrated Security in connection string. It works! But I cannot understand -  which account credentials are used? My Windows account(under which I was logged
in) or NetworkService Account, or something else?
If I was logged in as FBA user in SharePoint - what in this case?

Hi MaryBath,
When you use integrated security = true it means the same as integrated security = SSPI and in this case the current Windows account credentials are used for authentication and if you set the integrated
security = false you have to provide UserName and Password . so for your question it uses the current windows account credentials.
here is the Microsoft link for the same...
https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection.connectionstring(VS.71).aspx
If your code is executing on server in SharePoint (in webparts or features or application page). it will take the windows account of the server to connect to the database because all are executing on server not on client machine. your
login credentials has nothing to do with it.
Note: there are 2 authentication Windows Authentication and SQL Authentication so make sure that on database windows authentication is enabled (it will only work when windows authentication is enabled....
Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

Similar Messages

  • SSPI handshake failed with error code 0x8009030c while establishing a connection with integrated security; the connection has be

    Hello, I have a sql 2005 server, and I am a developer, with the database on my own machine.  It alwayws works for me but after some minutes the other developer cant work in the application
    He got this error
    Login failed for user ''. The user is not associated with a trusted SQL Server connection. [CLIENT: 192.168.1.140]
    and When I see the log event after that error, it comes with another error.
    SSPI handshake failed with error code 0x8009030c while establishing a connection with integrated security; the connection has been closed. [CLIENT: 192.168.1.140]
    He has IIS5 and me too.
    I created a user on the domain called ASPSYS with password, then in the IIS on anonymous authentication I put that user with that password, and it works, on both machines.
    and in the connection string I have.
    <add key="sqlconn" value="Data Source=ESTACION15;Initial Catalog=GescomDefinitiva;Integrated Security=SSPI; Trusted_Connection=true"/>
    I go to the profiler, and I see that when he browses a page, the database is accesed with user ASPSYS, but when I browse a page, the database is accesed with user SE\levalencia.
    Thats strange.
    The only way that the other developer can work again on the project is to restart the whole machine. He has windows xp profession, I have windows 2000.
    If you want me to send logs please tellme

    Well here's my problem, maybe you can help. Intermittenly I get a login failed when connecting to a db engine through Server Management Studio using Windows authentication. When this happens the following entries are generated on the server's application event log:
    Event Type:        Error
    Event Source:    MSSQLSERVER
    Event Category:                (4)
    Event ID:              17806
    Date:                     1/14/2009
    Time:                     10:41:31 AM
    User:                     N/A
    Computer:          <server name>
    Description:
    SSPI handshake failed with error code 0x8009030c while establishing a connection with integrated security; the connection has been closed. [CLIENT: <ip address>]
    Event Type:        Failure Audit
    Event Source:    MSSQLSERVER
    Event Category:                (4)
    Event ID:              18452
    Date:                     1/14/2009
    Time:                     10:41:31 AM
    User:                     N/A
    Computer:          <server name>
    Description:
    Login failed for user ''. The user is not associated with a trusted SQL Server connection. [CLIENT: <ip address>]
    I've already ensured that the server is set to mixed authentication mode. Oddly enough, the workaround that I've found is that if I remote desktop into the server, log in and then log back out, Management Studio is suddenly able to connect again. No idea why it works. 
    As I said before, it is intermitten. Some days it errors on login, other days it doesn't and there are no configuration changes between them. Also, both client and server are in the same domain and same site so there is no VPN or anything in between. I'm really quite stumped. Any help would be great, or if you can point me in the right direction of where to look. Thank you in advance!

  • How do i configure DSN connection to database Programmatically

    Hi to all,
    Can anybody assist me as how could i configure DSN connection to database Programmatically.
    Thanks in advance.
    Regards
    khiz_eng

    Hi DrClap,
    Many thanx for your advise, i have also done with MS-Access but now i wnated to have with .csv value, how i am going to have this .I have searched the whole JDBC forum already unable to find for .csv
    Please provide me and solve my problem
    Thanks in advance.
    khiz_eng

  • Error when connecting an oracle DB with Integration gateway

    I followed the steps from the blog How to connect an Oracle DB with Integration Gateway in SMP3 and the ojdbc was deployed successfully to SMP. Still, i'm getting "Driver class oracle.jdbc.driver.OracleDriver not found" error message when i try to test my connection. The first difference i saw when completing these steps was that I'm using SMP3 SP05, could this be the issue?

    Joao D Franco Net
    Could you share below information:
    Can you cross check if deployed driver are OSGi enabled? Refer this.
    Can you share screenshot of the destination settings and error ?
    note: The blog you followed is referring to SP03 (1st GA of SMP3)..You should not have any problem in connecting to Oracle DB being on any SP.
    Regards,
    JK

  • I want to cancel my account. I purchased a product that had errors in it. Within minutes I tried to cancel the purchase, and Acrobat will not let me. Furthermore, there are security errors in my account that are unacceptable. Please cancel my account, my

    I want to cancel my account. I purchased a product that had errors in it. Within minutes I tried to cancel the purchase, and Acrobat will not let me. Furthermore, there are security errors in my account that are unacceptable. Please cancel my account, my payments. I have called my bank and reported this as fraud.

    Kmrnyu, the order placed by you is still under transaction,  the order stands canceled.
    As soon as the order is complete I shall get it canceled & refunded.
    Regarding the account, do you want it to cancel the account? Please confirm.
    Regards
    Rajshree

  • Connect to a cube with Integrated WIndows Sercurity for Windows user with computer outside the domain

    Hello,I am trying to connect to an MSSAS cube with a windows user ( and i need this user to be the end user that connect to the cube) from outside the domain.It will be .Net application.I use msmdpump.dll before but the thing is it impersonate the connection
    so the user that connect to the Cube is not the real client user with is a problem for me because i like to manage the security throw roles.
    SSRS is able to do what i am trying to achieve ( it ask you your domain user and password) then connect to the cube with these credential which is great,but i do that ?
    With ADOMD.Net how do you provide windows user/password in the connection string ?
    I tryed to only active windows security access with IIS and MSSAS but it's not working with a computer outside the domain even if in excel i provide a windows user/password.
    Vincent

    With ADOMD.Net how do you provide windows user/password in the connection string ?
    Hello Vincent,
    See MSDN Connection String Properties (Analysis Services) for all available properties; addtitional: AdomdConnection.ConnectionString
    Property  =>
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • How to Connect Oracle Database 10g with using Oracle Dev 10g

    Hello there,
    I have problem with connection on database 10g using oracle dev 10g on the same server.
    The message is: TNS... bla..bla... it means not connect.
    Please advice
    Regards
    Leksono

    just simple
    copy the from the database instance the tnsnames.ora
    file's entried into developer folders tnsnames.ora
    file and you can connect to DBFirst of all there is no such error as TNS... bla..bla... it means not connect.
    there are several errors for the tnsnames, post the exact error
    And it is not recommended that you copy it from the database's tnsnames file, it doesn't always work.
    to configure the tnsnames.ora you have 2 ways, manual and GUI.
    For GUI use the Net configuration assistance from your Devsuite home and for manual you need edit the tnsnames.ora file usually under %ORACLE_HOME%/NETWORK/ADMIN
    You need to specify the connection string name, the hostname and the database SID name. It should look something like this.
    <connection identifier> =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = host name)(PORT = 1521))
        (CONNECT_DATA =
          (SERVICE_NAME = SID)
      )Regards,
    Tony

  • OS 10.7, SMB Connection, Change to Unicode with Extended Security on Windows Server 2008 Standard

    Hi All,  I've searched Google, and I've also contacted Apple Support with no luck:  I want to implement unicode with extended security on Windows Server 2008 Standard server shared folders so that Lion can connect normally (i.e. Finder->Go->Connect to Server->IP Address or server name) to SMB shares and access files.  I'm lacking information; has anyone actually implemented unicode with extended security?  If so, how?
    Thanks in advance.
    Tom

    Thanks for the reply aorlich. Do you mean enable file sharing on my Mac? With file sharing enabled, I still cannot get to my Windows 7 shares, although the files on my Mac do become available to Windows. Thanks again.

  • [SOLVED] How to start JACK with KDE 4? (and which JACK should I use?)

    Hi again
    I'm using KDE 4, and I've just installed JACK again, and since I can't find any decent documentation on this, I'm having a bit of a problem.
    Currently I have jack from [extra] installed, rather than jack2. When I try starting jack as the ArchWiki suggests, i.e. by typing "jackd -d alsa", I get the following error:
    $ jackd -d alsa
    jackd 0.120.1
    Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn and others.
    jackd comes with ABSOLUTELY NO WARRANTY
    This is free software, and you are welcome to redistribute it
    under certain conditions; see the file COPYING for details
    could not open driver .so '/usr/lib/jack/jack_firewire.so': libffado.so.2: cannot open shared object file: No such file or directory
    JACK compiled with System V SHM support.
    loading driver ..
    creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
    control device hw:0
    the playback device "hw:0" is already in use. Please stop the application using it and run JACK again
    cannot load driver module alsa
    I've also tried jack2 from [community], and after starting it with "jack_control start", I get this...
    $ jack_control start
    --- start
    DBus exception: org.jackaudio.Error.Generic: Failed to start server
    So how do I start it? I'm guessing jack doesn't want to start because some other KDE application grabbed alsa before jackd (but I've been wrong before), and I don't have the slightest idea what jack2 is about with that "generic" error. If anyone would help me shed some light on this, I'd appreciate it a lot.
    Thanks in advance!
    Last edited by Wintershade (2011-03-26 19:22:08)

    @schivmeister thanks that one worked
    Yes, it was knotify4. So now this part works. I've switched to jack2 and it works flawlessly when starting it with jackd
    So this part is solved... now, would you be so kind (if you know) as to point me to some tutorials or howtos (or proper documentation, cos I can't find much of that either) on how to connect various ALSA channels with JACK?
    Basically, I want to route my PCM channel and the Mic channel into Capture 1 (or one to Capture 1 and other to Capture 2), since my Intel HDA audio card doesn't have the "Mix" or "What-U-Hear" or whatever as an available capture source. Any leads on that? (or do I have to open another thread for it?)
    TIA

  • Performance problems with Integrated security and ODP

    Hi
    While testing performance for opening a data base connection, I notice there is a huge performace issue when using externally identified users and ODP with Oracle client 11.1.0.6 and .Net 3.5. The test is running 30 times slower with an externally identified user compared to using a database identified user.
    I also noticed that System.Data.OracleClient does not result in any significant performance penalties for externally vs database identified users.
    The test environment is Vista 64 and VS2008, and I do not notice any significant difference using 32bit vs 64bit Oracle client.
    Is this a known problem and does it exist a workaround for this?
    Kind regards
    Oyvind

    Hi,
    I'm assuming you're using 11.1.6.0 ODP, so you'd want to upgrade to 11.1.6.21 or higher ODP. Prior to that, Externally Authenticated connections were not pooled so resulted in a hard connection every time.
    If you have 111060 full client installed, applying the 11107 database patch to the cleint install will give you 11107 ODP. Or, you can add the [11106.20 ODAC bundle|http://www.oracle.com/technology/software/tech/windows/odpnet/index.html] into your existing 111060 full client home as well.
    Hope it helps,
    Greg

  • Connection time out issue with wep security

    Does anyone know what is causing connection time out when connecting to WEP network.
    Password is correct.
    $ and x0 in front don't work.
    A solution would be great.
    Thanks

    Hello freestyleadamski. Welcome to the Apple Discussions!
    o The MacBooks back until late 2006 can handle 802.11n/a/b/g
    o The late 2006 MacBooks will require the "n"-enabler to support the same.
    o The mid-2006 MacBooks will only support 802.11b/g
    o The iPod Touch will only support 802.11b/g
    Which radio mode should I be using so I can connect my macbooks (I have one and my wife, hers is slightly older) and our ipod touch?
    In order of most to least recommended: 802.11n (802.11b/g compatible), 802.11g only, 802.11b/g compatible, & 802.11b only.

  • Issues with SBO 2005 form load which has been created using  XML

    Am converting SBO 2004A addon into SBO 2005 addon, am loading a wizard form (wizard.xml)using following code.
       Dim oXMLDoc As MSXML2.DOMDocument
        Dim sXMLString As String
        Set oXMLDoc = New MSXML2.DOMDocument
        oXMLDoc.Load (App.Path & "FILESWizard2.xml")
        Dim strXml As String
        strXml = oXMLDoc.xml
        mobjSBOApplication.LoadBatchActions strXml
    But when we runs above code in SBO 2005, LoadBatchActions display error "Invalid Form - Item" "3006".
    It seems there are some change in the UI for the loadBatchActions to read the XML file.
    Would appreciate if you could advise on the same urgently.

    Hi Adele,
    Thanks for your reply.
    But this is the error comes with LoadBatchActions method of application object. I have check the same in debug mode but this is not item event error because i followed the loading event in form but action does not move ahead after the LoadBatchActions..
    I have also written GetLastBatchResults just below the LoadBatchActions and the same shows the below error message.
    <?xml version=""1.0"" encoding=""UTF-16""?><result><errors><error code=""-7037"" descr=""Argument is out of Range""/><error code=""-7037"" descr=""Argument is out of Range""/><error code=""-7037"" descr=""Argument is out of Range""/><error code=""-7037"" descr=""Argument is out of Range""/><error code=""-7037"" descr=""Argument is out of Range""/><error code=""-7037"" descr=""Argument is out of Range""/><error code=""3006"" descr=""<b>Form - Invalid Form Item""/><error descr=""Could not recover from previous errors""/</b>></errors></result>"
    but the same is working perfectly ok with 2004A.. would appreciate if you could advise on the same.

  • Help with Live!Drive IR + Which Sound Card to Use (Live! vs Audi

    Hey guys-- Recently a friend and I started recording music, my neighbor gave me a few cards, and this Li've!Dri've IR.
    First, he gave me a Li've! 5. (SB0060) and an Audigy (SB0090) Card. The Li've!Dri've IR (SB000) isn't even listed on products on the Creative American Site. Instead, it is only listed on the HK (Honk Kong) website.
    However, neither on the HK site, or the American site, can I find drivers for the dri've. When I say drivers, I honestly don't know if it has item specific drivers or if it functions without them (like a USB hub) but I am missing all of the Creative Suite (Play Center, remote, etc..) The American Site has a bunch of driver UPDATES but not the actual package for the bundled software... I only got 5. drivers off of there. I also have a remote that came with it.Additionally, I was wondering if I could (or should) use the Audigy Card over the 5. card.. I tried to look on the site to compare the differences but they are both so old it was hard to tell. I read that both cards would work with the AudigyDri've but I'm not sure about the backwards capabilities to work with the Li've!IR Dri've.ANY help at all would be wonderful.Note: I am running SONAR 4. if that makes any difference. Thanks,-Mike

    Li've!dri've works with both Li've! and audigy card. You will need to get the installation CD to install all the necessary files to works with the li'vedri've. What they have on the support pages are only updates and not standalone installation. I suggest you contact their support and get from them a installation CD. If not, I have the iso of the CD and it's 540MB. If you have ftp then I can upload it to you.

  • Sharepoint can't connect to database?

    Hello, our server all of a sudden cannot connect to the SQL database.  Nothing was changed (afaik), and this happened overnight sometime from 9 PM to 8 AM Sunday night.  What happens is, our single sharepoint 2010 server has all the services started,
    but on the server I see the error
    Unknown SQL Exception 18452 occurred. Additional error information from SQL Server is included below. Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.
     On the SQL server I see the error SSPI handshake failed with error code 0x8009030c, state 14 while
    establishing a connection with integrated security; the connection has been closed. Reason: AcceptSecurityContext failed. The Windows error code indicates the cause of failure. The logon attempt failed [CLIENT: sharepoint server IP]
    I'm trying to figure out if the username it's using is the Sharepoint Farm Admin account, but I can't access it.  When I run Sharepoint Products Config Wizard, it errors out with a similar access denied error.  I checked the account that the Sharepoint
    timer service is running under, it has access db_owner rights to the database and it is not locked, password expired, or password change necessary.  I was also able to logon to the SQL Server Management Studio with that account successfully.  I cannot
    access the Central Admin to change the password either.  Same error, cannot connect to the configuration database.
    I tried changing the account that the Timer Service is running under, and all of a sudden I was able to access the sharepoint site.  However, I'm seeing a lot of errors about requested registry access
    not allowed.  Now, I find that not all users can access the site.  I'm able to login successfully (but only when I specify the domain, before I didn't have to) but some users are not.  When those users try to login I see the error:
    Subject:
    Security ID:
    NULL SID
    Account Name:
    Account Domain:
    Logon ID:
    0x0
    Logon Type:
    3
    Account For Which Logon Failed:
    Security ID:
    NULL SID
    Account Name:
    username
    Account Domain:
    domain
    Failure Information:
    Failure Reason:
    An Error occured during Logon.
    Status:
    0xc000006d
    Sub Status:
    0x0
    Process Information:
    Caller Process ID:
    0x0
    Caller Process Name:
    Network Information:
    Workstation Name:
    my work station name
    Source Network Address:
    IP
    Source Port:
    49480
    Detailed Authentication Information:
    Logon Process:
    NtLmSsp 
    Authentication Package:
    NTLM
    Transited Services:
    Package Name (NTLM only):
    Key Length:
    0
    Anybody have any idea what is going on?  I've been googling and searching but none of the answers proposed online help.  I tried rejoining the sharepoint site to the domain multiple times but
    that does nothing.  I've tried using the SetSPN tool to set the SPN of the account that is being used in the Timer service with the MSSQLsvc SPN.  I've tried setting the Named Pipes to have precedence over TCP/IP on the SQL side.  The only thing
    that had any effect was to change the Timer service account, but it's still having alot of issues.  I should also note, the new account I'm using for that Timer service is also the same account we use for a different farm on the same domain, and that
    sharepoint server is having the EXACT same issues.  I don't know why changing one farm account to the same account that another farm would semi-fix the first farm, but still be broken on the second.  The first farm is our production server, and I
    really need to get this fixed asap.  I'm considering creating a new farm and just migrating the databases to that, but I'm very troubled by this and need to address this in case it happens in the future.  Thank you so much for reading/helping!
    EDIT: I should note, the other farm is using a completely different database server.  And, we have a third farm, but that's on a different domain we have set up for one of our Contracts.  That has different accounts, different domain, everything
    different.  That is completely fine.  

    Sounds like some sort of authentication issue. Are you able to do any of the following:
    - log into the SQL Server using an account in the same domain as the SharePoint service accounts?
    - log out of and log into the SharePoint server using an account in the same domain as the SharePoint service accounts
    - open a connection to SQL Server using SQL Server Management Studio, osql, a UDL file, or some other method as the farm service account?
    Jason Warren
    @jaspnwarren
    jasonwarren.ca
    habaneroconsulting.com/Insights

  • How to read the RD Connect Broker DataBase!!!!

    The msdn say there is a RD Connect Broker Data Base , it store the session information,but i dont know where is it and how to read it !
    Thank you !!!!

    Hi,
    You can use the vbs script below to dump the contents of the RD Connection Broker database.
    With credits to the authors of the Windows Server 2008 R2 RDS Resource Kit for putting it in there!
    ' Copyright (c) 2004-2005 Microsoft Corporation
    ' WMI Script - SDDatabaseDump.vbs
    ' Author     - GopiV
    ' This script dumps the contents (clusters and associated sessions)
    ' of the Session Directory database
    ' USAGE: Cscript.exe SDDatabaseDump.vbs <SBservername> <Administrator> <Password>
    const TAB = "    "
    const LINESEPARATOR = "------------------------------------------------"
    ON ERROR RESUME NEXT
    '* Function blnConnect()
    '* Purpose: Connects to machine strServer.
    '* Input:   strServer       a machine name
    '*          strNameSpace    a namespace
    '*          strUserName     name of the current user
    '*          strPassword     password of the current user
    '* Output:  objService is returned  as a service object.
    Function blnConnect(objService, strServer, strNameSpace, strUserName, strPassword)
        ON ERROR RESUME NEXT
        Dim objLocator
        blnConnect = True     'There is no error.
        ' Create Locator object to connect to remote CIM object manager
        Set objLocator = CreateObject("WbemScripting.SWbemLocator")
        if Err.Number then
            Wscript.Echo "Error 0x" & CStr(Hex(Err.Number)) & " occurred in creating a locator object."
            if Err.Description <> "" then
                Wscript.Echo "Error description: " & Err.Description & "."
            end if
            Err.Clear
            blnConnect = False     'An error occurred
            Exit Function
        end if
        ' Connect to the namespace which is either local or remote
        Set objService = objLocator.ConnectServer (strServer, strNameSpace, strUserName, strPassword)
     if Err.Number then
            Wscript.Echo "Error 0x" & CStr(Hex(Err.Number)) & " occurred in connecting to server " _
                & strServer & "."
            if Err.Description <> "" then
                Wscript.Echo "Error description: " & Err.Description & "."
            end if
            Err.Clear
            blnConnect = False     'An error occurred
        end if
        objService.Security_.impersonationlevel = 3
        if Err.Number then
            Wscript.Echo "Error 0x" & CStr(Hex(Err.Number)) & " occurred in setting impersonation level " _
                & strServer & "."
            if Err.Description <> "" then
                Wscript.Echo "Error description: " & Err.Description & "."
            end if
            Err.Clear
            blnConnect = False     'An error occurred
        end if
    end Function 
    ' Start of script
    if Wscript.arguments.count<3 then
       Wscript.echo "Script can't run without 3 arguments: ServerName Domain\UserName Password "
       Wscript.quit
    end if
    Dim strServer, strUserName, strPassword
    Dim objService, blnResult
    ' Extract the command line arguments
    strServer=Wscript.arguments.Item(0)
    strUserName=Wscript.arguments.Item(1)
    strPassword=Wscript.arguments.Item(2)
    ' Connect to the WMI service on the SD Server machine
    blnResult = blnConnect( objService, strServer, "root/cimv2", strUserName, strPassword )
    if not blnResult then
       Wscript.echo "Can not connect to the server " & strServer & " with the given credentials."
       WScript.Quit
    end if
    Set clusterEnumerator = objService.InstancesOf ("Win32_SessionDirectoryCluster")
    if Err.Number then
        Wscript.Echo "Error 0x" & CStr(Hex(Err.Number)) & " occurred"
    end if
    if clusterEnumerator.Count = 0 then
        Wscript.Echo "No clusters found in Session Directory database on " & strServer & "."
        Wscript.Echo
        Wscript.Quit
    end if
    for each clusterObj in clusterEnumerator
        WScript.Echo LINESEPARATOR
        WScript.Echo "ClusterName = " & clusterObj.ClusterName
        WScript.Echo "NumberOfServers = " & clusterObj.NumberOfServers 
        WScript.Echo "SingleSessionMode = " & clusterObj.SingleSessionMode
        Wscript.Echo
        set serverEnumerator = objService.ExecQuery("Select * from Win32_SessionDirectoryServer where ClusterName = '" & clusterObj.ClusterName & "'")
        if Err.Number then
           Wscript.Echo "Error 0x" & CStr(Hex(Err.Number)) & " occurred"
        end if
        if serverEnumerator.Count = 0 then
             Wscript.Echo "Error : No servers in cluster " & clusterObj.ClusterName
             Wscript.Echo
        else
             ' Enumerate the servers in this cluster
             for each serverObj in serverEnumerator
                WScript.Echo TAB & "SERVER :"
                WScript.Echo TAB & "ServerName = " & serverObj.ServerName & " ServerSingleSessionMode = " & serverObj.SingleSessionMode & " LoadIndicator = " & serverObj.LoadIndicator
    '            WScript.Echo TAB & "ServerIP = " & serverObj.ServerIPAddress
      '  WScript.Echo TAB & "ServerWeight = " & serverObj.ServerWeight
                set sessionEnumerator = objService.ExecQuery("Select * from Win32_SessionDirectorySession where ServerName = '" & serverObj.ServerName  & "'")
                if Err.Number then
                   Wscript.Echo "Error 0x" & CStr(Hex(Err.Number)) & " occurred"
                end if  
                if sessionEnumerator.Count = 0 then
                   WScript.Echo
                   WScript.Echo TAB & "No sessions on server " & serverObj.ServerName
                   WScript.Echo
                else
                   WScript.Echo TAB & "NumberOfSessions = " & sessionEnumerator.Count
                   Wscript.Echo
                   ' Enumerate the sessions on this server
                   for each sessionObj in sessionEnumerator
                      WScript.Echo TAB & TAB & "SESSION :"
                      WScript.Echo TAB & TAB & "UserName= " & sessionObj.DomainName & "\" & sessionObj.UserName & TAB & "ApplicationType= " & sessionObj.ApplicationType
    & TAB & "SessionState= " & sessionObj.SessionState
                      WScript.Echo TAB & TAB & "CreateTime= " & sessionObj.CreateTime & TAB & "DisconnectTime= " & sessionObj.DisconnectTime
    '                  WScript.Echo TAB & TAB & "ServerName= " & sessionObj.ServerName
    '                  WScript.Echo TAB & TAB & "SessionID= " & sessionObj.SessionID
    '                  WScript.Echo TAB & TAB & "ServerIP= " & sessionObj.ServerIPAddress
    '                  WScript.Echo TAB & TAB & "TSProtocol= " & sessionObj.TSProtocol 
     '                 WScript.Echo TAB & TAB & "ResolutionWidth= " & sessionObj.ResolutionWidth
      '               WScript.Echo TAB & TAB & "ResolutionHeight= " & sessionObj.ResolutionHeight
       '             WScript.Echo TAB & TAB & "ColorDepth= " & sessionObj.ColorDepth
        '              WScript.Echo
                      WScript.Echo
                   next
                end if   ' End of sessions on this server
             next
        end if  ' End of servers on this cluster
    next
    Wscript.Echo
    Wscript.Echo
    Wscript.Echo "Dump of SD database on " & strServer & " complete."
    Kind regards,
    Freek Berson
    http://www.microsoftplatform.blogspot.com
    Wortell company website

Maybe you are looking for

  • MDM plus DMS for file storage

    Hello folks We are planning to implement MDM for rich product catalogue for a customer; the latter already has SAP DMS (Document Management System from SAP ERP) where the product image files are stored on a SAP Content Server. Can we leave the images

  • Problem with Color Sampler Points

    I'm using PSCS4 on a Mac Pro, and recently upgraded to Snow Leopard 10.6.3 from Leopard 10.5.8. I regularly use color sampler points in Photoshop when adjusting curves. I seem to be having problems getting a sampler point to show up in the info palet

  • Captivate 4 AICC LMS

    Hi everyone, Could someone help please? I have designed a Quiz in Captivate 4 and published it with AICC LMS Option. Now you can see that Captivate 4 produces the .au, .crs, .cst and .des files. I have brought the Quiz into the LMS (namely, Isoph Blu

  • Exporting data from SMC database

    Hi, We are planning on pulling data captured by SMC to populate our CMDB (BMC Atrium). What is the common or suggested approach for getting data out? Seems like some options are * using the Java API * using the export utility * directly pulling from

  • Agentry Abdroid Branding version 6.0.40.1

    Hello All , how to set version name in agentry android branding version ? i set inside AgentryManifest.xml file but its not reflection . so when i try to upload in afaria , afaria got crash becasue couldnt find version name from branding client even