Venkatesan Prabu MCITP,MCAD,MCTS,CCNA. Worked as a ProjectLead(Senior .Net developer,SQL DBA). Now, Managing Director of KAASHIV INFO TECH, Chennai This Blog aims in serving the community in a better way. This blog is read by developers in 159 countries with average of 400 hits per day. Please post your valuable suggestions and hold my hand to serve the community. Lets make a new world with good thoughts and good minds....... This blog serves the SQL server community all over the world.
12.2.16
English and Tamil - Software Engineering Technical Videos
31.1.16
Setting Default App in Windows 10
Steps to set the Default Apps in Windows 10 :
Step 1 :Go to "Settings" tab in Windows 10
Step 2: Under "Settings" Tab, you got the System Icon option. Click it.
Step 3: Under Settings -> System -> Default Apps. You can see the option of setting the Default apps for your Windows 10.
Step 4: Clicking the "Choose a default" option for your apps. "Windows store" will be redirected. From there, you are able to access the apps needed for your Windows 10.
Step 5: Click it and get the app from the store.
Cheers,
Venkatesan Prabu .J
Microsoft MVP - Data Platform.
Setting Background Picture in Windows 10
Let;s move on to the steps of setting the background picture in Windows 10.
Step 1: Goto Settings tab in Windows Startup.
Step 2: Go to "Personalization" under "Settings" tab.
Step 3: Under Personalization -> Goto Background -> You are able see the "Picture" option in Background.
Step 4: Three option you can see, you are able to
1. Picture
2. Solid Color
3. Slideshow.
Step 6: "Choose a fit" The options available are
1. Fill
2. Fit
3. Stretch
4. Tile
5. Center
6. Span
Cheers,
Venkatesan Prabu .J
Setting Background Color in Wndows 10
Let me go through the steps of setting the Background Color for the desktop in Windows 10 Operating system.
Step 1: Goto Setting Tab under Windows Startup.
Step 2: Under settings tab goto "Personalization" tab.
Step 3: Under settings -> Personalization -> you are able see the drop down for Background.
Step 4: Change the option to Solid Color and you are able to choose the Color for your background
Step 5:Selecting the option of your preferred color, you are able to see the color in the preview window. Clicking apply "Button" in the bottom.
Step 6: You are able to see the background color setup for your windows 10.
Cheers,
Venkatesan Prabu .J
Microsoft MVP - Data Platform.
Get System Information in Windows 10
Let me show you the steps to fetch the System information in Windows 10.
Step 1: Got Settings tab in Windows Startup.
Step 2: Got "System" icon under settings tab.
Step 3: Got "About" option under settings and you are able to see the option of"System Info" Now click it.
Step 4: Clicking "System Info" you are able to see the properties of your "My Computer".
Cheers,
Venkatesan Prabu .J
Microsoft MVP - Data Platform
Apps and Features options in Windows 10
Most interesting features in Windows 10 is "Apps & Features"
Windows 10 provides me an option of searching installed app in the machine and also uninstall or manage the apps in a user friendly manner.
Step 1: Got Settings option in Windows 10
Step 2: Goto "System" tab under settings in Windows 10.
Step 3: Under Settings, Let me go to the option of "Apps & Features" option below is the screen you are able to see.
Step 4: Windows 10 provides an option of searching the application installed. Am searching with the keyword "Silver"
Step 5: We are able to search the apps installed in specific drive too.
Step 6: Sorting option provides me an option of
1. Sort by Size
2. Sort by Name
3. Sort by install date
Step 7: Once the apps were searched. Option to provide uninstallation is provided.
Cheers,
Venkatesan Prabu .J
Microsoft MVP - SQL Server
Rename PC name in Windows 10
Step 1: Goto "Settings" option in Windows 10.
Step 2: Under "Settings" Option, goto System Icon.
Step 3: Under Settings -> System-> Goto About option. -> In the right side, under PC Name -> Rename PC
Step 4: Click "Rename PC" to change the name of the PC.
Step 5: You will given an option of "Showing the existing PC name" and the new PC name to be updated.
Step 6: Once the PC is renamed. You will get an option of "Restart now" or "Restart Later"
Cheers,
Venkatesan Prabu .J
Microsoft MVP - Data Platform.
Setting Default option of storing files in Windows 10
Step 2: Under "System" tray icon.
Step 3: Under settings, we are able to see the option of "Storage"
Step 4: You can specify the default drive to store the documents, images, videos and other types of files.
Cheers,
Venkatesan Pabu .J
Microsoft MVP - Data Platform
Power and Sleep options in Windows 10
Step 2: Goto System Icon in the Setting Tab
Step 3: Under System -> Goto Power & Sleep you are able to see the option of Screen off timing and sleep timing to be setup
Step 4: Under monitor switch off, you are able to see the setup timing options.
Step 5: Under Computer sleep timing can be setup.
Step 6: Am bit eager to know the option of clicking "Additional Power settings" hyperlink.
Step 7: This is most familiar option for the windows users. Hope you know it.
1. Balanced option is the recommended windows power option setting. You will be provide option to the change the plan setting.
2. In case, if the windows user prefers the option of saving more power in the battery for their laptop. You can go for Power Saver option. In which, you will be provided with an option of the changing the plan settings.
Adding Hibernate to Power Button:
1. Click the Option "Choose what the power buttons do".
Cheers,
Venkatesan Prabu .J
Account Settings - Image Password in Windows 10
Provide your windows login password.
Choose a picture for creating password.
Select the desired picture.
Click Use This Picture button to confirm selected picture.
Provide 3 gestures for your picture by choosing desired place in the picture.
Now after providing confirmation, finish the wizard.
Now as you can see below picture password is added and Add button is replaced with Change and Remove buttons.
My T-SQL Gallery @code.msdn.microsoft
Created my own T-SQL Gallery in Microsoft site. Do visit the same and share your feedback,
http://code.msdn.microsoft.com/VenkatSQLSample/Thread/List.aspx
Thanks and Regards,
Venkatesan Prabu .J
SQL Server Interview questions - Part 1
Null means no entry has been made. It implies that the value is either unknown or undefined.We should avoid permitting null values because Column with NULL values can't have PRIMARY KEY constraints. Certain calculations can be inaccurate if NULL columns are involved.
What is SQL whats its uses and its component ?
The Structured Query Language (SQL) is foundation for all relational database systems. Most of the large-scale databases use the SQL to define all user and administrator interactions. It enable us to retrieve the data from based on our exact requirement. We will be given a flexibility to store the data in our own format.
The DML component of SQL comprises four basic statements:
* SELECT to get rows from tables
* UPDATE to update the rows of tables
* DELETE to remove rows from tables
* INSERT to add new rows to tables
What is DTS in SQL Server ?
Data Transformation Services is used to transfer the data from one source to our required destination. Considering am having some data in sql server and I need to transfer the data to Excel destination. Its highly possible with dialogue based tool called Data Transformation services. More customization can be achieved using SSIS. A specialized tool used to do such migration works.
What is the difference between SQL and Pl/Sql ?
Straight forward. SQL is a single statement to finish up our work.Considering, I need some data from a particular table. “Select * from table” will fetch the necessary information. Where as I need to do some row by row processing. In that case, we need to go for Procedural Logic / SQL.
What is the significance of NULL value and why should we avoid permitting null values?
Null means no entry has been made. It implies that the value is either unknown or undefined.We should avoid permitting null values because Column with NULL values can't have PRIMARY KEY constraints. Certain calculations can be inaccurate if NULL columns are involved.
Difference between primary key and Unique key?
Both constraints will share a common property called uniqueness. The data in the column should be unique. The basic difference is,
· Primary key won’t allow null value. Whereas, unique key will accept null value but only one null value.
· On creating primary key, it will automatically format the data inturn creates clustered index on the table. Whereas, this characteristics is not associated with unique key.
· Only one primary key can be created for the table. Any number of Unique key can be created for the table.
Select Statement in SQL Server
![Select Statement in SQL Server](http://3.bp.blogspot.com/_uFLzmYkXKOI/SNc8nNUNZQI/AAAAAAAAB5Q/0VPakhGonUA/S1600-R/1.bmp)
String Functions in sql server
![String Functions in sql server](http://4.bp.blogspot.com/_uFLzmYkXKOI/SNc95lWwrTI/AAAAAAAAB5o/r9uQPAWCjz8/S1600-R/1.bmp)
Substring/Len/replace/Ltrim/Rtrim
SQL Server Interview Question - Part 2
What is normalization?
Normalization is the basic concept used in designing a database. Its nothing but, an advise given to the database to have minimal repetition of data, highly structured, highly secured, easy to retrieve. In high level definition, the Process of organizing data into tables is referred to as normalization.
What is a stored procedure:
Stored procedures are precompiled T-SQL statements combined to perform a single task of several tasks. Its basically like a Macro so when you invoke the Stored procedure, you actually run a set of statements. As, its precompiled statement, execution of Stored procedure is compatatively high when compared to an ordinary T-SQL statement.
What is the difference between UNION ALL Statement and UNION ?
The main difference between UNION ALL statement and UNION is UNION All statement is much faster than UNION,the reason behind this is that because UNION ALL statement does not look for duplicate rows, but on the other hand UNION statement does look for duplicate rows, whether or not they exist.
Example for Stored Procedure?
They are three kinds of stored procedures,1.System stored procedure – Start with sp_2. User defined stored procedure – SP created by the user.3. Extended stored procedure – SP used to invoke a process in the external systems.Example for system stored proceduresp_helpdb - Database and its propertiessp_who2 – Gives details about the current user connected to your system. sp_renamedb – Enable you to rename your database
What is a trigger?
Triggers are precompiled statements similar to Stored Procedure. It will automatically invoke for a particular operation. Triggers are basically used to implement business rules.
What is a view?
If we have several tables in a db and we want to view only specific columns from specific tables we can go for views. It would also suffice the needs of security some times allowing specfic users to see only specific columns based on the permission that we can configure on the view. Views also reduce the effort that is required for writing queries to access specific columns every time.
What is an Index?
When queries are run against a db, an index on that db basically helps in the way the data is sorted to process the query for faster and data retrievals are much faster when we have an index.
What are the types of indexes available with SQL Server?
There are basically two types of indexes that we use with the SQL ServerClustered -
1. It will format the entire table, inturn physically sort the table.
2. Only one clustered index can be created for a table.
3. Data will be located in the leaf level.
4. By default, primary key will create clustered index on the table.
Non-Clustered Index
1. It wont touch the structure of the table.
2. It forms an index table as reference to the exact data.
3. A reference to the data will be located in the leaf level.
4. For a table, we can create 249 non clustered index.
Happy Learning!!!
Regards,
Venkatesan Prabu .J
SQL Interview question
Extent Vs Page?
Pages are low level unit to store the exact data in sql server. Basically, the data will be stored in the mdf, ldf, ndf files. Inturn, pages are logical units available in sql server.The size of the page is 8KB.
Eight consecutive pages will form an extent 8 * 8KB = 64KB.
Thus I/O level operation will be happening at pages level.The pages will hold a template information at the start of each page (header of the page).
They are,
1. page number,
2. page type,
3. the amount of free space on the page,
4. the allocation unit ID of the object that owns the page.
Extents will be classifed into two types,
1. Uniform extents
2. Mixed extents
Uniform Extents:It occupied or used by a single object. Inturn, a single object will hold the entire 8 pages.Mixed
Extents:Mulitple objects will use the same extent. SQL Server will allow a max of eight objects to use a shared extent.
Property of SQL Server :Initally if an object is created, sql server will allocate the object to the mixed extent and once if the size reaches 8 pages and more... immediately, a new uniform extent will be provided for that particular object.
Herecomes, our fragmentation and reindexing concepts.
![](http://1.bp.blogspot.com/_uFLzmYkXKOI/ScBUeWhFznI/AAAAAAAADec/SAmglDw_ap8/S1600-R/venkat.jpg)
![](http://2.bp.blogspot.com/_uFLzmYkXKOI/TCSYMyYM1KI/AAAAAAAAEvs/3roCpF-MTTk/S1600-R/1.png)
Best Joke - Enjoy it
![Best Joke - Enjoy it](http://3.bp.blogspot.com/_uFLzmYkXKOI/SkgQ7-z1S7I/AAAAAAAAD20/Z5GdJJOWegA/S1600-R/image1.bmp)