Click here to Skip to main content
15,929,811 members
Home / Discussions / Database
   

Database

 
QuestionADO .net problem? Pin
Smear122-Jul-05 0:34
sussSmear122-Jul-05 0:34 
GeneralReporting Service / URL Access - login credentials Pin
devvvy21-Jul-05 20:36
devvvy21-Jul-05 20:36 
QuestionHow can i find the Row number in DataRowCollection Pin
m.rastgar21-Jul-05 12:08
m.rastgar21-Jul-05 12:08 
AnswerRe: How can i find the Row number in DataRowCollection Pin
Alomgir Miah22-Jul-05 5:13
Alomgir Miah22-Jul-05 5:13 
GeneralRe: How can i find the Row number in DataRowCollection Pin
Alomgir Miah22-Jul-05 5:18
Alomgir Miah22-Jul-05 5:18 
QuestionHow to perform Database Update with out using controls or SQL commnads using ADO.NET Pin
S.Lalitha21-Jul-05 6:51
S.Lalitha21-Jul-05 6:51 
AnswerRe: How to perform Database Update with out using controls or SQL commnads using ADO.NET Pin
Rob Graham21-Jul-05 8:06
Rob Graham21-Jul-05 8:06 
GeneralRe: How to perform Database Update with out using controls or SQL commnads using ADO.NET Pin
ToddHileHoffer21-Jul-05 9:57
ToddHileHoffer21-Jul-05 9:57 
IMO you should update / insert only with stored procedures.

Here is an example of how I would code an insert statement.

Dim conn As New SqlConnection
conn.ConnectionString = Session("ConnectionString")
Dim cmd As New SqlCommand
cmd.Connection = conn
cmd.CommandType = CommandType.StoredProcedure
cmd.CommandText = "prc_Update_Notation_Types"

Dim Prm1 As New SqlParameter("@Original_Type", SqlDbType.VarChar, 50)
Prm1.Direction = ParameterDirection.Input
cmd.Parameters.Add(Prm1)
Prm1.Value = DBNull.Value

Dim Prm2 As New SqlParameter("@New_Type", SqlDbType.VarChar, 50)
Prm2.Direction = ParameterDirection.Input
cmd.Parameters.Add(Prm2)
Prm2.Value = Me.txtNotationType.Text

Dim Prm3 As New SqlParameter("@Type_Description", SqlDbType.VarChar, 50)
Prm3.Direction = ParameterDirection.Input
cmd.Parameters.Add(Prm3)
Prm3.Value = Me.txtNotationDescription.Text

conn.Open()
cmd.ExecuteNonQuery()
conn.Close()


"People who never make mistakes, never do anything."

My blog
http://toddsnotsoamazinglife.blogspot.com/
GeneralRe: How to perform Database Update with out using controls or SQL commnads using ADO.NET Pin
Rob Graham21-Jul-05 10:11
Rob Graham21-Jul-05 10:11 
AnswerRe: How to perform Database Update with out using controls or SQL commnads using ADO.NET Pin
Anonymous21-Jul-05 22:14
Anonymous21-Jul-05 22:14 
GeneralRe: How to perform Database Update with out using controls or SQL commnads using ADO.NET Pin
AmmuRaj21-Jul-05 22:55
AmmuRaj21-Jul-05 22:55 
GeneralRe: How to perform Database Update with out using controls or SQL commnads using ADO.NET Pin
Rob Graham22-Jul-05 5:10
Rob Graham22-Jul-05 5:10 
GeneralADO 2.8 Connection Object Closing SQL Server Connection Pin
QuintesV21-Jul-05 5:12
QuintesV21-Jul-05 5:12 
GeneralRe: ADO 2.8 Connection Object Closing SQL Server Connection Pin
Rob Graham21-Jul-05 5:46
Rob Graham21-Jul-05 5:46 
GeneralRe: ADO 2.8 Connection Object Closing SQL Server Connection Pin
QuintesV21-Jul-05 21:10
QuintesV21-Jul-05 21:10 
GeneralRe: ADO 2.8 Connection Object Closing SQL Server Connection Pin
Rob Graham22-Jul-05 10:54
Rob Graham22-Jul-05 10:54 
GeneraldataReader not executing properly Pin
WetRivrRat21-Jul-05 3:54
WetRivrRat21-Jul-05 3:54 
GeneralRe: dataReader not executing properly Pin
Rob Graham21-Jul-05 6:22
Rob Graham21-Jul-05 6:22 
GeneralRe: dataReader not executing properly Pin
WetRivrRat22-Jul-05 9:49
WetRivrRat22-Jul-05 9:49 
GeneralRe: dataReader not executing properly Pin
Rob Graham22-Jul-05 10:42
Rob Graham22-Jul-05 10:42 
GeneralRe: dataReader not executing properly Pin
WetRivrRat22-Jul-05 10:48
WetRivrRat22-Jul-05 10:48 
GeneralRe: dataReader not executing properly Pin
Rob Graham22-Jul-05 11:13
Rob Graham22-Jul-05 11:13 
GeneralHelp About Working with DataBases Pin
korso_rogan20-Jul-05 23:21
korso_rogan20-Jul-05 23:21 
QuestionHow can i clear all database connection via t-sql script Pin
m.rastgar20-Jul-05 20:28
m.rastgar20-Jul-05 20:28 
AnswerRe: How can i clear all database connection via t-sql script Pin
Alomgir Miah21-Jul-05 4:10
Alomgir Miah21-Jul-05 4:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.