Skip to main content

Posts

Angular - Tutorial Part - 1 Application shell "Tour of languages"

The Application Shell Install the Angular CLI I nstall the  Angular CLI , if you haven't already done so. npm install - g @angular / cli Create a new application Create a new project named  angular-tour-of-languages  with this CLI command. ng new angular - tour - of -languages The Angular CLI generated a new project with a default application and supporting files. S erve the application Go to the project directory and launch the application. cd angular - tour - of - heroes ng serve -- open The   ng serve   command builds the app, starts the development server, watches the source files, and rebuilds the app as you make changes to those files. The   --open   flag opens a browser to   http://localhost:4200/ . You should see the app running in your browser. A ngular components The page you see is the  application shell . The shell is controlled by an Angular component named  AppComponent . Components  are the fundamental building blocks of Angular appli

SQL Server Tutorial - Database queries

1. Rename Database: In this query we will learn about  How to rename database in SQL Server . 1 EXEC sp_renamedb 'oldName' , 'newName' OR 1 ALTER DATABASE oldName MODIFY NAME = newName 2. Rename Table: In this query we will learn about  How to rename Table in SQL Server . 1 EXEC sp_rename 'OldTableName' , 'NewTableName' 3. Rename Table Column: In this query we will learn about  How to rename Table Column in SQL Server . 1 EXEC sp_rename 'TableName.OldColumnName' , 'NewColumnName' , 'COLUMN' 4. Check SQL Server version: In this query we will learn about  How to check version of SQL Server . 1 SELECT @@version 5. Get list of hard drives with free space: In this query we will learn about  How to get list of system hard drives with available free space using SQL Server . 1 EXEC master..xp_fixeddrives 6. Get Id of latest inserte