Refresh 메서드
Updates the Database object.
네임스페이스: Microsoft.SqlServer.Management.Smo
어셈블리: Microsoft.SqlServer.Smo.dll의 Microsoft.SqlServer.Smo
구문
‘선언
Public Overrides Sub Refresh
‘사용 방법
Dim instance As Database
instance.Refresh()
public override void Refresh()
public:
virtual void Refresh() override
abstract Refresh : unit -> unit
override Refresh : unit -> unit
public override function Refresh()
구현
주의
The Refresh method updates the Database object properties from the instance of SQL Server. For information about refreshing data programmatically, see SQL Server 2008 Native Client 프로그래밍.
예제
'Connect to the local, default instance of SQL Server.
Dim srv As Server
srv = New Server
'Reference the AdventureWorks database.
Dim db As Database
db = srv.Databases("AdventureWorks")
'Rename the database
db.Rename("AdventureWorks2")
'Refresh the properties on the database.
db.Refresh()
db.Rename("AdventureWorks")