SQL Server -- Get Disk Space Usage

For DBA, monitoring disk usage is a necessary task. There is no easy way to obtain disk space usage information. Here's a summary of the scripts saved over the years: The most commonly used way to view disk free space, which is a must-remember entry to DBA: -- View Disk Available Space EXEC master.dbo.xp_fixeddrives The xp_fixeddrives m ...

Posted by cooler75 on Tue, 16 Jul 2019 11:46:51 -0700

ASP.NET MVC 5 Implementing GridView Paging

This paper implements a GridView with ASP.NET MVC 5. Its functions include paging, filtering, sorting, asynchronous execution of AJAX, and also support Responsive Web Design in appearance. The execution screen is shown in Fig. 1 below.ASP.NET MVC implements GridView and paging in many ways. This article refers to several articles of Code Projec ...

Posted by phaseonemedia on Mon, 15 Jul 2019 12:00:53 -0700

Oracle Learning Day 3

1. Introduction to PLSQL Oracle database extends SQL, and then adds some programming language features, which can control the execution process of SQL, and then realize some complex business functions. 1.1 Composition of PLSQL Component declare - It's the declaration part. begin - yes plsql ...

Posted by Crazy Horse on Fri, 12 Jul 2019 14:12:02 -0700

Creation of ORACLE Stored Procedures and ORA-06502:PL/SQL: Solutions to Number or Value Errors

Four stored procedures are created, which are simple stored procedure without parameters, stored procedure with two input parameters IN, stored procedure with one input parameter IN, one output parameter OUT and stored procedure with two input and output parameters IN OUT. Create a global temporary emp table CREATE GLOBAL TEMPORARY TABLE e ...

Posted by KrisNz on Tue, 02 Jul 2019 14:13:22 -0700

Oracle Stored Procedures

1. Stored procedure structure 1.1 First stored procedure create or replace procedure proc1( p_para1 varchar2, p_para2 out varchar2, p_para3 in out varchar2 )as v_name varchar2(20); begin v_name := 'Zhang Sanfeng'; p_para3 := v_name; dbms_output.put_line('p_pa ...

Posted by cwheel3915 on Sat, 29 Jun 2019 13:04:53 -0700

Goodbye database

Data constraints 1. Data constraints: Adding some data constraints to the table can achieve the effect of constraining users to manipulate data. 2. default constraints When no value is added to the field, a default value is given. If the value added to the field constrained by the default value is null, its field value is null. Cre ...

Posted by duk on Mon, 24 Jun 2019 17:49:33 -0700

Experimental Testing of Adn_move_table Mechanism (1)

Reorg is mainly to rearrange the data to save unnecessary space use, at the same time, it can reduce the number of write buffers and improve performance. Reducing space occupancy can be achieved by reducing the high water level in surface space. In order to analyze various reorg cases, an experimental test was carried out in particular. 1. ...

Posted by Mad_Mike on Mon, 17 Jun 2019 14:31:29 -0700

sql common basic statements

Basics Create a database Determine whether the database exists before creating it if exists (select * from sysdatabases where name='databaseName') drop database databaseName go Create DATABASE database-name Delete the database drop database dbname Backup sql server Create a device for backing up data USE master EXEC sp_addumpdevi ...

Posted by Brand Hill on Wed, 12 Jun 2019 17:43:27 -0700

The difference between Shared Preferences commit and apply

commit method apply method summary Most people die at the age of 20 or 30. They become their own shadow. The future life is just to copy themselves day by day. —— Roman Rowland's John Christopher Today, I was asked a few basic questions. I didn't pay attention to them. I made an embarrassing reply. I took this opportuni ...

Posted by Dujo on Mon, 03 Jun 2019 18:43:29 -0700

Database Objects - Functions, Views, Synonyms, Cursors, Packages

function Grammar for Defining Functions Practice calculating the sum of two numbers Adding Data to Exercise Functions Call function of exercise function view Characteristics of Views Adding and deleting views Add view Delete view Synonym SYNONYM grammar Practice synonyms cursor Classification of cursors Cursor syntax Pr ...

Posted by whizard on Tue, 21 May 2019 16:07:03 -0700