Click here to Skip to main content
15,922,584 members
Home / Discussions / Database
   

Database

 
QuestionWhy is this a syntax error? Pin
MikeMarq27-Apr-08 15:53
MikeMarq27-Apr-08 15:53 
AnswerRe: Why is this a syntax error? Pin
Ashfield27-Apr-08 20:18
Ashfield27-Apr-08 20:18 
AnswerRe: Why is this a syntax error? Pin
Krish - KP27-Apr-08 21:00
Krish - KP27-Apr-08 21:00 
GeneralRe: Why is this a syntax error? Pin
Ashfield27-Apr-08 21:18
Ashfield27-Apr-08 21:18 
Generalbasic question inserting data into a table Pin
MikeMarq27-Apr-08 11:45
MikeMarq27-Apr-08 11:45 
GeneralRe: basic question inserting data into a table Pin
Blue_Boy27-Apr-08 11:53
Blue_Boy27-Apr-08 11:53 
GeneralRe: basic question inserting data into a table Pin
Rob Graham30-Apr-08 3:47
Rob Graham30-Apr-08 3:47 
Questionsql refresh Pin
bapu288927-Apr-08 8:26
bapu288927-Apr-08 8:26 
hello

I am new and i have just started learning sql 2005 and i have create small table student with 3 columns studentID,firstname and lastname it's works fine i can insert,delete without any problem but when i delete any antry it dosent refresh the page i mean it delete record from sql database but it shows deleted entry in text boxes but if i close application and restart it it dosent show deleted entry any help this is the code for delete

Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click<br />
        Dim SQL As String = Nothing<br />
        SQL = "DELETE FROM Student WHERE StudentID = " & TextBox3.Text<br />
        If MessageBox.Show("Are you sure you want to delete", "Delete", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) = MsgBoxResult.Yes Then<br />
            conStudent = New Data.SqlClient.SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Documents and Settings\bablu\My Documents\Visual Studio 2005\Projects\SQL DataApplication\SQL DataApplication\Student.mdf;Integrated Security=True;User Instance=True")<br />
            conStudent.Open()<br />
            Try<br />
                commStudent = New SqlClient.SqlCommand(SQL, conStudent)<br />
                commStudent.ExecuteNonQuery()<br />
              <br />
                MsgBox("Itemdeleted successfully", MsgBoxStyle.Information)<br />
            Catch ex As Exception<br />
                MsgBox(ex.Message)<br />
            End Try<br />
            conStudent.Close()<br />
            conStudent.Dispose()<br />
        Else<br />
            Exit Sub<br />
        End If<br />
    End Sub


any help Confused | :confused:

waiting for your kind rep.
have a nice time

thanks
GeneralRe: sql refresh Pin
Blue_Boy27-Apr-08 10:39
Blue_Boy27-Apr-08 10:39 
QuestionRe: sql refresh Pin
bapu288928-Apr-08 9:45
bapu288928-Apr-08 9:45 
GeneralRe: sql refresh Pin
mrcsn29-Apr-08 1:05
mrcsn29-Apr-08 1:05 
QuestionRe: sql refresh Pin
bapu288929-Apr-08 9:36
bapu288929-Apr-08 9:36 
GeneralQuestion about pivot Pin
Marc Clifton27-Apr-08 8:00
mvaMarc Clifton27-Apr-08 8:00 
AnswerRe: Question about pivot Pin
i.j.russell30-Apr-08 13:17
i.j.russell30-Apr-08 13:17 
GeneralRe: Question about pivot Pin
Marc Clifton30-Apr-08 13:38
mvaMarc Clifton30-Apr-08 13:38 
GeneralLeft Join question Pin
Marc Clifton27-Apr-08 2:32
mvaMarc Clifton27-Apr-08 2:32 
GeneralFigured it out Pin
Marc Clifton27-Apr-08 2:46
mvaMarc Clifton27-Apr-08 2:46 
Questiondata joins Pin
Member 470807726-Apr-08 10:26
Member 470807726-Apr-08 10:26 
GeneralRe: data joins Pin
Blue_Boy26-Apr-08 11:22
Blue_Boy26-Apr-08 11:22 
GeneralRe: data joins Pin
Rami Said Abd Alhalim26-Apr-08 20:17
Rami Said Abd Alhalim26-Apr-08 20:17 
Questionsqlserver Pin
Member 470807726-Apr-08 10:09
Member 470807726-Apr-08 10:09 
GeneralRe: sqlserver Pin
Blue_Boy26-Apr-08 10:18
Blue_Boy26-Apr-08 10:18 
GeneralRe: sqlserver Pin
Krazy Programmer26-Apr-08 19:15
Krazy Programmer26-Apr-08 19:15 
GeneralDatabase is locked when executing insert multi row Pin
lvantin26-Apr-08 6:28
lvantin26-Apr-08 6:28 
GeneralAbout Auto Numbers Pin
savitri26-Apr-08 0:16
savitri26-Apr-08 0:16 

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.