Query SQL bulit-in account information
Dear Expert,
Is there any known script to query the sql account (bulit-in) information? espcially for creation date, last logon date, etc?
Thanks so much.
Logon date of account is not captured by default. You can use Logon Trigger and create a solution.
Balmukund Lakhani
Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
This posting is provided "AS IS" with no warranties, and confers no rights.
My Blog |
Team Blog | @Twitter
| Facebook
Author: SQL Server 2012 AlwaysOn -
Paperback, Kindle
Similar Messages
-
How to find out sql server administrator account in sql server 2008 R2
how to find out sql server administrator account in sql server 2008 R2
adilthere is any way to find out actual administrator
because i forget that user i used to logon to server and installed sqlserver
adil
Hi adilahmed,
According to your description, you forgot the account which was used to install SQL Server. SQL Server service account information is stored in Windows Registry database. You can get this information from Services Console or SQL Server Configuration.
For example, to get account information from Services Console.
1. Go to Start > Run > Services.msc
2. Right Click on SQL Server Service, i.e. “SQL Server (InstanceName)” and go to properties
3. The account information is available under Log On tab.
Or you can get the information by using DMV and so on.
SELECT servicename, service_account FROM sys.dm_server_servicesGO
If you now log in SQL Server by using sysadmin account, you can check all login names in security and find the original account to login.
Thanks,
Sofiya Li
Sofiya Li
TechNet Community Support -
Team,
I got an error while creating a User for Domain Account. Below is the screen shot of the error (error : 15401)
Database instance is on SQL 2000 SP3. ( I know it is out of support, But the customer is relutanct to upgrade)
On Google search, i found below article which is best matching for this error
http://support.microsoft.com/kb/324321
I have follows each step of troubleshooting. But still the issue persists.
Step 1. The login does not exist == The login is very much exist in the domain as i am able to add the same domain id to other database instances
Step 2. Duplicate security identifiers == i have used this query to find duplicate SID
/* SELECT name FROM syslogins WHERE sid = SUSER_SID ('YourDomain\YourLogin') */
But there was only one row returned with create date of today's.
Error while Assigning database level role (db_datareader) to SQL login (Domain Account)
Step 3. Authentication failure == Domain is available. User is able to login on other servers via RDP connection.
Step 4. Case sensitivity == Database collation is set to Case insensitivity. (CI)
Other two 5. Local Accounts & 6. Name resolution == is not applicable to me.
I tried other ways also.
A. Creating login and providing permission in one go only = User account is not created
B. Instead of GUI, use query to create login and provide required permission = Same error.
Does anybody has faced any such situation
ChetanSee the below output
srvid
sid
xstatus
xdate1
xdate2
name
password
dbid
language
isrpcinmap
ishqoutmap
selfoutmap
NULL
0x010500000000000515000000A1F66E1BFC1DC75D26E72530A2B80400
14
20:25.9
57:33.4
UKBAA\LHRAPPMuttavarapuS
NULL
1
us_english
0
0
0
Chetan -
I know this question has been asked before, but never for R2, that I can tell, and the posted fixes aren't working. I have just installed SCVMM 2008 R2 on a Windows Server 2008 R2 server, using a remote SQL 2008 SP1 database. When I attempt to connect to SCVMM, I get the following error:
"The SQL Server service account does not have permission to access Active Directory Domain Services (AD DS).
Ensure that the SQL Server service is running under a domain account or a computer account that has permission to access AD DS. For more information, see "Some applications and APIs require access to authorization information on account objects" in the Microsoft Knowledge Base at http://go.microsoft.com/fwlink/?LinkId=121054.
ID: 2607"
What I've seen online is that this is usually becuase the domain account SCVMM is running as does not have the proper permissions on the SQL database. Here's what I've confirmed:
1) My SCVMM service account is a local admin on the SCVMM server
2) My SCVMM service account is a dbowner on the SCVMM database in SQL
3) My SQL service account is a dbowner on the SCVMM database in SQL
4) My SQL service account is a domain user (even made it a domain admin, just in case, and it still "doesn't have access to AD DS," which is obviously untrue)
5) Neither service account is locked out
Has anyone run in to this? It says in Technet that remote SQL 2008 is supported, as long as the SQL management studio is installed to the SCVMM server, and I installed and patched before I began the SCVMM installation. I just don't know what else to try - I have no errors in event logs, no issues during the installation itself...
Andrew ToppThat answer was very unhelpful fr33m4n. The individual mentions that they've received the error that points to the KB article. I currently receive the same error -- there seems to be no resolution. I've run the Microsoft VBS script to add TAUG to the WAAG
as suggested by 331951, and that made absolutely no difference.
1) My SCVMM service account is a local admin on the SCVMM server
2) My SCVMM service account is a dbowner on the SCVMM database in SQL
3) My SQL service account is a dbowner on the SCVMM database in SQL
4) My SQL service account is a domain user (even made it a domain admin, just in case, and it still
"doesn't have access to AD DS," which is obviously untrue)
The user is also a member of WAAG, the machines have delegated authority to each other. Is there any other solution? -
Error occured while saving the user account information
I'm trying to install LiveCycle ES 2 with PDF Generator on a Windows 2008 server wtih SQL Server 2005. When I run the configuration manager I get an error in the step where you add the administrator user credentials for generator. The error I'm receiving is ALC-PDG-080-032-Error occured while saving the user account information. Has anyone seen this issue before? Any ideas on what the problem may be?
Going back some time, another user (do not recall Matrox on the system) had a similar issue. The workaround in that case was to use Save_As and just increment the file name. Now, I do not recall any real "fix," and for another user, the Save_As resulted in the same behavior, so it was not a universal workaround.
Good luck, and please report your findings,
Hunt -
How do you query activity data for accounts?
I need to extract account activity data. When I try to use the Activity WSDL it doesn't seem to provide any account information even though I do see fields like AccountId, AccountName. They are blank. Also it looks like there is way to do a activity query using the Account WSDL. Does anyone have an example of this?
We are using Release 18 with V2 WSDL.
Thank you,
Dan
Edited by: dansshin on Oct 14, 2010 2:33 PMI'm not sure what you mean by XML string but I'm trying to extract to CSV file using this code. It provides activity data but looks like account information fields are blank.
Thank you,
Dan
private static void ExtractGrowerAccountActivity(String sessionID, String csvFileName)
try
// Download the opportunity wsdl from the Admin section of the CRM application
// Add web reference to the wsdl
// Create the instance of the account entity
Activity myAcctAct = new Activity();
myAcctAct.Url = ConfigurationManager.AppSettings["OnDemandURL"] + "/Services/Integration;jsessionid=" + sessionID;
// Set the query
// To find the record with account type as grower
Activity_WS.queryType myAcctName = new Activity_WS.queryType();
myAcctName.Value = "";
// Create query instance and set the appropriate parameters
Activity_WS.ActivityQuery myAcctActQuery = new Activity_WS.ActivityQuery();
myAcctActQuery.AccountId = new Activity_WS.queryType();
myAcctActQuery.AccountName = myAcctName;
myAcctActQuery.AccountExternalSystemId = new Activity_WS.queryType();
myAcctActQuery.Id = new Activity_WS.queryType();
myAcctActQuery.Activity = new Activity_WS.queryType();
myAcctActQuery.CreatedByFullName = new Activity_WS.queryType();
myAcctActQuery.CreatedDate = new Activity_WS.queryType();
myAcctActQuery.DueDate = new Activity_WS.queryType();
myAcctActQuery.Completed = new Activity_WS.queryType();
myAcctActQuery.CompletedDatetime = new Activity_WS.queryType();
myAcctActQuery.Subject = new Activity_WS.queryType();
myAcctActQuery.Type = new Activity_WS.queryType();
// Set ListOfAccountQuery
Activity_WS.ListOfActivityQuery lstOfAcctActQuery = new Activity_WS.ListOfActivityQuery();
lstOfAcctActQuery.Activity = myAcctActQuery;
// Number of records to fetch
lstOfAcctActQuery.pagesize = "100";
// set ActivityQueryPage_Input
ActivityQueryPage_Input myActInput = new ActivityQueryPage_Input();
myActInput.ListOfActivity = lstOfAcctActQuery;
// Get the output
ActivityQueryPage_Output myOutput = myAcctAct.ActivityQueryPage(myActInput);
// Get ListOfAccountData
Activity_WS.ListOfActivityData myAcctActData = myOutput.ListOfActivity;
Activity_WS.ActivityData[] acctActData = myAcctActData.Activity;
// Write to output file
if (acctActData.Length > 0)
using (var sw = new StreamWriter(csvFileName))
// Write header
sw.WriteLine("AccountID, AccountName, AccountType, ExternalID, ActivityID, ActivityType, CreatedBy, CreatedDate, DueDate, IsCompleted, CompletedDate, Subject, Type");
for (int i = 0; i < acctActData.Length; i++)
// Write detail
sw.WriteLine(string.Format("{0}, {1}, {2}, {3}, {4}, {5}, {6}, {7}, {8}, {9}, {10}, {11}, {12}",
acctActData.AccountId,
acctActData[i].AccountName,
"Account Type",
acctActData[i].AccountExternalSystemId,
acctActData[i].Id,
acctActData[i].Activity,
acctActData[i].CreatedByFullName,
acctActData[i].CreatedDate,
acctActData[i].DueDate,
acctActData[i].Completed == true ? "Y" : "N",
acctActData[i].CompletedDatetime,
acctActData[i].Subject,
acctActData[i].Type));
// Write to log
log.Message = string.Format("INFO: {0} Grower account activity record(s) extracted.", acctActData.Length);
log.Categories.Add(Category.General);
log.Priority = Priority.Normal;
writer.Write(log);
catch (Exception ex)
log.Message = string.Format("ERROR: " + ex.ToString());
log.Categories.Add(Category.Error);
log.Priority = Priority.High;
writer.Write(log); -
I have just installed Information platform services 4.1 sp2 on a windows server 2008 R2 standard service pack 1. having 8 GB RAM.
Central Configuration manager is in Running status but when I try to login to Cental management Console then I get following error
"Account information not recognized: Could not reach CMS '<MachineName>:6400'. The CMS on machine '<MachineName>' was stopped due to a critical error. (FWM 20031)"
I have CMS and AUDIT database on Oracle server and they are getting connected from my machine through SQL developer and the tables are also created under CMS and audit databases.
I am not able to figure out what Issue is causing the Error. Below is the content of error_cms6400.log file located in the directory <E:\SAP Business Objects\SAP BusinessObjects Enterprise XI 4.0\logging>.
33007
CMS system database is overloaded, please try again. If the problem persists, please contact the system administrator(FWB 00027)
35101
The root server reported an error Initialization Failure. (Reason: CMS system database is overloaded, please try again. If the problem persists, please contact the system administrator(FWB 00027)CMS system database is overloaded, please try again. If the problem persists, please contact the system administrator(FWB 00027) CacheObjectIDs ).
I have created New databases for CMS and audit and it is saying database is overloaded.
Please help me rectify the Issue.
Thanks in AdvanceHi Ankur,
As per the error message you entered the issue might occur because the Oracle CMS database reside in a different network or there is a network delay between BO server and database server. Please refer KBA 1706849 and try following steps.
Confirm that the CMS database and BO server are in same network
Try to ping database server from BO server and check the reply. The reply should come in 1 ms
Confirm with DBA whether there are 14 connections established to CMS database
Stop the SIA and restart your database schema. Then start the SIA and try login
Please let us know error messages in Event viewer if this is a Windows server and also is this a clustered environment ?
Regards,
Hrishikesh -
Reviewing Windows NT Rights and Privileges Granted for SQL Server Service Accounts
Hi Folks,
I am an experienced .NET apps developer who has been tasked with writing a bunch of technical controls for all the SQL Server instances on a domain.
So for the last month I have been diving in the deep end learning Powershell, dba and infrastructure tasks. This is still a work in progress, so be kind to me.. ;o)
So the task I am stuck on is described in the section on 'Reviewing Windows NT Rights and Privileges Granted for SQL Server Service Accounts' http://technet.microsoft.com/en-us/library/ms143504(v=sql.105).aspx
I have not been able to find cmdlets that gives me this information. I have found some exes which come frustratingly close like NTRights.exe. This lets me specify a computer name which is great, but only seems to let you set or deny permissions, not just
list them!
Any help with this would be very much appreciated as I am firmly stuck. As per comments above also bear in mind that up until around 1.5 months ago I had never used powershell / knew very much at all about SQL server admin etc. Feeling much more comfortable
with them now, but much less so with Active Directory/ windows permission structures etc so please can I ask anyone kind enough to reply to try and keep the acronyms down as much as humanly possible.. ;o)
Cheers
KieronHi Kieron,
Take a look at this module, it makes permissions much easier to work with than what's currently available:
https://gallery.technet.microsoft.com/scriptcenter/PowerShellAccessControl-d3be7b83
Don't retire TechNet! -
(Don't give up yet - 13,085+ strong and growing) -
SQL Server Service Account - Domain Account - WMI Provider Error - 0x80092004
Hi,
if I try to use an domain account for SQL service start using SQL configuration Manager I receive the error
WMI Provider Error - 0x80092004
in Popup Window and in Eventlog 5 Error Events from Source MSSQLSERVER:
26014:
Unable to load user-specified certificate [Cert Hash(sha1) "BA78B5DBF93CCD7EFA1860C99B0D6141D480199A"]. The server will not accept a connection. You should verify that the certificate is correctly installed. See "Configuring Certificate for
Use by SSL" in Books Online.
17182:
TDSSNIClient initialization failed with error 0x80092004, status code 0x80. Reason: Unable to initialize SSL support. Cannot find object or property. "
17182:
TDSSNIClient initialization failed with error 0x80092004, status code 0x1. Reason: Initialization failed with an infrastructure error. Check for previous errors. Cannot find object or property.
17826:
Could not start the network library because of an internal error in the network library. To determine the cause, review the errors immediately preceding this one in the error log.
17120:
SQL Server could not spawn FRunCommunicationsManager thread. Check the SQL Server error log and the Windows event logs for information about possible related problems.
After I put the account in local administrator group the service starts up.
I want to use the lowest privileges. Do I really need the SQL server service account in local administrator group? How to fix the error?
thanksHi baschuel,
It is recommended to run SQL Server service by using the lowest possible user rights and it is supported to use a domain account instead of an account from local Administrators group to configure SQL Server service. According to your error messages, the
issue could be due to that the incorrect certificate is used, or the domain account has no access to the Crypto folder(C:\ProgramData\Microsoft\Crypto). To troubleshoot the issue, you could follow the two solutions below.
1.Import the correct certificate following the steps in the article:
http://windows.microsoft.com/en-hk/windows/import-export-certificates-private-keys#1TC=windows-7
2.Grant the domain account full access to the Crypto folder.
Regards,
Michelle Li
If you have any feedback on our support, please click
here. -
How can I change my iCloud Account information?
I used to use my dad's Apple ID, so I shared it with my sister. So for the iCloud Account Information part, using my dad's Apple ID,(this is how I got the iCloud Account Information on my sister's iPod: Settings>iCloud>Account>Mail) (here's how I got there on my sister's iPod touch 4th generation:
I made an iCloud account with an email that was very easy to remember. But now I have my own Apple ID and I want to use that (easy to remember) iCloud email with it my new Apple ID. When I try to put that (easy to remember)iCloud email with my Apple ID, this is what it says:
I want to know if there is a way to change the iCloud email in the iCloud Account Information>
Please help!!I logged into my dad's Apple account and tried to find an option to delete the iCloud email from my dad's Apple ID, but I don't see any option to do that. This is all I see:
How can I delete my iCloud email from my dad's Apple ID? -
How can I correct my iCloud account information on my iPhone 5S?
I am able to use and access iTunes on my phone, but I cannot use any of the iCloud functionality. When I view my "account" information in iCloud in Settings, it has an old, unused email address. How can I update this information on my iPhone? I have no problem logging into iCloud on my computer, just my phone. I have no problems with iTunes on my computer or my phone.
I logged into my dad's Apple account and tried to find an option to delete the iCloud email from my dad's Apple ID, but I don't see any option to do that. This is all I see:
How can I delete my iCloud email from my dad's Apple ID? -
Weird message in iCal "Error Locating Account Information"
Hi,
I've a problem syncing iCal with Google calendar.
It works in the beginning very well, but sometimes I receive the message:
Error Locating Account Information
Request encountered an unexpected error (domain CalDAV No Calendar Home Error / code 1).
And the calendar stops syncing.
What is this message ? Why works well and then, suddenly, stops ?(without change any setting)
Mac OS X - 10.6.7
iCal 4.0.4
ThanksGreetings,
That is an error message coming back from the Google CalDAV server when iCal requests an update of your calendars.
1.) First make a backup of your calendars by clicking on each one, one at a time and going to File > Export > Export and then saving the files somewhere for safekeeping.
2.) Delete the Google account from iCal > Preferences > Accounts
3.) Remove the following to the trash and restart your computer:
Home > Library > Caches > com.apple.ical and / or "ical"
Home > Library > Calendars > Calendar Cache, Cache, Cache 1, 2, 3, etc. (Do not remove Sync Cache or Theme Cache)
Home > Library > Preferences > com.apple.ical (There may be more than one of these. Remove them all.)
4.) Launch iCal and then go to iCal > Preferences > Accounts and re-add your Google account being very careful to type in the user name and password correctly.
See if that helps. -
Did you know that Verizonwireless is saving your checking account information when you pay your bill by check and then making it part of your "MyVerizon" without you adding it? This means of course if they get hacked that information could be compromised. What do you think of this?
Credit card and debit card and checking and savings information is encrypted so it is possible to be hacked, but the odds are greater to get hit by the Love Boat then to have a wide scale hack.
Oh yes they do happen, Bank of America, Chase, Citibank, Target and quite a few others. But in all the years I have paid my invoice with saved card information I never been hacked.
You use good passwords and the risk is minimal.
Good Luck -
I have seral email accounts on my Mac. One does not work on the Mac but works on my iPad and iPhone. The account information was added on the Mac. I keeps rejecting my password.
You don't input the information in manually for iCloud mail. It is automatically set up for you when you sign into iCloud via System Preferences and choose the Mail checkbox. Sign out of iCloud or deselect Mail in iCloud preferences. Open Mail's preferences and choose accounts tab. If iCloud account still exists in the list, delete it. Sign back into iCloud or check the box for mail. The account will be auto created for you.
-
When i go to sign into apple id it says "We apologize but we are unable to verify your account information online". When i go to "Not sure if you have an Apple ID?" It says "We apologize but we are unable to verify your account information online" When i try to sign in with my email it says "you already have an account????
Might I suggest a password reset?
Maybe you can click on the Reset Password link instead of trying to log in at appleid.apple.com.
I'm not sure if that would work, but its worth a try.
~Lt. Leviathan
Maybe you are looking for
-
It's official...I bit the big one....
Thanks to the help of you guyzzzz. I just ordered my 1st Mac. I am quickly leaving behind my 20 year PC PAST! Studio2, 3.0 Dual Quad Core with the 23" monitor. It should be coming Fri or Sat. At that time I will be sliding in 8 more gigs of ram (tota
-
How do I fix a charger that has been used on an incompatible device?
I lent my charger to a friend, and when I got it back it started acting up. First it told me to reset my Ipod in Itunes, but before I could it suddenly refused to show up anywhere on my computer. It doesn't even register as a blank disk, and it doesn
-
I purchased Adobe Photoshop Elements in Dec 2013. I have had to buy a new computer and when I try to install and when I am asked to enter the redemption code I insert the serial number but it tells me it is not valid. What do i need to do. Noel
-
Does cloaking work in Dreamweaver CS4?
Why, when I select to synchronize in Dreamweaver CS4, and I select to delete files on remote server not on local server, do files in a cloaked folder show up? Thanks. Stephen
-
Error searching with google search bar
When seraching the net using Google search bar I got this message "Access to Proxy requires some authentication"