Advertisement
Advertisement
| 01.09.2008 at 10:02PM PST, ID: 23071802 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: |
strCon = Connection String
Dim sqlConn As New Data.SqlClient.SqlConnection(strCon)
Dim Cmd1 As New Data.SqlClient.SqlCommand(Criteria, sqlConn)
Dim DASubset As New Data.SqlClient.SqlDataAdapter(Cmd1)
Dim DSSubset As New Data.DataSet
Dim ScenarioCount As Short
Dim cmd As ADODB.Command
Dim LoanRS As New ADODB.Recordset
Dim ScenarioRS As New ADODB.Recordset
Dim params As ADODB.Parameters
Dim param As ADODB.Parameter
cmd = New ADODB.Command
With cmd
.ActiveConnection = CONN
.CommandText = "StoredProcedure"
.CommandType = ADODB.CommandTypeEnum.adCmdStoredProc
params = .Parameters
End With
params.Append(cmd.CreateParameter("@Parameter1", ADODB.DataTypeEnum.adInteger, ADODB.ParameterDirectionEnum.adParamInput, 0))
params("@sCurrLoanId").Value = xx
LoanRS.Open(cmd, , ADODB.CursorTypeEnum.adOpenForwardOnly, ADODB.LockTypeEnum.adLockReadOnly)
DASubset = New Data.SqlClient.SqlDataAdapter(Cmd1)
DSSubset = New Data.DataSet
DASubset.Fill(LoanRS, "Subset")
|
| Microsoft |
| Apple |
| Internet |
| Gamers |
| Digital Living |
| Virus & Spyware |
| Hardware |
| Software |
| ITPro |
| Developer |
| Storage |
| OS |
| Database |
| Security |
| Programming |
| Web Development |
| Networking |
| Other |
| Community Support |
| 01.09.2008 at 10:13PM PST, ID: 20625312 |
| 01.09.2008 at 10:18PM PST, ID: 20625323 |
| 01.09.2008 at 10:20PM PST, ID: 20625330 |
| 01.09.2008 at 10:28PM PST, ID: 20625350 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: |
Public Sub SelectCustomer()
Dim connection As SqlConnection = _
New SqlConnection(connectionString)
connection.Open()
Try
Dim command As SqlCommand = _
New SqlCommand("StoredProcedure", _ connection)
command.Parameters.Add("@Parameter1", "0")
command.CommandType = CommandType.StoredProcedure
Dim adapter As SqlDataAdapter = New SqlDataAdapter(command)
Dim table As DataTable = New DataTable
adapter.Fill(table)
' Bind the DataGrid control to the Contacts DataTable.
dataGrid1.DataSource = table
Catch ex As Exception
Console.WriteLine(ex.Message)
Throw
Finally
connection.Close()
End Try
End Sub
|