Skip to content

SQL Jana

Jana's ramblings on SQL Server, Oracle, PowerShell and technology

Tag: Login

PowerShell/dbatools Tip – Clone a login / database user

One of the more frequent requests that a SQL Server DBA receives is to "Clone a login" with all its permissions. For example a request could be Clone BILL_BLACK's login and create a new login JACK_JOHNSON with exactly the same privileges in all databases. Clone AD group login BILLING_APP_ADMINS and create a login for new … Continue reading PowerShell/dbatools Tip – Clone a login / database user

Advertisement
Posted on October 5, 2020November 20, 2020 by SQLJanaPosted in dbatools module, Logins & Users, PowerShell, SQL ServerTagged AD Group, AD User, Clone, COPY, Copy-DbaLogin, Database List, DBA, dbatools, Destination, Exact, Export, GO, Invoke-DbaQuery, Login, LoginRenameHashtable, Permissions, PowerShell, Server List, Source, SQLPS, SQLServer, USER. 1 Comment

PowerShell: Invoke-RDPLogoff – Logoff From Windows Servers In Parallel

Recently, I changed my Windows password and that started a chain of events. My account would get locked out because an invalid password was used and I started getting weird errors in various programs when using the account even after getting it unlocked several times. Restarting my own PC did not help. Then, it occurred … Continue reading PowerShell: Invoke-RDPLogoff – Logoff From Windows Servers In Parallel

Posted on November 29, 2018 by SQLJanaPosted in PowerShell, RDP, User Session, WindowsTagged Disconnect, Exclude, Find, Get-LoggedOnUser, Host, Hosts, Include, Invoke-RDPLogOff, Invoke-RDUserLogOff, KILL, LoggedOn, LoggedOnUsers, Login, Logoff, Multiple, Parallel, Parallelism, PowerShell, RDP, RemoteDesktop, RemoveDesktopSession, Server, Servers, Session, Simultaneously, Threads, USER, WhatIf. Leave a comment

SQL Server: Time To Switch Schema Of All Objects Away From “dbo”

SQL Server: Time To Switch Schema Of All Objects Away From “dbo”

What are Schemas for? All of you are familiar with the default and built-in schema "dbo". When you create an object without a schema, "dbo" becomes the schema for the object. Generally, it is NOT considered a good practice from a manageability or security perspective to have everything owned by "dbo".  The alternative is to … Continue reading SQL Server: Time To Switch Schema Of All Objects Away From “dbo”

Posted on January 25, 2018February 12, 2018 by SQLJanaPosted in Active Directory, Database Role, Logins & Users, Permissions, Schema, Security, SQL ServerTagged AD Group, Alter, Audit, Best practices, Control, CREATE, CREATE SCHEMA, Custom, Database Role, dbo, Delete, Execute, Generate, Generate SQL, Governance, GRANT, INSERT, Login, Management, Permission, Privilege, References, Role, Schema, Schema Level, Security, SELECT, SQL Server, SQLServer, Switch, Switch Schema, sys.fn_builtin_permissions, TAKE OWNERSHIP, Transfer, Update, USER, VIEW DEFINITION. 2 Comments

SQL Server – Login failed for user ‘[username]’ – How to troubleshoot?

You try to login to SQL Server and you get a really nasty message: The key data in the error message At first glance, it appears to be utterly useless. The only useful message seems to be “Login failed for user 'myuser'.” but what we really need to know is “why?”. That information is somewhat … Continue reading SQL Server – Login failed for user ‘[username]’ – How to troubleshoot?

Posted on March 27, 2017March 25, 2017 by SQLJanaPosted in Error Messages, Logging, SQL Server, SSMSTagged Authentication, Cannot Connect, Error, Error log, Error Message, Error Number, Failed, Failure, Hackers, Instance, Line Number, Login, Login Failed, Severity, SQL Authentication, SQL Server, SSMS, State, Troubleshoot, USER, User ID is not valid, Windows. 1 Comment

SQL Server – Resolve – Cannot generate SSPI context

These links are more for my own reference than anything else to resolve the error: "Cannot generate SSPI context" It is a pesky error message that is related to security setup. All the things you need to check are in the MS article below. How to troubleshoot the "Cannot generate SSPI context" error message In … Continue reading SQL Server – Resolve – Cannot generate SSPI context

Posted on January 13, 2017January 13, 2017 by SQLJanaPosted in Active Directory, Error Messages, Permissions, SQL ServerTagged Active Directory, AD, AD User, Cannot generate SSPI context, Connection, Connectivity, Error, Kerberos, Login, Login error, Logon, Logon error, References, Service Account, Service Principal Name, SPN, SQL Server, SQL Server Service, SSPI. Leave a comment

Posts navigation

Older posts

Categories

Enter your email address to follow this blog and receive notifications of new posts by email.

Follow SQL Jana on WordPress.com

Tags

Active Directory AD Add AD Group Backup Backups Capture Code Column CommandLine COMMIT Compare COPY Database DateTime Days DBA dbatools DDL Delete DML Duration Dynamic SQL Error Errors Example Examples Fast File Files Filter FULL TABLE SCAN hangs Indexes INSERT Install ISE Linked Server Login LOOP Match Oracle Oracle Tip Output Parallel Performance Permissions PIVOT PLSQL PowerShell Query Replace ROLLBACK Run Search SELECT Size SQL SQL*Plus SQLPS SQL Server SQLServer SQL Server Tip SSMS Stored Procedure Table Tables Tip Transaction TSQL UNDO Update Usage USER Windows

Recent Posts

  • PowerShell & SQL Server: Unmask All Masked Columns (Dynamic Data Masking) In Database March 16, 2023
  • PowerShell: How To Reverse Alphabetical File Names & Rename December 17, 2022
  • SQL Server: Disable/Remove Indexes Across Servers/Databases Using PowerShell & dbatools November 9, 2022
  • MySQL: Fix MySQL Error 2026 (HY000): SSL connection error: error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol November 8, 2022
  • SQL Server: Backup/Restore to/from NAS Shares with Username/Password October 28, 2022

Top Posts & Pages

  • SQL Server: Fix: Transaction (Process ID) was deadlocked on lock | communication buffer resources with another process and has been chosen as the deadlock victim. Rerun the transaction
  • Oracle - CLOB vs. VARCHAR2 - When & When Not To Use?
  • Oracle: Find The Total Size Of All Of Your CLOB & BLOB Columns In All Tables
  • PowerShell Tip: Specify Select Column List (Attributes/Properties) Dynamically
  • Oracle - Data Dictionary Views - USER vs ALL vs DBA Views - 100 Level Basics
  • SQL Server - Drop An User In All Databases & Drop The Login Too!
  • How to Resolve - "ORA-24381: error(s) in array DML"
  • Hard-coding Values In SQL Code - Please Don't
  • Oracle - My KILL'ed Session Continues To Stay On In KILLED Status, Why?
  • Oracle - Return SELECT Statement Results Like SQL Server SP's - Using Pipelined Functions

Archives

  • March 2023 (1)
  • December 2022 (1)
  • November 2022 (2)
  • October 2022 (1)
  • April 2022 (1)
  • April 2021 (1)
  • November 2020 (1)
  • October 2020 (2)
  • September 2020 (1)
  • June 2020 (1)
  • May 2020 (2)
  • April 2020 (1)
  • March 2020 (2)
  • February 2020 (2)
  • November 2019 (1)
  • September 2019 (1)
  • July 2019 (2)
  • April 2019 (1)
  • March 2019 (3)
  • February 2019 (1)
  • November 2018 (1)
  • September 2018 (1)
  • August 2018 (1)
  • April 2018 (5)
  • March 2018 (3)
  • February 2018 (5)
  • January 2018 (6)
  • December 2017 (1)
  • October 2017 (1)
  • September 2017 (2)
  • August 2017 (4)
  • July 2017 (2)
  • June 2017 (3)
  • May 2017 (1)
  • April 2017 (11)
  • March 2017 (14)
  • February 2017 (23)
  • January 2017 (31)
  • December 2016 (10)
  • November 2016 (1)
  • October 2016 (3)
  • April 2016 (1)
  • March 2016 (1)
  • January 2016 (1)
  • November 2015 (2)
  • October 2015 (3)
  • September 2015 (1)
  • August 2015 (4)
  • July 2015 (1)
  • April 2015 (1)
  • December 2014 (1)
  • March 2014 (6)
  • February 2014 (1)
  • August 2012 (3)
  • October 2011 (1)
  • March 2011 (1)
  • February 2011 (1)
  • January 2011 (2)
  • December 2010 (2)

Follow me on Twitter

My Tweets
Blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Follow Following
    • SQL Jana
    • Join 145 other followers
    • Already have a WordPress.com account? Log in now.
    • SQL Jana
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
 

Loading Comments...