Advertisement
Advertisement
| 04.26.2008 at 10:26AM PDT, ID: 23356022 |
|
[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! |
||
| Microsoft |
| Apple |
| Internet |
| Gamers |
| Digital Living |
| Virus & Spyware |
| Hardware |
| Software |
| ITPro |
| Developer |
| Storage |
| OS |
| Database |
| Security |
| Programming |
| Web Development |
| Networking |
| Other |
| Community Support |
| 04.26.2008 at 11:01AM PDT, ID: 21446314 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: |
Dim con As New SqlClient.SqlConnection(Connection)
Dim cmdstr As String = "INSERT INTO testTBL(name, age, address) VALUES (@name, @age, @address)"
Dim cmd As New SqlClient.SqlCommand(cmdstr, con)
With cmd.Parameters
.Add(New SqlClient.SqlParameter("@Name", name.Text))
.Add(New SqlClient.SqlParameter("@age", age.Text))
.Add(New SqlClient.SqlParameter("@address", address.Text))
End With
con.Open()
cmd.ExecuteNonQuery()
cmdstr = "Select @@IDNumber from tstTBL"
cmd.CommandText = cmdstr
Dim value As Integer = CType(cmd.ExecuteScalar(), Integer)
con.Close()
|
| 04.26.2008 at 11:39AM PDT, ID: 21446457 |
| 04.29.2008 at 07:09AM PDT, ID: 21462398 |
| 04.29.2008 at 02:02PM PDT, ID: 21466171 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: |
Dim con As New SqlClient.SqlConnection(Connection)
Dim cmdstr As String = "INSERT INTO testTBL(name, age, address) VALUES (@name, @age, @address)"
Dim cmd As New SqlClient.SqlCommand(cmdstr, con)
With cmd.Parameters
.Add(New SqlClient.SqlParameter("@Name", name.Text))
.Add(New SqlClient.SqlParameter("@age", age.Text))
.Add(New SqlClient.SqlParameter("@address", address.Text))
End With
con.Open()
cmd.ExecuteNonQuery()
cmdstr = "Select @@Identity from tstTBL"
cmd.CommandText = cmdstr
Dim value As Integer = CType(cmd.ExecuteScalar(), Integer)
con.Close()
|