Condividi tramite


TSqlModel.DeleteObjects(String) Method

Definition

Deletes any objects that were added to the model with the specified sourceName.

public void DeleteObjects (string sourceName);
member this.DeleteObjects : string -> unit
Public Sub DeleteObjects (sourceName As String)

Parameters

sourceName
String

A name to identify the source to be deleted, for example a fileName such as "MyTable.sql" or simply an alias like "dbo.Table". Scripts are cached and TSqlObjects are linked to the source name.

Exceptions

If the supplied sourceName is null or whitespace, or if it ends in ".xsd". Note: source names ending in ".xsd" are currently not supported. These relate to Xml Schema Collections and adding of these is currently not supported in the public API.

If communication with the Microsoft.SqlServer.Dac.Model.TSqlObjectService fails.

Applies to