Feeds:
Posts
Comments

Archive for the ‘SQL’ Category

Abstract of my Pluralsight Course Building a Successful Blog Module – Writing an Interesting Blog.

Getting Started

Is writing an interesting blog so simple that I can just TELL you how to do it right now?  Almost!  I’m sure you started your blog because you had something you felt you had to write about.  But now you’ve created the site and are staring at a blank page that represents all the millions of different directions you can go with this new idea.  Just remember as you write – if you wanted to write about it, there are certainly a few people who want to read it.  Here are a few ideas to get you started.

Write what you would want to read.  You started this blog because you probably felt that there was something more you could personally add the subject, or that wasn’t being addressed.  There is surely a subject that gets you really hot under the collar (in a good way or a bad way).  This will always make an exciting blog post.  It’s something you wanted to read about and couldn’t find – so write about that!

Create a picture in your mind of who you think is reading your blog – or who you’re like to read your blog.  You can even come up with a cast of characters who you think would be interested.  Each one will be different and have different interests – and then you can write posts to these imaginary readers.  The larger the cast, the more ideas who will be able to generate.

Writing an Interesting Post

Some of the best orators start out with a story, and then link back to the original topic in a unique or interesting way.  This captures the audience’s attention at the very beginning, and then they are along for the whole ride.  Here is how to capture this same magic in your blog posts.

Ask a question at the very beginning.  Here is an example: how can you write the most amazing blog post of all time?  Well, this question certainly is leading the readers to think they are about to find out!  Don’t overuse this technique, it can seem hackneyed and old, but used in the right context it can be very effective.

Here are two tricks of many I discuss in my course.

Start with action – A lone blogger, in front of a flickering computer screen, with an unknown fate – to prevail in the face of writing a blog post, or to crumble under the pressure.  This is obviously a little bit too melodramatic for an average blog post, but you get the idea.

Paint a Picture – I don’t mean literally, of course.  But if you can paint a picture with words: the dark night sky was sprinkled with tiny stars, but I knew I could see dawn on the dusky horizon.  Very soon, my blog post would be due.  Long descriptions may not work for the average technical blog, but there are certainly ways to work them in.

If you are really stuck and are staring at a blank screen because you can’t think of a catchy intro, just start writing and worry about it later.  You can even write your last paragraph, and work backwards from there.  Eventually you will get into the swing of writing and the introduction will come naturally.

Make Your Blog Scannable

A scannable blog is a readable blog.  It does not mean that readers will stop by, scan for 15 seconds and leave – it means that readers will stop by, scan for 15 seconds, easily find a topic of interest, and stay – maybe becoming permanent readers!  You have to remember – people tend to read blogs in-between doing other things.  Blogs have to be quick and easy to read so that they can get back to work, minding their children, or cooking dinner.  Having an easily scannable blog will make your blog more likely to become a popular stopping place for readers.  So what makes a blog scannable? Well, that is the secret I talk about in my course.

In my course on Pluralsight, I also include information about writing a post from beginning to end, and overcoming the biggest of all bloggers fears: blogger’s block.

If you’re still curious about blogs and blogging, check out my course on Pluralsight!

Reference:  Pinal Dave (http://blog.SQLAuthority.com)

About these ads

Read Full Post »

Abstract of my Pluralsight Course Building a Successful Blog Module – Getting Started with Blogging.

Choosing a Blog Host

If you’ve recently decided to start blogging, the very first thing you have to decide on is which hosting service to use.  There are many blog hosts: Blogger, WordPress, Typepad, to name just a few.  With so many options, how can you choose?

There are a few criteria to keep in mind when choosing a blog host. What is the purpose of this blog?  If it a personal website, you don’t need anything too technical or one that is uniquely designed for you.  However, if you are starting a blog for a business, you will want to make your blog look unique and stand out from the crowd – and you don’t want to run into trademark issues later.

Customizability and technical abilities are also something to think about.  If you want your blog to have the perfect shade of blue and a special font, you will want a blog host with those options – but if you don’t feel comfortable coding in HTML, make sure your blog host takes care of those technical details for you!  Your budget will play into these considerations.  Many blog hosts are completely free – but these are often the kind of “cookie cutter” blogs that all look identical.  If you want something tailored to you, you can expect a monthly fee.

Choosing a Domain Name

Choosing a domain name is no easy task.  Some people might say its the hardest part of starting a blog or website (and I do not recommend thinking up a name and then choosing what to blog about).  However, if the millions upon billions of websites already on the internet are any indication, you will be able to think of a domain name.  Here are some general rules to stick with:

Use keywords.  Search engines use keywords to find your site and bring it up during searches.  These keywords are generally found in the content of your site – but these search programs check your domain name, too!  Use a “.com” address at all costs.  If your only option with a certain name is to choose .net or .biz, scrap the name and start over.  These suffixes scream “I don’t know what I’m doing!”

Make it easy for your readers to find you again – make your domain name obvious.  It should be easy to spell, because 90% of individuals are terrible spellers, and avoid unnecessary additions at all costs.  These additions include “z” instead of “s”, hyphens (cool-website-look-here.com is terrible!), numbers instead of letters (especially the letter 0, which is easily confused with “o”), and slang or purposely misspelled words.

Design Elements

Lets talk about the real details of blog design.

As I mentioned, a dark background and light font almost never looks good.  Start off with basic colors at first, and then branch out.  A good rule of thumb is that your blog should have no more than three colors, and they should blend well together.  A white background, black text, and a bright color for headlines, titles, etc will look very nice and can easily be customized down the road.

Be just as careful when choosing a font.  When you’re designing your blog, the thought of using Times New Roman or Arial might seem so boring you just want to scream.  But those fonts are universal for a reason – they are easy to read.  If your font is so unique that it is distracting, your content is not what people will remember.  Unless you are writing a blog about funny fonts, stick with something simple.

Be sure to leave a decent amount of space between posts, or add a divider between posts so that readers won’t get confused.  This kind of ritual will actually make readers feel more comfortable – it is a steady, comforting presence.  Menus and links will help keep your blog organized and navigable.  They can reassure readers that your blog has a strong history of posts, and is not just another newcomer that will be here today but gone tomorrow.

Well, there are few more interesting tips as well, which I have discussed in depth in my Pluralsight Course.

Comments – Yea or Nay?

Most blog hosts allow commenting on individual posts or the blog as a whole.  Some will also provide the option to allow comments at all.  If you have ever stumbled into a nasty blog fight, it might give you pause to allow this kind of risk on your own blog, but there are so many benefits to allowing comments.  First of all, it allows you to build a community of like-minded individuals.  Commenters will interact with your material as well as each other.

Of course, the downside of comments is the spam.  It can be mean commenters, people trying to stir up trouble, or just your average spammer trying to get their links clicked.  Because spam is such a widespread problem, any blog host that allows comments will also have a way to deal with the spam.  It can mean screening all comments, or simply keeping on top of comments and deleting the spam.

If you’re still curious about blogs and blogging, check out my course on Pluralsight!

Reference:  Pinal Dave (http://blog.SQLAuthority.com)

Read Full Post »

Abstract of my Pluralsight Course Building a Successful Blog Module – Getting Started with Blogging.

Thinking about starting a blog? Confused about the entire idea of blogging?  I have created a course on Pluralsight relating to this very issue.  Let’s start with the easy questions: what is the difference between a blog and a website?  Websites are static sites with a single purpose.  A blog is a type of website – one that is dynamic and always changing when you post and update.  Websites and blogs are similar because they are both addresses on the internet, and a way to connect to the public.

Website or Blogs

Websites and blogs have different purposes, uses, and audiences.  Websites are good for businesses or individuals with a product to sell.  They act as a store front – they welcome the public, and stay the same over time so that their products are easy to find.  Blogs are more dynamic.  You can update a blog every day, or multiple times a week, to keep in touch with your audience.  This is like having a conversation with interested parties, and form a network or community of like-minded individuals.

Deciding to blog can be a difficult decision – there are many pros and cons.  Blogs can be a challenge to set-up, and require maintenance.  But for me, the pros far outweigh the cons!  You get to talk about something you love, meet people with similar interests, and be in charge of your own “brand.”

Different Types of Blogs

There are a huge variety of blogs, and many different types of bloggers.  Blogs fall into a few main categories: technology, personal, photography, automobile, and corporate.  I consider technology blogs to be anyone, professional or amateur, who talks about technology – hardware, software, highly specialized, or very general.

Personal blogs are the kind that are about people’s personal interests.  This can be children, religion, crafting, or even just day-to-day updates.  Photography blogs can cover a wide variety (even personal and technology), but tend to be mainly high quality photographs taken by professional who want to share their work, or amateurs who are trying to get better and would like feedback.

Automobile blogs can cover any sort of vehicle or interest.  They are often highly technical about one specific type of car, truck, boat, or sport.  Corporate blogs are professional blogs, run by companies.  They often have multiple authors, and are updated multiple times a day – or at least when breaking news about the company or product becomes available.

As many different types of blogs as there are, there are an equal number of types of bloggers.   I like to divide them into four easy categories (often with a lot of cross-over).

Different Types of Blogger

Professional: these are bloggers who blog for a living.  Maybe they work for a company and run the corporate blog.  Maybe they created their own personal blog that became extremely popular and generates a lot of income.  No matter how they got there, they are extremely successful and have found the magic button for becoming great bloggers.

Amateurs: this obviously covers most blogs.  These people blog for the sake of blogging, because they love a topic or want to share their expertise.  Everybody starts an amateur, and can progress to any of these other types of bloggers.

Artists: these bloggers can be amateurs or professionals.  They might be photographers, or simply good at painting a picture with their words.

Multi-author blogs: any type of blog can be a multi-author blog.  Some blogs start out with more than one author, because they want multiple opinions, an individual can’t keep up with the amount of writing required, or because a group of friends has a similar interest and wants to start a blog.  More commonly, a blog explodes in popularity and needs a team of writers to keep up with the traffic.

If you’re still curious about blogs and blogging, check out my course on Pluralsight!

Reference:  Pinal Dave (http://blog.SQLAuthority.com)

Read Full Post »

I have been blogging for more than 6.5 years and I have so far written over 2500 articles on this blog and every blog has been journey itself. Over six years I have not missed any single blog and no matter what happens I keep on blogging every day, month after month and year after year. This demonstrates how much I love to blog and engage with all of you. I honestly love all of you and respect a lot when you engage with me on this blog.

During this journey, one of the most common suggestion I received was that I should write about how to build a successful blog. I have been delaying to write this subject for a long time, the reason was simple – I still see that I have a long way to go before I call myself successful.

Short Life Span

However, every single day I see new blogs coming up and some of them are so good that I immediately subscribe to them. Today when I go back to the my subscription list, I see out of the big list there are very few blogs are active. Some of the blogs are deserted and some of them are just dead. There are few blogs so good that I really wish the author was still engaged on the blog and writing the interesting content everyday.

Due to any reason I see not all great blog continuing their journey. The most common reason I see is that blog author has lost motivation to write due to lack of interest or getting busy in their other daily activities. Here is my question to you – if we can clean our teeth everyday, why can’t we blog everyday?

Recent Motivation

In the month of February I attended Pluralsight Author Summit. On the very last day at the event, I went to Snow Basin for skiing. Well, I do not know skiing but it is indeed fun to hang around with friends. During the  event, Pluralsight CEO Aaron Skonnard suggested that I should write a blog about how to build a successful blog as it many would be interested in reading about the secret behind building such a large audience and interesting stories. I absolutely see reason and logic behind what Aaron suggested and I decided to build a video course over this subject.

Building a Successful Blog

Here is the link to Pluralsight Course Building a Successful Blog. There are a total of six modules in this course. I have carefully build each module keeping beginners and experts both in mind. Each module attempts to answers questions for beginners as well as expert in this field. Blogging is such a wide area that it is hard to know everything for everybody. During my journey of over six years I believe there are so many lessons that I have just learned in my recent years. My goal is that I give everything I know to the community and later community can build their own successful blog on the lessons and learning I have shared to them.

Here are modules of the Pluralsight Course Building a Successful Blog

  • Introduction
  • Blogging Concepts, Ideas and Motives
  • Getting Started with Blogging
  • Writing an Interesting Blog
  • Blogging Rules, Ethics and Etiquette
  • Frequently Asked Questions
  • Checklist for Building successful Blog

In the next week, I will be discussing writing one blog post for each of the subject to touch base about them. I will give a quick insight about the content which I have covered in the course. I will be linking each of the above topics as blog posts are published on the blog.

If you’re still curious about blogs and blogging, check out my course on Pluralsight!

Reference:  Pinal Dave (http://blog.SQLAuthority.com)

Read Full Post »

Here is the list of selected articles of SQLAuthority.com across all these years. Instead of just listing all the articles I have selected a few of my most favorite articles and have listed them here with additional notes below it. Let me know which one of the following is your favorite article from memory lane.

2007

List all the database
A Simple script which list all the database from the server.

Function to Parse AlphaNumeric Characters from String
Following function keeps only Alphanumeric characters in string and removes all the other character from the string. This is a very handy function when working with Alphanumeric String only. I have used this many times.

Query to Find First and Last Day of Current Month
The blog contains the query, which will run respective on today’s date. It will return Last Day of Previous Month, First Day of Current Month, Today, Last Day of Previous Month and First Day of Next Month respective to current month.

Binary Sequence Generator – Truth Table Generator
Run script from the blog in the query editor to generate truth table with its decimal value and binary sequence. The truth table is 512 rows long. This can be extended or reduced by adding or removing cross joins respectively.

Disable Index – Enable Index – ALTER Index
A straight to script blog where I demonstrate how to enable and disable index.

2008

SQL SERVER – Comparison : Similarity and Difference #TempTable vs @TempVariable – Part 2
There is lots of confusing going on about difference between TempTable and TempVariable. In this blog I take another attempt about how to find difference between TempTable and TempVariable.

SQL SERVER Database Administrator Job Description
I have received quite a lot of requests to update it or post something similar. Writing SQL Articles are easier than writing Job description for DBA. I have read many job description and job posting at Best SQL Jobs and found the following job description.

2009

This year, I have attended my very first TechEd and presented very first session ever. Here is a photo with my wife Nupur at this event.

How to Drop Temp Table – Check Existence of Temp Table
A quick direct to script blog post.

2010

Understanding ALTER INDEX ALL REBUILD with Disabled Clustered Index
The difference between ALTER INDEX ALL REBUILD and ALTER INDEX REBUILD along with the disabled clustered index. Instead of writing a big theory, we will go over the demo right away. Here are the steps that we intend to follow.

1) Create Clustered and Non-clustered Index
2) Disable Clustered and Non-clustered Index
3) Enable – a) All Indexes, b) Clustered Index

Find Most Expensive Queries Using DMV
I was asked in recent query tuning consultation project, if I can share my script which I use to figure out which is the most expensive queries are running on SQL Server. This script is very basic and very simple, there are many different versions are available online.

List All the DMV and DMF on Server
“How many DMVs and DVFs are there in SQL Server 2008?” – this question was asked to me in one of the recent SQL Server Trainings. The answer is very simple in this blog post.

2011

Import CSV File into Database Table Using SSIS
It is a very frequent request to upload CSV file to database or Import CSV file into a database. I have previously written an article how one can do this using T-SQL over here  Import CSV File Into SQL Server Using Bulk Insert. One of the request which I quite often encounter is how I can do the same using SSIS package and automate it. Today we will understand the same using images.

Restart Remote Computer – Shutdown Remote Computer
Here is a quick trick which I use almost everyday. I have more than one computer at my desk and I manage multiple instances from a single monitor. Some of my computers are in a different location and I have to physically walk there. In this blog post, I demonstrated a quick method where I can use CMD prompt to restart and shutdown remote computer.

2012

Columnstore Index and sys.dm_db_index_usage_stats
Regular SQL Server DMV does not give information for usage stats for columnstore indexes and for that one has to use different DMV. In this blog post I explain the same in detail with DMV script. I also describe my journey how I come across this DMV.

Get Schema Name from Object ID using OBJECT_SCHEMA_NAME
Sometime a simple solution have even simpler solutions but we often do not practice it as we do not see the value in it or find it useful. Well, today’s blog post is also about something which I have seen not practiced much in codes. We are so much comfortable with an alternative usage that we do not feel like switching how we query the data.

SQL in Sixty Seconds – 5 Videos from Joes 2 Pros Series
Here are the five videos which Rick and I have built for Joes 2 Pros series.

Reference: Pinal Dave (http://blog.sqlauthority.com)

Read Full Post »

Older Posts »