Search the Blog
Showing posts with label INFORMATION QUERY. Show all posts
Showing posts with label INFORMATION QUERY. Show all posts
Friday, June 12, 2020
Monday, October 14, 2019
Sql Server DBA Interview Question more than 1000
Question 1. What Is The Difference Between Lock, Block And Deadlock?
Solution -
Lock: DB engine locks the rows / page / table to access
the data which is worked upon according to the query.
Block: When one process blocks the resources of another
process then the situation occured is called blocking. Blocking can be identified by using the following query
SELECT * FROM sys.dm_exec_requests
where blocked <> 0
SELECT * FROM master..sysprocesses
SELECT * FROM master..sysprocesses
where blocked <> 0
Deadlock: When something happens as follows:
Error 1205 is reported by SQL Server for deadlock.
Question 2. what is the sequence of SQL statement are processed in SQL Server?
Solution - The clauses of the select are processed in
the following sequence
- FROM clause
- WHERE clause
- GROUP BY clause
- HAVING clause
- SELECT clause
- ORDER BY clause
- TOP clause
Question 3. on which TCP/IP port does SQL Server run?
Solution - By default SQL Server runs on port 1433.
But according to requirement is can be changed such as we have more than one instance of SQL Server,
Then differenet port can be assigned to different Instances
Wednesday, September 4, 2019
Python pattern from from incresing and descresing sequnce of numbers
This post will explain the logic, code and Syntax for pattern program in Python Programming. In this post you will understand how to right the code of a pattern which have the sequence in descreasing and incresinng sequence.
Pattern Code-
def python_pattern(n):
for i in range(0, n):
if n/2 >= i:
for j in range(1, i+1):
print(j, end=" ")
print("\r")
else:
for j in range(1, n - i + 1):
print(j, end=" ")
print("\r")
n=10python_pattern(n)
Output:
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
1 2 3 4
1 2 3
1 2
1
Youtube Video of Complete Program
See Also-Python patthern program of all types
Thursday, August 29, 2019
Palindrome number program in Pythan
In this post i will explain the palindome number program in python and also to expalin the same i also created a youtube video so you can check also complete step by step and also output in IDE.
Palindrome number program in Pythan |
Palindrome No Program in Python-
num = int(input("enter a number: ")) temp = num rev = 0while temp: rev = (rev * 10) + (temp % 10) temp = temp // 10if num == rev: print("No is palindrome") else: print("No is not palindrome")
Output-
When entered Item is- 747
No is Palindrome.
when entered Item is- 67
No is notb Palindrome.
See Also-Pythan All type of program
Labels:
Android,
Code,
CSS,
database,
DIZSWEB,
example,
HTML,
INFORMATION QUERY,
Interview,
JAVA,
JavaScript,
JS,
Online Exam,
Ouery,
pattern,
program,
Python,
Query Optimization,
SERVERS,
SQL
Friday, August 23, 2019
SQL SERVER High Availability (HA)
High Availability (HA) of the server of Database is the solution( process, technology ) to make the application database available 24x7 under either planned or un - planned conditions.
There are five type of options in MS SQL Server to achieve and configure a setup for high availability solution for the databases.
Replication
The source(Main) data will be copied to destination, through replication agents (jobs). Object level technology.
Main terminology
- Publisher is source server.
- Distributor is optional and stores replicated data in a suitble environemt for the subscriber.
- Subscriber is the destination server.
Log Shipping
The source data will be copied to destination through Transaction Log backup jobs. Various Database level technology.
Main terminology
- Primary server is source server.
- Secondary server is destination server.
- Monitor server is optional and will be monitored by log shipping status.
Mirroring
The primary data will be copied to a secondary through a network transaction basis with help of mirroring endpoint and port number. Database level technology.
Main terminology
- Principal server is source server always.
- Mirror server is destination server always.
- Witness server is optional and can be used to make automatic failover.
Clustering
The data will be stored in shared location which is used by both primary and secondary servers based on availability of the server. Instance level technology. Windows Clustering setup is required with shared storage
Main terminology
- Active node is where SQL Services are running.
- Passive node is where SQL Services are not running.
AlwaysON Availability Groups
The primary data will be copied to secondary through network transaction basisand Group of database level technology. Windows Clustering setup is required without shared storage for ALwaysON Availibilty Groups.
Main terminology
- Primary replica is source server.
- Secondary replica is destination server.
Check Java Pattern Program
Labels:
Code,
CSS,
database,
DIZSWEB,
HTML,
INFORMATION QUERY,
Interview,
JAVA,
JavaScript,
Online Exam,
Ouery,
Query Optimization,
SERVERS,
SQL
Subscribe to:
Posts (Atom)