This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IF OBJECT_ID ('spa_XXX_ACT_NOMBRE') IS NOT NULL | |
DROP PROCEDURE spa_XXX_ACT_NOMBRE | |
GO | |
CREATE PROCEDURE spa_XXX_ACT_NOMBRE | |
AS | |
/* | |
!IniHeaderDoc | |
***************************************************************************** | |
!NombreObjeto : spa_XXX_ACT_NOMBRE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'fsutil file createnew <NOMBRE_ARCHIVO> <TAMA脩O EN BYTES> | |
'Para el c谩lculo de bytes https://es.calcuworld.com/informatica/calculadora-de-bytes/ | |
fsutil file createnew archivo_3_megas.pdf 3145728 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dir /b /s /a-d >lista_archivos.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Lista de tablas | |
SELECT * FROM INFORMATION_SCHEMA.TABLES | |
-- Lista de SP's | |
SELECT * FROM INFORMATION_SCHEMA.routines where routine_type = 'PROCEDURE' | |
-- Lista de tablas con las columnas y sus descripciones | |
SELECT sys.objects.name AS TableName, | |
sys.columns.name AS ColumnName, | |
ep.value AS Description |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE USER [USUARIO_OTRO_ESQUEMA] FOR LOGIN [USUARIO_OTRO_ESQUEMA]; | |
GRANT SELECT TO USUARIO_OTRO_ESQUEMA; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE #tabla_temporal ( | |
id_tabla BIGINT | |
,cd_columna_01 BIGINT | |
,gl_columna_02 | |
) | |
CREATE NONCLUSTERED INDEX idx_tabla_temporal ON #tabla_temporal ([id_tabla]) | |
-- Otras formas de definir indices |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
/** | |
* Setea e inicializa la tabla con datos | |
*/ | |
$("#tbl_ajax").DataTable({ | |
"ajax" : URL_SERVICIO, | |
"columns" : [ | |
{"data" : "col1" }, | |
{"data" : "col2"}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Clase para el c谩lculo del valor Factoral (n!) | |
* de un n煤mero entero usando recursividad | |
*/ | |
class Factorial { | |
/** | |
* C谩lculo el valor factorial (n!) | |
* llamada al m茅todo | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.concurrent.ThreadLocalRandom; | |
class Helper { | |
static int[] lista_generica_valores ( int largo_cadena ) { | |
int [] arreglo_base = new int[largo_cadena]; | |
for ( int n =0; n<largo_cadena;n++ ) { | |
arreglo_base[n] = ThreadLocalRandom.current().nextInt(0, 100000 + 1); | |
} | |
return arreglo_base; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.concurrent.ThreadLocalRandom; | |
class Helper { | |
static int[] lista_generica_valores ( int largo_cadena ) { | |
int [] arreglo_base = new int[largo_cadena]; | |
for ( int n =0; n<largo_cadena;n++ ) { | |
arreglo_base[n] = ThreadLocalRandom.current().nextInt(0, 100000 + 1); | |
} | |
return arreglo_base; |