0% found this document useful (0 votes)
6 views4 pages

2 Working With Databases

This document is a video tutorial on creating, altering, and dropping a database using SQL Server. It explains how to perform these actions both graphically through SQL Server Management Studio (SSMS) and via SQL queries. Additionally, it covers important considerations such as file generation and database usage restrictions during deletion.

Uploaded by

realayoola007
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views4 pages

2 Working With Databases

This document is a video tutorial on creating, altering, and dropping a database using SQL Server. It explains how to perform these actions both graphically through SQL Server Management Studio (SSMS) and via SQL queries. Additionally, it covers important considerations such as file generation and database usage restrictions during deletion.

Uploaded by

realayoola007
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

3/12/2023 Sql server, .

net and c# video tutorial: Creating, altering and dropping a database - Part 2
The Wayback Machine - [Link]
More Create Blog Sign In

Sql server, .net and c# video tutorial


Free C#, .Net and Sql server video tutorial for beginners and intermediate programmers.

Support us .Net Basics C# SQL [Link] [Link] MVC Slides C# Programs Subscribe Buy DVD

Kate
Academic Consultant

Creating, altering and dropping a database - Part 2

In Part 1 of SQL Server, we have seen, using SSMS to connect to SQL Server. In this
part we will learn creating, altering and dropping a database.

A SQL Server database can be created, altered and dropped


1. Graphically using SQL Server Management Studio (SSMS) or
2. Using a Query

Pragim Technologies - Best software


training and placements in marathahalli,
bangalore. For further details please call
09945699393.

ReactJS Tutorial
Part 1 - Video | Text | Slides

Part 2 - Video | Text | Slides

Complete Tutorials
JavaScript tutorial

Bootstrap tutorial

[Link] 1/4
3/12/2023 Sql server, .net and c# video tutorial: Creating, altering and dropping a database - Part 2
Angular tutorial for beginners
Creating altering and dropping …
Angular 5 Tutorial for beginners

Important Videos
The Gift of Education

Web application for your business

How to become .NET developer

Resources available to help you

Dot Net Video Tutorials


[Link] Core Tutorial

Kate [Link] Core Razor Pages Tutorial


Academic Consultant
Angular 6 Tutorial

Angular CRUD Tutorial

Angular CLI Tutorial

Angular 2 Tutorial

Design Patterns

SOLID Principles
To create the database graphically
1. Right Click on Databases folder in the Object explorer [Link] Web API
2. Select New Database
3. In the New Database dialog box, enter the Database name and click OK. Bootstrap

AngularJS Tutorial

To Create the database using a query


jQuery Tutorial
Create database DatabaseName
JavaScript with [Link] Tutorial

Whether, you create a database graphically using the designer or, using a query, JavaScript Tutorial
the following 2 files gets generated.
.MDF file - Data File (Contains actual data) Charts Tutorial
.LDF file - Transaction Log file (Used to recover the database)
LINQ

LINQ to SQL
To alter a database, once it's created
Alter database DatabaseName Modify Name = NewDatabaseName LINQ to XML

Entity Framework
Alternatively, you can also use system stored procedure
Execute sp_renameDB 'OldDatabaseName','NewDatabaseName' WCF

[Link] Web Services

To Delete or Drop a database


Dot Net Basics
Drop Database DatabaseThatYouWantToDrop
C#

Dropping a database, deletes the LDF and MDF files. SQL Server

[Link]
You cannot drop a database, if it is currently in use. You get an error stating - Cannot
[Link]
drop database "NewDatabaseName" because it is currently in use. So, if other users
are connected, you need to put the database in single user mode and then drop the
GridView
database.
Alter Database DatabaseName Set SINGLE_USER With Rollback Immediate [Link] MVC

Visual Studio Tips and Tricks


With Rollback Immediate option, will rollback all incomplete transactions and closes the
connection to the database. Dot Net Interview Questions

Slides
[Link] 2/4
3/12/2023 Sql server, .net and c# video tutorial: Creating, altering and dropping a database - Part 2
Entity Framework
Note: System databases cannot be dropped.
WCF

[Link] Web Services

6 comments: Dot Net Basics

Anonymous June 22, 2015 at 12:38 AM C#

Hi Venkat,
SQL Server

Is it possible to add sample links of scriptlets or snippets of databases and tables as a


[Link]
part of your download.
[Link]
Additionally, TSQL based programming functions and procedures tutorials will be a good
start for beginners.
GridView
Kate
thanks
Academic Consultant [Link] MVC
Reply
Visual Studio Tips and Tricks

Unknown April 2, 2016 at 4:59 AM


Java Video Tutorials
Hi Venkat, Part 1 : Video | Text | Slides

If the size of the .LDF file is getting increased in GBs so how to decrease the size of it. In Part 2 : Video | Text | Slides
my case the size is increased about 48GB. I have tried with shrink option but it is not
working. Part 3 : Video | Text | Slides

Thanks.
Interview Questions
Reply
C#
Replies
SQL Server
Unknown May 16, 2019 at 12:20 PM
Written Test
Simple take log backup of database and perform DBCC Shrink file operation
on it.

Reply

Unknown January 6, 2018 at 7:41 AM


if we drop the database .ldf file will be [Link] how it is used to recover the
database?
Reply

information Basket November 25, 2018 at 6:52 PM


hi Mr. venkat,

i need to take sql sever course with you


Reply

Trinath December 26, 2019 at 1:47 AM


Hi sir
Is there any chance to create the Files with Query
Reply

Enter your comment...

Comment as: Google Accoun

Publish Preview

[Link] 3/4
3/12/2023 Sql server, .net and c# video tutorial: Creating, altering and dropping a database - Part 2
If you like this website, please share with your friends on facebook and Google+ and
recommend us on google using the g+1 button on the top right hand corner.

Newer Post Home Older Post

Subscribe to: Post Comments (Atom)

Powered by Blogger.

[Link] 4/4

You might also like