| ZennoLab.CommandCenter Assembly > ZennoLab.CommandCenter Namespace > ZennoPoster.Db Class > ExecuteQuery Method : ExecuteQuery(String,OrderedDictionary,DbProvider,String,String,String) Method |
Type: System.String
SQL query.
Type: System.Collections.Specialized
Query parameters .
Type: ZennoLab.InterfacesLibrary.Enums.Db.DbProvider
Data provider type.
Type: System.String
Connection string.
Type: System.String
Field separator.
Type: System.String
Row separator. If null - System.Environment.NewLine.
public static string ExecuteQuery( string query, OrderedDictionary param, DbProvider provider, string connectionString, string fieldSeparator, string rowSeparator )
Type: System.String
SQL query.
Type: System.Collections.Specialized
Query parameters .
Type: ZennoLab.InterfacesLibrary.Enums.Db.DbProvider
Data provider type.
Type: System.String
Connection string.
Type: System.String
Field separator.
Type: System.String
Row separator. If null - System.Environment.NewLine.
Type: System.String
Result string.
var result = ZennoPoster.Db.ExecuteQuery("SELECT * FROM User", null, ZennoLab.InterfacesLibrary.Enums.Db.DbProvider.SqlClient, "Data Source=SQLSERVER;Initial Catalog=TestDb;Integrated Security=True;max pool size=500", " | ");
$result = ZennoLab\CommandCenter\ZennoPoster::Db::ExecuteQuery("SELECT * FROM User", null, ZennoLab\InterfacesLibrary\Enums\Db\DbProvider::SqlClient, "Data Source=SQLSERVER;Initial Catalog=TestDb;Integrated Security=True;max pool size=500", " | ");
Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.