Click here to Skip to main content
15,914,221 members
Home / Discussions / Database
   

Database

 
AnswerRe: Correct deleting from MS SQL Pin
kubben14-Mar-07 12:14
kubben14-Mar-07 12:14 
AnswerRe: Correct deleting from MS SQL Pin
N a v a n e e t h15-Mar-07 1:20
N a v a n e e t h15-Mar-07 1:20 
QuestionConnecting SQL Server Express 2005 to remote database file Pin
BRShroyer14-Mar-07 10:18
BRShroyer14-Mar-07 10:18 
AnswerRe: Connecting SQL Server Express 2005 to remote database file Pin
Colin Angus Mackay14-Mar-07 23:31
Colin Angus Mackay14-Mar-07 23:31 
QuestionSynchronizing Sql 2000 database. Need help. Pin
JustmeNick14-Mar-07 6:51
JustmeNick14-Mar-07 6:51 
AnswerRe: Synchronizing Sql 2000 database. Need help. Pin
Hayder Marzouk16-Mar-07 3:42
Hayder Marzouk16-Mar-07 3:42 
QuestionProblem generating a typed dataset with xsd schema [modified] Pin
goldoche14-Mar-07 4:20
goldoche14-Mar-07 4:20 
QuestionRegarding saving and deleting record Pin
roma_sayed14-Mar-07 1:29
roma_sayed14-Mar-07 1:29 
Hi,
I am doing a project that involves Ms Access database connectivity in vb.net.I can do the insertion and updation of record by the code as mentioned below:

Imports System.Data.OleDb
Public Class Form2 Inherits System.Windows.Forms.Form
Dim cn As OleDbConnection
Dim cmd As OleDbCommand
Dim dr As OleDbDataReader
Dim icount As Integer
Dim str As String


Private Sub Add_Click(ByVal sender As System.Object, ByVal e As_
System.EventArgs) Handles Button2.Click
Try
cn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\emp.mdb;")
cn.Open()
str = "insert into table1 values(" & CInt(TextBox1.Text) & ",'" & TextBox2.Text & "','" &_
TextBox3.Text & "')"
'string stores the command and CInt is used to convert number to string
cmd = New OleDbCommand(str, cn)
icount = cmd.ExecuteNonQuery
MessageBox.Show(icount)
'displays number of records inserted
Catch
End Try
cn.Close()
End Sub
End Class


Updation of records

Me.BindingContext(ds, "Employee").EndCurrentEdit()
Me.da.Update(ds)


But I cannot do the saving and deletion of record.I would be very thankful if anybody can help me out in this difficulty.If possible plz provide me the code.
Thanking You.




Romana Sayed
AnswerRe: Regarding saving and deleting record Pin
N a v a n e e t h14-Mar-07 4:07
N a v a n e e t h14-Mar-07 4:07 
GeneralRe: Regarding saving and deleting record Pin
roma_sayed14-Mar-07 20:30
roma_sayed14-Mar-07 20:30 
QuestionSQL Server 2005 Compact Edition (3.1) Pin
Dmitry Ivanov14-Mar-07 0:42
Dmitry Ivanov14-Mar-07 0:42 
QuestionTable Permissions Pin
N a v a n e e t h14-Mar-07 0:32
N a v a n e e t h14-Mar-07 0:32 
AnswerRe: Table Permissions Pin
Colin Angus Mackay14-Mar-07 1:28
Colin Angus Mackay14-Mar-07 1:28 
GeneralRe: Table Permissions Pin
N a v a n e e t h14-Mar-07 3:06
N a v a n e e t h14-Mar-07 3:06 
GeneralRe: Table Permissions Pin
PlayByTheRules14-Mar-07 3:31
PlayByTheRules14-Mar-07 3:31 
GeneralRe: Table Permissions Pin
N a v a n e e t h14-Mar-07 4:04
N a v a n e e t h14-Mar-07 4:04 
Questiondeleting an sql database Pin
Keshav V. Kamat13-Mar-07 23:16
Keshav V. Kamat13-Mar-07 23:16 
AnswerRe: deleting an sql database Pin
Krish - KP13-Mar-07 23:47
Krish - KP13-Mar-07 23:47 
AnswerRe: deleting an sql database Pin
Hayder Marzouk16-Mar-07 3:53
Hayder Marzouk16-Mar-07 3:53 
QuestionDatabase Roadmap Pin
Brendan Vogt13-Mar-07 22:33
Brendan Vogt13-Mar-07 22:33 
AnswerRe: Database Roadmap Pin
N a v a n e e t h14-Mar-07 4:22
N a v a n e e t h14-Mar-07 4:22 
GeneralRe: Database Roadmap Pin
Brendan Vogt14-Mar-07 20:19
Brendan Vogt14-Mar-07 20:19 
QuestionWhich is the Best method to implement search Pin
N a v a n e e t h13-Mar-07 22:31
N a v a n e e t h13-Mar-07 22:31 
QuestionSave changes from the dataset to the database Pin
JacquesDP13-Mar-07 22:04
JacquesDP13-Mar-07 22:04 
AnswerRe: Save changes from the dataset to the database Pin
N a v a n e e t h13-Mar-07 22:27
N a v a n e e t h13-Mar-07 22:27 

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.