SugarCommand Constructor(String,SugarConnection)
Initializes a new instance of the
SugarCommand class with the text of the query and a %% object.
The following example creates a
SugarCommand and sets some of its properties.
public void CreateCommand()
{
SugarConnection sugarConnection = new SugarConnection(
"server=https://your_company.sugaropencloud.eu;user id=admin;password=AmFFA4ZryM;");
string mySelectQuery = "SELECT * FROM Campaigns";
SugarCommand sugarCommand = new SugarCommand(mySelectQuery, sugarConnection);
sugarCommand.FetchSize = 100;
}
Public Sub CreateCommand()
Dim sugarConnection As New SugarConnection( _
"server=https://your_company.sugaropencloud.eu;user id=admin;password=AmFFA4ZryM;")
Dim mySelectQuery As String = _
"SELECT * FROM Campaigns"
Dim sugarCommand As New SugarCommand(mySelectQuery, sugarConnection)
sugarCommand.FetchSize = 100
End Sub
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2