Documentos de Académico
Documentos de Profesional
Documentos de Cultura
go
use Biblioteca4
go
)
go
drop table tb_libros
go
select*from tb_libros
go
create table tb_autores(
au_id int not null constraint pk_tb_autores primary key(au_id),
au_nombre varchar(50) not null,
)
go
insert into tb_autores(au_id,au_nombre)values(1,'Socio')
insert into tb_autores(au_id,au_nombre)values(2,'Cesar vallejo')
insert into tb_autores(au_id,au_nombre)values(3,'Vargas llosa')
go
++++++++++++++++++++++++++++++
--crear archivos logicos y fisicos
drop database mibase
go
create database mibase
on primary
(
name='mibase_data01',
filename='c:\mibase_data01.mdf',
size=5MB,
maxsize=10MB,
filegrowth=1MB
),
(
name='mibase_data02',
filename='c:\mibase_data02.mdf',
size=2MB,
maxsize=20MB,
filegrowth=2MB
)
log on
(
name='mibase_log1',
filename='c:\mibase_data01.ldf',
size=5MB,
maxsize=10MB,
filegrowth=1MB
),
(
name='mibase_log2',
filename='c:\mibase_data02.ldf',
size=2MB,
maxsize=20MB,
filegrowth=2MB
)