Posts

๐—ฉ๐—ถ๐˜€๐˜‚๐—ฎ๐—น ๐—ฆ๐˜๐˜‚๐—ฑ๐—ถ๐—ผ ๐“๐ข๐ฉ - ๐—จ๐˜€๐—ฒ ๐——๐—ฒ๐˜ƒ ๐—ง๐˜‚๐—ป๐—ป๐—ฒ๐—น๐˜€ ๐—ถ๐—ป ๐—ฉ๐—ถ๐˜€๐˜‚๐—ฎ๐—น ๐—ฆ๐˜๐˜‚๐—ฑ๐—ถ๐—ผ ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฎ ๐˜„๐—ถ๐˜๐—ต ๐—”๐—ฆ๐—ฃ.๐—ก๐—˜๐—ง ๐—–๐—ผ๐—ฟ๐—ฒ ๐—”๐—ฝ๐—ฝ๐˜€

Image
  ๐Ÿ’ก ๐—ฉ๐—ถ๐˜€๐˜‚๐—ฎ๐—น ๐—ฆ๐˜๐˜‚๐—ฑ๐—ถ๐—ผ ๐“๐ข๐ฉ - ๐—จ๐˜€๐—ฒ ๐——๐—ฒ๐˜ƒ ๐—ง๐˜‚๐—ป๐—ป๐—ฒ๐—น๐˜€ ๐—ถ๐—ป ๐—ฉ๐—ถ๐˜€๐˜‚๐—ฎ๐—น ๐—ฆ๐˜๐˜‚๐—ฑ๐—ถ๐—ผ ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฎ ๐˜„๐—ถ๐˜๐—ต ๐—”๐—ฆ๐—ฃ.๐—ก๐—˜๐—ง ๐—–๐—ผ๐—ฟ๐—ฒ ๐—”๐—ฝ๐—ฝ๐˜€ ๐——๐—ฒ๐˜ƒ ๐—ง๐˜‚๐—ป๐—ป๐—ฒ๐—น๐˜€ allows developers to securely expose localhost URLs over the internet by creating temporary, publicly accessible URLs. ๐——๐—ฒ๐˜ƒ ๐—ง๐˜‚๐—ป๐—ป๐—ฒ๐—น๐˜€ enable you to access your local development environment from the internet and allow secure share with colleagues through an encrypted channel. ๐——๐—ฒ๐˜ƒ ๐˜๐˜‚๐—ป๐—ป๐—ฒ๐—น๐˜€ also offer authentication and access control features for added security when sharing your local services. โ„น️ ๐——๐—ฒ๐˜ƒ ๐—ง๐˜‚๐—ป๐—ป๐—ฒ๐—น๐˜€ feature was officially released with ๐—ฉ๐—ถ๐˜€๐˜‚๐—ฎ๐—น ๐—ฆ๐˜๐˜‚๐—ฑ๐—ถ๐—ผ ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฎ ๐˜ƒ๐Ÿญ๐Ÿณ.๐Ÿฒ for windows. ๐Ÿ”ฅHere are the advantages of using ๐——๐—ฒ๐˜ƒ ๐—ง๐˜‚๐—ป๐—ป๐—ฒ๐—น๐˜€, ✅ ๐—ฆ๐—ฒ๐—ฐ๐˜‚๐—ฟ๐—ฒ ๐—ฏ๐˜† ๐—ฑ๐—ฒ๐—ณ๐—ฎ๐˜‚๐—น๐˜ - By default ๐——๐—ฒ๐˜ƒ ๐—ง๐˜‚๐—ป๐—ป๐—ฒ๐—น๐˜€ you create are only accessible to you through your Microsoft, Microsoft Entra ID, or GitHub account . ✅ ๐—ฃ๐—ฒ๐—ฟ๐˜€๐—ถ๐˜€๐˜๐—ฒ๐—ป๐˜ ๐—จ๐—ฅ๐—Ÿ๐˜€ - Maintain the same ๐——๐—ฒ๐˜ƒ ๐—ง๐˜‚๐—ป

Rebuild all indexes in a Database

Image
Manually Rebuild Indexing   Indexes can be rebuilt/reorganize in SQL Server Management Studio using the following steps; 1- In Object Explorer locate the table that holds the intended index and expand it. 2- Expand Indexes. 3- Right-click on the index and click on Rebuild or Reorganize. Rebuild All Table Indexing By Script Try the following script: Exec sp_msforeachtable 'SET QUOTED_IDENTIFIER ON; ALTER INDEX ALL ON ? REBUILD' GO Also I prefer(After a long search) to use the following script, it contains  @fillfactor  determines how much percentage of the space on each leaf-level page is filled with data. DECLARE @TableName VARCHAR ( 255 ) DECLARE @sql NVARCHAR( 500 ) DECLARE @fillfactor INT SET @fillfactor = 80 DECLARE TableCursor CURSOR FOR SELECT QUOTENAME(OBJECT_SCHEMA_NAME([object_id])) + '.' + QUOTENAME(name) AS TableName FROM sys.tables OPEN TableCursor FETCH NEXT FROM TableCursor INTO @TableName WHILE @ @FETCH _STATUS = 0 BEGIN SET

How to Check Index Fragmentation on Indexes in a Database

  Issue SQL Queries taking longer than normal to complete. Cause when a database is frequently updated via INSERT, UPDATE, or DELETE statements, over time these modifications can cause the information in the index to become scattered in the database (fragmented). Fragmentation exists when indexes have pages in which the logical ordering, based on the key value, does not match the physical ordering inside the data file. If database indexes are fragmented, the SQL Server query optimizer may choose a non-optimal execution plan when using an index to resolve a query. Heavily fragmented indexes can degrade query performance and cause your application to respond slowly. Resolution *Warning: Irreparable database damage can occur. This procedure should only be performed by users familiar with SQL Server Management Studio. Databases should be backed up prior to performing this procedure.* The following is a simple query that will list every index on every table in your database, ordered by the

How to receive JSON object in POST and GET using web api

  ASP.NET Web API   is a great tool for building HTTP services with ASP.NET. It makes many things HTTP that used to be ill defined in .NET easy and allows you to build a variety of services very easily. Like other complex abstraction frameworks it makes complex scenarios super easy, while some very simple and common operations are not quite as straight forward or as transparent as they should be.   Capturing the raw Request Body But things are not so easy and transparent when you want to pass simple parameters like strings, numbers, dates etc. Because Web API is based on a host of conventions, some things that should be easy, such as easily picking up the raw content of a POST or PUT operation and capturing it, aren't quite so transparent as the automatic type mapping shown above. One thing you might expect to be able to easily do, is to pick up the entire content body and map it to a parameter like this: [ HttpPost ]         public string PostRawBuffer( strin