Monday, May 15, 2017

How to fix ORA-01502 index or partition of such index is in usable state

If you get the error How to fix ORA-01502: index or partition of such index is in usable state in Oracle. It is possible that an index is broken from a table.

To fix this error, you can do the following:

rebuild the index with the following SQL command:

ALTER INDEX your_index_name REBUILD;

Thursday, May 11, 2017

Response.Headers -->This operation requires IIS integrated pipeline mode.

Try the following Solution:

Your Application Pool is in classic mode but your Application need integrated mode to fire. change it to Integrated Mode:

  1. Open IIS Manager
  2. Application Pool
  3. Select pool that your app are run in it (in case same app pool is used in multiple published web applications, in that case create a new appl. pool for this web application)
  4. In right panel select Basic Setting
  5. Manage Pipeline Mode change to Integrated

Sunday, April 2, 2017

Pen drive show empty even when data exists

Pen drive show empty even when data exists

Check if the files are not in hidden mode.

Click on "Start" -->Run --> Type cmd and press Enter.

Here I assume your pendrive drive letter as H:

Enter this command.

attrib -h -r -s /s /d h:\*.* --> Press Enter

Friday, February 17, 2017

To remove all debug breakpoints in Android Studio

To remove all debug breakpoints in Android Studio, follow the steps given below:

  1. Ctrl + Shift + F8 (open Breakpoints dialog)
  2. Ctrl + A (select all breakpoint)
  3. Alt + Delete (remove selected breakpoints)
  4. Enter (confirm)

Wednesday, January 18, 2017

How to Create users in SQL Server for accessing only one Database using Sql Server Management Studio

Steps Restrict SQL Server Login/User Access to only one database are given below:  

1. Connect to your SQL server instance using management studio
2. Goto Security -> Logins -> (RIGHT CLICK) New Login
3. fill in user details (userid/password etc.)
4. Under User Mapping, select the databases you want the user to be able to access and configure

Here is the list of the ROLES that can be assigned:

db_owner Members of the db_owner fixed database role can perform all configuration and maintenance activities on the database, and can also drop the database.

db_securityadmin Members of the db_securityadmin fixed database role can modify role membership and manage permissions. Adding principals to this role could enable unintended privilege escalation.

db_accessadmin Members of the db_accessadmin fixed database role can add or remove access to the database for Windows logins, Windows groups, and SQL Server logins.

db_backupoperator Members of the db_backupoperator fixed database role can back up the database.

db_ddladmin Members of the db_ddladmin fixed database role can run any Data Definition Language (DDL) command in a database.

db_datawriter Members of the db_datawriter fixed database role can add, delete, or change data in all user tables.

db_datareader Members of the db_datareader fixed database role can read all data from all user tables.

db_denydatawriter Members of the db_denydatawriter fixed database role cannot add, modify, or delete any data in the user tables within a database.

db_denydatareader Members of the db_denydatareader fixed database role cannot read any data in the user tables within a database.