sp_msforeachtable
: Выполняет команду с'?' заменил каждым именем таблицы. например,
exec sp_msforeachtable "dbcc dbreindex('?')"
можно дать до 3 команд для каждой таблицы
exec sp_msforeachtable
@Command1 = 'print ''reindexing table ?''',
@Command2 = 'dbcc dbreindex(''?'')',
@Command3 = 'select count (*) [?] from ?'
кроме того, sp_MSforeachdb
Вам потребуется DrawEllipse , если вы хотите нарисовать круг с помощью GDI +.
Пример здесь: http: // www. websupergoo.com/helpig6net/source/3-examples/9-drawgdi.htm[1252 visible
Вам следует использовать DrawEllipse
:
//
// Summary:
// Draws an ellipse defined by a bounding rectangle specified by coordinates
// for the upper-left corner of the rectangle, a height, and a width.
//
// Parameters:
// pen:
// System.Drawing.Pen that determines the color, width,
// and style of the ellipse.
//
// x:
// The x-coordinate of the upper-left corner of the bounding rectangle that
// defines the ellipse.
//
// y:
// The y-coordinate of the upper-left corner of the bounding rectangle that
// defines the ellipse.
//
// width:
// Width of the bounding rectangle that defines the ellipse.
//
// height:
// Height of the bounding rectangle that defines the ellipse.
//
// Exceptions:
// System.ArgumentNullException:
// pen is null.
public void DrawEllipse(Pen pen, int x, int y, int width, int height);