軟件測試開源工具Rational Robot SQABasic數據庫操作相關命令[1]

發表于:2009-11-18來源:作者:點擊數: 標簽:軟件測試數據庫rationalRATIONALRational
軟件測試 開源 工具 Rational Robot SQA Basic數據庫操作相關命令[1] 軟件測試工具 關鍵字:SQABasic 數據庫 命令 SQLClose 功能函數 斷開由SQLOpen確定的與ODBC數據源連接。 SQLClose ( connection ) 語法: 參數 解釋 connection 由SQLOpen返回的一個長整

        軟件測試開源工具Rational Robot SQABasic數據庫操作相關命令[1]   軟件測試工具

  關鍵字:SQABasic 數據庫 命令

  SQLClose 功能函數

  斷開由SQLOpen確定的與ODBC數據源連接。

  SQLClose ( connection& )

  語法: 參數 解釋

  connection& 由SQLOpen返回的一個長整型的名稱參數。

  注解:

  返回的是一個變量。成功返回0并連接隨后關閉或斷開。如果連接不正常,返回-1。 This example opens the data source named "SblTest," gets the names in the ODBC data sources, and closes the connection.

  Sub main

  '' Declarations

  ''

  Dim outputStr As String

  Dim connection As Long

  Dim prompt As Integer

  Dim datasources(1 To 50) As Variant

  Dim retcode As Variant

  Dim action1 as Integer

  Dim qualifier as String

  prompt = 5

  '' Open the datasource "SblTest"

  connection = SQLOpen("DSN=SblTest", outputStr, prompt:=5)

  action1 = 1 '' Get the names of the ODBC datasources

  retcode = SQLGetSchema(connection:=connection,action:=1, qualifier:=qualifier, ref:=datasources())

  '' Close the datasource connection

  

原文轉自:http://www.anti-gravitydesign.com

国产97人人超碰caoprom_尤物国产在线一区手机播放_精品国产一区二区三_色天使久久综合给合久久97