%@ Language=VBScript %> <% Option Explicit Response.Expires = 0 Dim m_strProcName Dim m_strConnectionString Dim m_blnRecordset m_strConnectionString = "Provider=SQLOLEDB; Data Source=phpor-beav09-sr; Initial Catalog=PHPWorldDev; User ID=sa; Password=" m_strProcName = "pr_webcfg_mid_get_DBConnStr" %>
<% If Request.Form.Count > 0 Then m_strProcName = Trim(Request.Form("ProcName")) m_strConnectionString = Trim(Request.Form("ConnectionString")) If Not Trim(Request.Form("ReturnRecordset")) = "" Then m_blnRecordset = True Else m_blnRecordset = False End If Call ShowCriteriaForm Call ShowProcInfo Else Call ShowCriteriaForm End If Sub ShowCriteriaForm() %> <% End Sub Sub ShowProcInfo() 'Declare and create the command object Dim cmd Set cmd = Server.CreateObject("ADODB.Command") 'Open the connection on the command by a ' ssigning the 'connection string to the ActiveConnecti ' on property cmd.ActiveConnection = m_strConnectionString cmd.CommandType = 4 'Stored Procedure Command Type 'Set the CommandText to the proc name cmd.CommandText = m_strProcName 'Call refresh to retrieve the values cmd.Parameters.Refresh %>Proc Name = <%=m_strProcName%> | |||||
---|---|---|---|---|---|
Parameter Name | Direction | Type | Precision | Size | Value |
" & param.Name & " | " & _ "" & GetParameterDirectionEnum(param.Direction) & _ " (" & param.Direction & ") | " & _ "" & GetDataTypeEnum(param.Type) & _ " (" & param.Type & ") | " & _ "" & param.Precision & " | " & _ "" & param.Size & " | " & _ "" & param.Value & " | " & _ "