While altering one procedure in my sql database i got above mentioned error. One of my college Mr.AjayGhosh who is an encyclopedia in MySQL database helped me to solve this issue.
SET SQL_SAFE_UPDATES = 0; DELETE FROM temp_todo WHERE id NOT IN (SELECT idRetain FROM temp_Distinct); SET SQL_SAFE_UPDATES = 1;
Today my friend Ajmal requested a help to configure database user with permission to access only one database associated with that user.
Arun.T.K a young and dynamic database administrator who is an encyclopedia in MsSqlServer really helped me to achieve this task
Making a SQL Server database visible to only database owner and sysadmin role. This requires you to modify the database owner using store procedure, but likely not the one you expect.
USE [FlamingoB2C] GO CREATE LOGIN FlamingoUser with Password=’U$er_A@1234′ ( This will login user in database) GO USE [FlamingoB2C] GO CREATE USER FlamingoUser for login FlamingoUser; (This will create user for selected Login) GO USE [FlamingoB2C] GO EXEC sp_addrolemember ‘db_owner’, ‘FlamingoUser’ ( This will add this user in role database owner) GO USE [FlamingoB2C] GO EXEC sp_changedbowner [FlamingoUser] ( This will change the user to selected database owner)
Before running the above step we should remove the user from Security tab in specific database.
For disable unwanted database for specific user, we need to right click on the Sql server and go to properties. From there we need to select permissions. Deny permission for View any database.
There are a lot of different ways to use Git. There are the original command-line tools, and there are many graphical user interfaces of varying capabilities.
Commands for different functions
git status –> This will get the details of files need to check in