2 Working With Databases
2 Working With Databases
net and c# video tutorial: Creating, altering and dropping a database - Part 2
The Wayback Machine - [Link]
More Create Blog Sign In
Support us .Net Basics C# SQL [Link] [Link] MVC Slides C# Programs Subscribe Buy DVD
Kate
Academic Consultant
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.
ReactJS Tutorial
Part 1 - 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
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
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
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
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
Hi Venkat,
SQL Server
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
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.
Powered by Blogger.
[Link] 4/4