亚洲av色香蕉一区二区三区,十四以下岁毛片带血a级,亚洲 校园 欧美 国产 另类,亚洲av日韩av一区谷露,色欲av无码一区二区三区

  • 相關(guān)軟件
    >對象層次結(jié)構(gòu)語法 創(chuàng)建者:webmaster 更新時間:2006-02-16 15:51

    sp_OAGetPropertysp_OASetPropertypropertyname 參數(shù)以及 sp_OAMethodmethodname 支持對象層次結(jié)構(gòu)語法類似于 Microsoft® Visual Basic®。當(dāng)使用該特殊語法時,這些參數(shù)有下列通用格式:



    語法


    'TraversedObject.PropertyOrMethod'



    參數(shù)


    TraversedObject



    是存儲過程中指定的在層次結(jié)構(gòu)中位于 objecttoken 下的 OLE 對象。使用 Visual Basic 語法指定一系列集合、對象屬性和返回對象的方法。系列中的每個對象指定符必須用句號 (.) 隔開。



    系列中的項目可以是集合名。使用下面的語法指定集合:



    Collection("item")



    必須用雙引號 (") 將 item 括起來。不支持用于集合的 Visual Basic 感嘆號 (!) 語法。



    PropertyOrMethod



    TraversedObject 屬性或方法的名稱。



    若要通過使用 sp_OAGetPropertysp_OASetProperty sp_OAMethod 參數(shù)(包括支持 sp_OAMethod 輸出參數(shù))指定所有索引或方法參數(shù),請使用下面的語法:



    PropertyOrMethod



    若要在圓括號內(nèi)指定所有索引或方法參數(shù)(將導(dǎo)致忽略 sp_OAGetPropertysp_OASetProperty sp_OAMethod 的所有檢索或方法參數(shù)),請使用下面的語法:



    PropertyOrMethod( [ParameterName :=] "parameter" [,...] )



    必須用雙引號 (") 將每個參數(shù)括起來。指定所有位置參數(shù)后才能指定命名參數(shù)。



    注釋


    如果沒有指定 TraversedObject,則必需有 PropertyOrMethod。



    如果沒有指定 PropertyOrMethod,TraversedObject 將作為對象令牌輸出參數(shù)從 OLE 自動化存儲過程返回。如果已指定 PropertyOrMethod,將調(diào)用 TraversedObject 的屬性或方法,且屬性值或方法返回值作為輸出參數(shù)從 OLE 自動化存儲過程返回。



    如果 TraversedObject 列表中的任何項目沒有返回 OLE 對象,則說明發(fā)生了錯誤。



    有關(guān) Visual Basic OLE 對象語法的更多信息,請參見 Visual Basic 文檔。



    有關(guān) HRESULT 返回代碼的更多信息,請參見 sp_OACreate 部分的"HRESULT 返回代碼"。



    示例


    下面是使用 SQL-DMO SQLServer 對象的對象層次結(jié)構(gòu)語法示例。



    -- Call the Connect method of the SQLServer object.
    EXEC @hr = sp_OAMethod @object,
      'Connect("my_server", "my_login", "my_password")'

    -- Get the pubs..authors Table object.
    EXEC @hr = sp_OAGetProperty @object,
      'Databases("pubs").Tables("authors")',
      @table OUT

    -- Get the Rows property of the pubs..authors table.
    EXEC @hr = sp_OAGetProperty @object,
      'Databases("pubs").Tables("authors").Rows',
      @rows OUT

    -- Call the CheckTable method of the pubs..authors table.
    EXEC @hr = sp_OAMethod @object,
      'Databases("pubs").Tables("authors").CheckTable',
      @checkoutput OUT
    相關(guān)文章
    本頁查看次數(shù):