Select All Records from SQL Server DatabaseselallsqlSelect All Records from SQL Server DatabaseC# .Net Fun - http://www.dotnetfun.com - Michael G.strConnSystem.StringYour SQL connection string."Data Source=HOSTNAME; User ID=userid; Password=password; Initial Catalog=Database;"strSQLSystem.StringYour SQL command string."SELECT * FROM MyTable;"TableNameSystem.StringThe name of the DataSet/database table."MyTable"