You could start with reading this article: Beginners guide to accessing SQL Server through C#