Archive

Archive for the ‘General’ Category

Overview of SQL Server and its components

May 14, 2023 Leave a comment

SQL Server is a powerful relational database management system developed by Microsoft. It is used by businesses and organizations of all sizes to store and manage their data. In this article, we will provide an overview of SQL Server and its components.

What is SQL Server?

SQL Server is a software platform for creating and managing databases. It is designed to be highly scalable, secure, and reliable. SQL Server provides a range of features for managing data, including support for transactions, referential integrity, and data replication.

SQL Server is available in several editions, each of which is tailored to the needs of different types of users. The editions range from the free Express edition to the enterprise-level Datacenter edition. The different editions vary in terms of the number of processors they support, the amount of memory they can utilize, and the features they offer.

SQL Server Components

SQL Server consists of several components, each of which serves a specific purpose in the data management process. Here are the key components of SQL Server:

  1. SQL Server Database Engine: The SQL Server Database Engine is the core component of SQL Server. It is responsible for storing, processing, and retrieving data. The Database Engine consists of two main components: the Database Management System (DBMS) and the Database Engine.

The DBMS is responsible for managing the physical storage and retrieval of data. It manages the allocation and deallocation of disk space, as well as the organization of data on the disk. The Database Engine, on the other hand, manages the logical operations that are performed on the data. This includes operations like querying, indexing, and sorting data.

  1. Analysis Services: Analysis Services is a component of SQL Server that enables users to analyze and model their data for better decision-making. It includes tools for data mining, data analysis, and data visualization.
  2. Integration Services: Integration Services is a platform for building and deploying data integration solutions. It includes tools for extracting, transforming, and loading data between different systems.
  3. Reporting Services: Reporting Services is a platform for creating and deploying reports that can be accessed by users via a web browser or a mobile device. It includes tools for designing, publishing, and managing reports.
  4. Master Data Services: Master Data Services is a component of SQL Server for managing master data, which refers to the data that represents the core business entities of an organization. It includes tools for creating, managing, and governing master data.

SQL Server Tools

SQL Server comes with several tools for managing and working with data. Here are some of the key tools:

  1. SQL Server Management Studio (SSMS): SSMS is a graphical user interface tool for managing SQL Server. It provides a range of features for managing databases, users, and permissions, as well as for writing and executing SQL queries.
  2. SQL Server Data Tools (SSDT): SSDT is an integrated development environment for building and deploying SQL Server databases. It provides a range of features for designing database schemas, creating queries, and deploying databases.
  3. SQL Server Profiler: SQL Server Profiler is a tool for monitoring and analyzing the performance of SQL Server. It allows users to capture and analyze SQL Server events, such as queries, stored procedures, and transactions.

Conclusion

SQL Server is a powerful and versatile database management system that offers a wide range of features for managing data. Its components and tools make it easy for businesses of all sizes to store, manage, and analyze their data. Whether you are a small business owner or a large enterprise, SQL Server can provide you with the tools you need to manage your data effectively.

SQL Server Basics series

May 14, 2023 Leave a comment

Hello Dear Reader, we would be starting an SQL Server basics to Advance series and will be covering below topics .

Article 1: Introduction to SQL Server Administration

  • Overview of SQL Server and its components
  • Installation and setup of SQL Server
  • Creating and managing databases
  • User and permission management
  • Backup and recovery strategies
  • Monitoring and troubleshooting SQL Server

Article 2: Managing Data in SQL Server

  • Data types and schema design
  • Creating and managing tables, views, and indexes
  • Data manipulation with SQL statements (SELECT, INSERT, UPDATE, DELETE)
  • Data normalization and denormalization
  • Bulk import and export of data
  • Transactions and locking

Article 3: Performance Tuning in SQL Server

  • Understanding query execution plans
  • Identifying and resolving performance bottlenecks
  • Indexing strategies and best practices
  • Query optimization techniques
  • Monitoring and tuning server resources (CPU, memory, disk I/O)
  • Performance troubleshooting and tuning

Article 4: High Availability and Disaster Recovery in SQL Server (5000 words)

  • Introduction to high availability and disaster recovery (HA/DR) concepts
  • Implementing database mirroring, log shipping, and replication
  • Configuring failover clustering and availability groups
  • Backing up and restoring databases for disaster recovery
  • Testing and maintaining HA/DR solutions
  • Business continuity planning and best practices

Article 5: Advanced SQL Server Administration Topics

  • Advanced security and encryption features
  • Managing large databases and data warehouses
  • Integration with other systems (SSIS, SSRS, Power BI)
  • SQL Server in the cloud (Azure SQL Database, AWS RDS)
  • Extending SQL Server with custom code (CLR, PowerShell, T-SQL)
  • Performance and scalability considerations for large-scale deployments

using progress Bar in powershell

March 8, 2015 Leave a comment

Hey all ,

I was looking for an way to pop up an progress BAR for an ongoing progress within an POWERSHELL script ..

figured out powershell inheritably provide an inbuilt cmdlet for doing the same .

Command ::

write-progress

for detailed help and examples on this command use below cmdlet

## get-help

ย  get-help write-help -full | more

 

Example ::

for ($i = 1; $i -le 100; $i++ )

{

get-process

write-progress -activity “Search in Progress” -status $i% Complete:” -percentcomplete $i;}

 

Example for 2 barsย ::

for ($i = 1; $i -le 100; $i++ )

{

get-process

write-progress -activity “Search in Progress” -status $i% Complete:” -percentcomplete $i -CurrentOperation “outerloop” ;

for ($j = 1; $j -le 100; $j++ )

{

get-process

write-progress -Id 1 -activity “Search in Progress” -status $j% Complete:” -percentcomplete $j -CurrentOperation “innerloop”;

}

}

 

progress Bar

Categories: General, Powershell

Database Page Basics

December 27, 2013 Leave a comment

Hi all,

i was looking for a some basics to find out to which Table a particular page belongs to ..

Found below you tube Channel which covered everything i was looking for

check out the link and subscribe to the same .. ย  SQLpassionย byย ย Klausย Aschenbrennerย 

ย you will cover below basics if you try out the example yourself ,

1>basic Database ย PAGE Structure ย and how to use DBCC IND , DBCC PAGE ย and DBCC TRACEON(3604)

2> how the table partition and allocation units are related each other

3> what are different types of Allocation units ย i.e in row ,LOB and row over-flow data

ย  ย Please try the example as you go throughย the the linksย 

ย  ย 1ย 

ย  ย 2

3

4

Enjoy ๐Ÿ™‚

Could not find database ID 2, name ‘tempdb’. The database may be offline

September 14, 2013 Leave a comment

 

 

 

one of my SQL server .. has been logging in ERRORS related to Tempdb been unavailable during Startup and after few seconds everything

 

seems to be working fine .. i assumed that its related to drives holding the TempDB was going offline or it was not accessible when the SQL

 

was coming online .. below is the error messageย 

 

ERROR :

 

013-09-10 06:36:22.850 spid55 Could not find database ID 2, name ‘tempdb’. The database may be offline. Wait a few minutes and try again. 2013-09-10 06:36:22.980 spid9s Starting up database ‘tempdb’.

 

After some time the SQL would recover normally .. without any furthur errors or similar messagesย 

 

Solution :

 

i figured out that this is a known issue and does occur in SQL 2000 and 2005 (could also be a possiblity in higher versions too)

 

below is what is causing thisย 

 

Application likeย ย Biztalk or web Farm keepย trying to connect to SQL every second while the sql is starting up ..ย 

 

and they try to Create objects in tempdb .. from the very go … as TEMPDB is been refreshed and not accessible ย above mentioned messages

 

are logged in SQL error log .. (which can lead to DBA’s looking for reason from drive prespective)

 

–> i have used TRACE FLAG 3614 to cause the SSNETLIB.dll (SQL server network library) to be loaded only after successful recovery of

 

system databases and hance above messages are not logged in SQL error log ..ย 

 

refer :ย http://support.microsoft.com/kb/834798

 

 

 

load test you SQL server CPU

August 24, 2013 Leave a comment

Hey There ..

ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย  I found 2 great CPU load testing tools .. that you can use to run heck your SQL server CPU ..

ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย  here’s what I got from them (download it from below link )

ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย  http://www.primatelabs.com/geekbench/

ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย  GEEKBENCH 3 can be downloaded from above link .. and below are some of the test it run against the CPU and

ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย memory .. the results are very detailed and easy to consume ..

Geekbench_1

ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย  once you start the benchmark test .. you will see different load been put on CPU and memory ..

Geekbench_2

ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย  you will observer .. that CPU and memory are going over the roof .. and wish to figure out other ways to do

ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย  theย  same …

Geekbench_3ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย  the results are informative about what is and what counter and numbers our server resources have hit

Geekbench_4

ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย  ย the 2nd great tool .. that we will discuss is available for download from below link ..

ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย  http://www.cpuid.com/softwares/cpu-z/versions-history.html

ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย  once you are done with download .. and get it installed .. you will get a screen similar to below ..

CPU-Z_2

the different tabs on above screen cover all aspect of processor .. that you would be interested in finding out ..

so enjoy and play around with these free tools and spread the word ..

Thanks for reading .. ๐Ÿ™‚

bonus video by

Understanding CPU Specifications DalePoston

great whitepapers on Contention in SQL Server

August 24, 2013 1 comment

 

Hey .. Check out 2 great whitepapers on contention in SQL SERVER ..

 

Diagnosing and Resolving Latch Contention on SQL Server

 

http://sqlcat.com/sqlcat/b/whitepapers/archive/2011/07/05/diagnosing-and-resolving-latch-contention-on-sql-server.aspx

 

Diagnosing and Resolving Spinlock Contention on SQL Server

 

http://sqlcat.com/sqlcat/b/whitepapers/archive/2011/07/05/diagnosing-and-resolving-spinlock-contention-on-sql-server.aspx

Enjoy ๐Ÿ™‚

 

multi-threading is for computers,but human are single-threaded and will be

August 2, 2013 Leave a comment

Check out a great post by Thomas Larock about why to FOCUS on single-task at time .. to really getting it done ..

why we should switch off social technology to focus on our most critical projects ..

โ€œTo do two things at once is to do neither.โ€ โ€“ Publilius Syrus

read the whole blog on below link …

http://thomaslarock.com/2013/08/whats-the-biggest-mistake-you-make-each-day/

ENJOY:)

error while Creating an instance of the COM component with CLSID {AA40D1D6-CAEF-4A56-B9BB-D0D3DC976BA2}

July 12, 2013 1 comment

Hi There ,

got below error while trying to EDIT a job which .. i have created and edited few times earlier..

EDIT_JOB_Failure
COMPLETE Error –> TITLE: Microsoft SQL Server Management Studio
——————————

Creating an instance of the COM component with CLSID {AA40D1D6-CAEF-4A56-B9BB-D0D3DC976BA2} from the IClassFactory failed due to the following error: c001f011. (Microsoft.SqlServer.ManagedDTS)

——————————
ADDITIONAL INFORMATION:

Creating an instance of the COM component with CLSID {AA40D1D6-CAEF-4A56-B9BB-D0D3DC976BA2} from the IClassFactory failed due to the following error: c001f011. (Microsoft.SqlServer.ManagedDTS)

——————————
BUTTONS:

OK
——————————

it turns out that few people already faced this issue and reported on below connect linK

http://connect.microsoft.com/SQLServer/feedback/details/557402/ssms-can-no-longer-create-or-edit-job-steps

My SSMS and Shared features as below ::

Microsoft SQL Server Management Studio 10.50.1617.0
Microsoft Analysis Services Client Tools 10.50.1617.0
Microsoft Data Access Components (MDAC) 3.85.1132
Microsoft MSXML 2.6 3.0 4.0 5.0 6.0
Microsoft Internet Explorer 8.0.6001.18702
Microsoft .NET Framework 2.0.50727.3634
Operating System 5.1.2600

Solution : Try any one of the below workaround as your environment permits (as no single one has worked for all)

(Restarting the SSMS is what works as the first solution … but as we may have few scripts already typed in SSMS .. we would prefer a longer fix)

1> Run your SSMS as administrator

2> disable UAC

3> if on SQL2008 .. then install SP3

4> if using SQL 2008 R2 .. then install SP1

refer post :: http://blogs.msdn.com/b/sqlagent/archive/2012/01/20/fix-ssms-can-no-longer-create-or-edit-job-steps-creating-an-instance-of-the-com-component-with-clsid-aa40d1d6-caef-4a56-b9bb-d0d3dc976ba2-from-the-iclassfactory-failed.aspx

related post :: http://support.microsoft.com/kb/2315727/en-us

hope this is helpful to you ๐Ÿ™‚

list of all SQL SERVER MVP till date

July 7, 2013 Leave a comment

Hi There,

check below link about all our SQL SERVER MVP’s ,their blogs links and much more …

MVP_FullColor_ForScreen_thumb

 

http://mvp.microsoft.com/en-us/mvp/search-mvp.aspx?ty=a&ex=SQL+Server&sc=n

http://mvp.microsoft.com/en-us/default.aspx

MVP’s are great asset for the community and great role models for junior’s ..

they share their learning and experiences ย without holding anything back …

A BIG CONGRATULATION to ALL MVP’s for the year 2013 ..

ENJOY ๐Ÿ™‚

 

Design a site like this with WordPress.com
Get started