Herramientas Informaticas

Categoría: sql server 2014 express

RESPALDAR Y LEVANTAR BASES DE DATOS RAPIDAMENTE MS SQL SERVER 2008

Hay dias en las que algunas empresas que tienen demaciado flujo de información requieren un rapido cambio de servidor y por ende migrar todas las base de datos de la manera mas rapida y mejor posible, asi que les dejare el siguiente codigo para generar los respaldos y para levantarlos en el otro servidor.

Con este código generaremos el codigo para que con una consulta se respalden todas las bases de datos, suponiendo que tenemos la carpeta “RESPALDO” en el disco C,

SELECT 'BACKUP DATABASE ' + name + ' TO DISK =''C:RESPALDO' + name + ''' WITH INIT' FROM master.dbo.sysdatabases

Una vez tengamos los respaldos vamos copiarlos en el servidor destino con la misma ruta y generamos el codigo para levantar todas las bases de datos

SELECT 'RESTORE DATABASE ' + name + ' FROM DISK =''C:RESPALDO' + name + '''' FROM master.dbo.sysdatabases

 

Ejecutamos ese codigo y nos dara como resultado el codigo que vamos a ejecutar para levantar el respaldo,en pocas palabras nos evitara tener que escribir de mas en caso de que sean unas 100 bases de datos y todo el proceso se haga de manera automatica con unos 4 clicks y ahorrando tiempo al hacerlo uno por uno.

Espero que les sirva saludos

TUTORIAL SQL SERVER 2014 VISTAS Y PROCEDIMIENTOS

[youtube http://www.youtube.com/watch?v=8yVlc3OpmRA&hl=en&hd=1]

Que tal camaradas, les dejo el videotutorial donde se podran crear vistas y procedimientos almacenados en SQL server 2014 express

saludos

TUTORIAL SQL SERVER 2014 SELECT UPDATE CREATE ALTER

[youtube http://www.youtube.com/watch?v=zjixB-GTQu8&hl=en&hd=1]

Un pequeño tutorial básico de SQL SERVER 2014, donde se muestra como crear base de datos,en modo de diseño y por código, al igual que las consultas básicas con el alter para modificar la estructura de la table, select para hacer las consultar y update para modificar el contenido de la tabla

COURSE INTRODUCTION, SQL SERVER 2014 UNCENSORED

Buenos respectable public days

The following tutorial, experimental and educational purposes will be somewhat rude, mean to see if a person learns faster with the illness.
So, if you are a person that may affect you foul language, we invite you to leave the video, Anyway appreciate your visit.

MINIATURE

Such assholes !!, Welcome to intensive, and thanks for having eggs to continue watching the video.

In this video, I intend to teach them everything I have learned from SQL Server , and did not learn of books Heck, if not I learned working, asking there nosy, pure practice, I recommend reading so they are not like me.

First things first, and then continue, not like in the Star Wars movies.

Let the introduction.

This video is for beginners, so I start from scratch, if you’re going to be advanced and fucking without leaving any new contribution fuck better go elsewhere.

When working with SQL Server . Whether at work, we might classify as follows.

First this instance, I was going to say first is the PC, but it would be much bullshit.

SQL SERVER.mmap

First is the instance , oneinstance database can have a database hastablesviews , stored procedures and triggers.

If someone mentions them in English it go to Perga here, it’s the same.

 

 

 

 

 

 

TABLES

CustomersWe continue in the tables store information and have a format ofrows and columns , that’s stupid, fucking like Excel.

We start from the beginning, defining the instance.

 

 

 

 

 

 

 

 

INSTANCES

InstanceFor you see assholes like you to explain, theinstance is the mother who settled in the beginning when we installed the SQL Server, once installed, you can install another instance, typically, the first time we installed SQL Server, we put the name of the instance as defaultand can thus access it with pure IP of the machine, or the pure name of the machine, so if you want to install another instance , we have to put a name to differentiate it from the other, for example, name of the machine / name of the instance.

And heck, each instance will have their databases .

 

 

 

 

 

 

 

DATABASE

@@IDENTITY- and-SCOPE-_IDENTITY- with- triggers-in-SqlServerNow I will define what a database , in the most practical sense.

Well heck, not the’ll explain as in Wikipedia , database , as its name suggests, is the chingadera where data is stored intables , similar to Excel.

In the database are also stored procedures , views , andtriggers or as some call it, triggers . I will repeat again, oneinstance saved many databases all who believe in it, and a database has many tables and other shit that I mentioned.

 

 

 

 

 

TABLES AGAIN

CustomersTables, as I said, have rows and columns . All, all, but all thecolumns of the table, have a name and data type . in the next tutorial, I will show you how it works.

 

 

 

 

 

 

 

 

 

STORED PROCEDURES

procedureThe stored procedure is a function , a magical utterance, that when we call does many things, depending on how you have programmed, can access information from one or more tables , edit information and to deleteinformation , so that we become wueyes, is what its name implies, aprocedure in the database that can be invoked to do something, I can not explain, but we’ll see in practice.

 

 

 

 

 

 

 

 

 

 

VIEWS

vista1The views are just for information mixing tables , or at least, that’s what I used, but well said never use the sink.

 

 

 

 

 

 

TRIGGER

Trigger 1The triggers , serve to skyrocket. ie, with this wave, we can schedule when something happens in the database , trigger action and do something, which we will we program it to do.

If you’ve come this far, and you understood, you mean you’re a chingon like your dad. and you’re ready for the next video where you will see how to create a database, create tables, add other information, view information and modify the information.

Do not be ass and subscribe immediately give me like or do not like and leave a comment.

Goodbye, and I’m going because I’m shitting.

CURSO INTRODUCCION, SQL SERVER 2014 UNCENSORED

Buenos días respetable público

El siguiente tutorial, con fines experimentales y educativos será algo grosero, pretendo ver si una persona aprende mas rápido con el morbo.
Así que, si usted es una persona que le pueda afectar el lenguaje grosero, le invitamos a que abandone el video, de todas formas agradecemos su visita.

MINIATURA

 

Que tal ¡¡pendejos!!, Bienvenidos al curso intensivo, y gracias por tener los huevos, para continuar viendo el video.

En este video, pretendo enseñarles todo lo que he aprendido  de SQL Server, Y no lo aprendí de libros puñetas, si no que lo aprendí trabajando, preguntando allí de metiche, a pura practica, yo les recomiendo leer para que no sean como yo.

 

Primero lo primero, y después lo que siga, no como en las películas de Star Wars.

Vamos con la introducción.

Este video es para novatos, así que empezare desde cero, si eres avanzado y vas a estar chingando sin dejar algún aporte nuevo  mejor vete a chingar a otro lado.

Al trabajar con SQL Server. Ya en el trabajo, podríamos clasificarlo de la siguiente manera.

Primero esta la instancia, Iba decir que primero esta la PC , pero ya seria mucha pendejada.

 

 

SQL SERVER.mmap

Primero esta la instancia, una instancia puede tener base de datos, una base de datos,tiene tablasvistas, procedimientos almacenados y disparadores.

Si alguien los menciona en ingles que se valla a la Pérga de aquí, es lo mismo.

 

 

 

 

 

TABLAS

clientesContinuamos, en las tablas guardamos la información, y tienen un formato de renglones y columnas, así es pendejo, como el puto Excel.

Comenzamos desde el principio, definiendo la instancia.

 

 

 

 

 

 

 

INSTANCIAS

InstanciaPues verán pendejos, como explicarles, la instancia es esa madre que instalamos al principio, cuando instalamos el SQL Server, una vez instalado, podemos instalar otra instancia, normalmente, la primera vez que instalamos SQL Server, le ponemos el nombre de la instancia como default, pudiendo de esa forma acceder a ella con el puro IP de la máquina, o el puro nombre de la maquina, luego si queremos instalar otra instancia, tenemos que ponerle un nombre para diferenciarla de la otra, por ejemplo, nombre de la maquina /nombre de la instancia.

Y así puñetas, cada instancia tendrán sus bases de datos.

 

 

 

 

 

 

BASE DE DATOS

@@IDENTITY- and- SCOPE-_IDENTITY- with- triggers-in-SqlServerAhora les definiré lo que es una base de datos, en el sentido mas práctico.

Bueno puñetas, no se los voy a explicar como en el Wikipedia, La base de datos, como su nombre lo indica, es la chingadera donde se guardan los datos en tablas, parecidas al Excel.

En la base de datos se guardan también los procedimientos, vistas, y disparadores o como le llaman algunos, desencadenadores. Se los repito de nuevo, una instancia guarda muchas bases de datos todas las que creamos en ella, y una base de datos tiene muchas tablas y demás chingaderas que les mencioné.

 

 

 

TABLAS OTRA VEZ

clientesLas tablas, como  ya les dije, tienen renglones y columnas. Todas, todas, pero todas, las columnas de la tabla, tienen nombre y el tipo de dato. en el siguiente tutorial, les mostrare como funciona.

 

 

 

 

 

 

 

 

PROCEDIMIENTOS ALMACENADOS

procedimientoLos procedimientos almacenados, es como una función, un enunciado mágico, que cuando lo invocamos hace muchas cosas, dependiendo de como lo hemos programado, podemos consultar información de una o varias tablas, modificar información y hasta eliminar información, para que nos hacemos wueyes, es lo que su nombre dice, un procedimiento en la base de datos que podemos invocar para que haga algo, se que no me explico, pero ya lo veremos en la practica.

 

 

 

 

 

 

 

 

VISTAS

vista1Las vistas, son solo para ver información mezclando tablas, o por al menos, para eso los usé, mas bien dicho nunca use esa fregadera.

 

 

 

 

 

desencadenador 1Los disparadores, sirven para dispararse. es decir, con esta onda, podemos programar que cuando pase algo en la base de datos, se accione el disparador y haga algo, lo que nosotros le programemos que haga.

 

 

 

 

 

 

 

Si has llegado hasta aquí, y entendiste, significas que eres un chingon, como tu papa. y estas listo para el siguiente video en donde vas a ver como crear una base de datos, crear tablas, agregarles información, ver la información, así como modificar la información.

No seas culo y suscríbete inmediatamente, dale me gusta o no me gusta y deja un comentario.

Adiós, ya me voy por que me estoy cagando.

 

VIDEO DEMOSTRATIVO

[youtube http://www.youtube.com/watch?v=SOgtsji2r3A&hl=en&hd=1]

Creado con WordPress & Tema de Anders Norén