Title: Select All Records from SQL Server Database
Shortcut: selallsql
Description: Select All Records from SQL Server Database
Author: C# .Net Fun - http://www.dotnetfun.com - Michael G.
Declarations:
Literal: ID: strConn
Type: System.String
ToolTip: Your SQL connection string.
Default: "Data Source=HOSTNAME; User ID=userid; Password=password; Initial Catalog=Database;"
Literal: ID: strSQL
Type: System.String
ToolTip: Your SQL command string.
Default: "SELECT * FROM MyTable;"
Literal: ID: TableName
Type: System.String
ToolTip: The name of the DataSet/database table.
Default: "MyTable"
Object: ID: DataSet
Type: System.Data.DataSet
ToolTip: The DataSet object that will hold an in-memory representation of your table.
Default: new DataSet()
Code View: