Click here to Skip to main content
15,920,836 members
Home / Discussions / Database
   

Database

 
AnswerRe: query + ms sql 2005 Pin
Pete O'Hanlon20-Jul-07 1:08
mvePete O'Hanlon20-Jul-07 1:08 
GeneralRe: query + ms sql 2005 Pin
ritu432120-Jul-07 1:28
ritu432120-Jul-07 1:28 
Questionhai insert query problem Pin
srinivassam19-Jul-07 22:27
srinivassam19-Jul-07 22:27 
AnswerRe: hai insert query problem Pin
Colin Angus Mackay19-Jul-07 22:48
Colin Angus Mackay19-Jul-07 22:48 
AnswerRe: hai insert query problem Pin
Paddy Boyd20-Jul-07 0:50
Paddy Boyd20-Jul-07 0:50 
QuestionFine-tune SP Pin
Joe19-Jul-07 21:56
Joe19-Jul-07 21:56 
AnswerRe: Fine-tune SP Pin
Colin Angus Mackay19-Jul-07 22:52
Colin Angus Mackay19-Jul-07 22:52 
Questionselect alst record was added Every minute Pin
Dr.PHP19-Jul-07 21:03
Dr.PHP19-Jul-07 21:03 
hi brothers

iam working with Mysql DB on the web .. and i make timer to connection every minute to DB and check the table for last record has been added and show it in msgbox.

after one minute When it reconnection again .. i want it make sure the current result is not Unequalized previous result


iam tried but icant do it .. any one can help me plz ... thanx




---------------------------------------------------------------------------
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim mysqlstr As String
Dim mycomstr As String
Dim numm As Integer

mysqlstr = String.Format("server=localhost;user id=root;password=pass; database=mostashark; pooling=false;charset=utf8")
myconn = New MySqlConnection(mysqlstr)

mycomstr = "select T_Id,T_Exp_id,T_Text from twsyat order by T_Id DESC limit 1"
mycom = New MySqlCommand(mycomstr, myconn)
myconn.Open()

myreader = mycom.ExecuteReader()

Dim msg As New frmMessage
Do While (myreader.Read())

myreader.Read()
If myreader.Item("T_Id") > numm Then

dim MBoxText as string = myreader.Item("T_Text")

msgbox(MBoxText)
numm = myreader.Item("T_Id")



End If

Loop
End Sub
AnswerRe: select alst record was added Every minute Pin
Paul Conrad20-Jul-07 5:55
professionalPaul Conrad20-Jul-07 5:55 
GeneralRe: select alst record was added Every minute Pin
Dr.PHP20-Jul-07 19:24
Dr.PHP20-Jul-07 19:24 
GeneralRe: select alst record was added Every minute Pin
Paul Conrad21-Jul-07 4:56
professionalPaul Conrad21-Jul-07 4:56 
Questionvalue of variable Pin
harsh_c19-Jul-07 19:51
professionalharsh_c19-Jul-07 19:51 
AnswerRe: value of variable Pin
N a v a n e e t h19-Jul-07 22:43
N a v a n e e t h19-Jul-07 22:43 
GeneralRe: value of variable Pin
harsh_c19-Jul-07 23:57
professionalharsh_c19-Jul-07 23:57 
GeneralRe: value of variable Pin
Pete O'Hanlon20-Jul-07 0:03
mvePete O'Hanlon20-Jul-07 0:03 
GeneralRe: value of variable Pin
harsh_c20-Jul-07 0:22
professionalharsh_c20-Jul-07 0:22 
GeneralRe: value of variable Pin
Pete O'Hanlon20-Jul-07 0:33
mvePete O'Hanlon20-Jul-07 0:33 
AnswerRe: value of variable [modified] Pin
DQNOK20-Jul-07 3:31
professionalDQNOK20-Jul-07 3:31 
Questionsequence number in insert comand please help Pin
mindgameny19-Jul-07 17:08
mindgameny19-Jul-07 17:08 
AnswerRe: sequence number in insert comand please help Pin
N a v a n e e t h19-Jul-07 22:41
N a v a n e e t h19-Jul-07 22:41 
GeneralRe: sequence number in insert comand please help Pin
Pete O'Hanlon19-Jul-07 23:17
mvePete O'Hanlon19-Jul-07 23:17 
GeneralRe: sequence number in insert comand please help Pin
N a v a n e e t h20-Jul-07 2:22
N a v a n e e t h20-Jul-07 2:22 
GeneralRe: sequence number in insert comand please help Pin
Pete O'Hanlon20-Jul-07 2:57
mvePete O'Hanlon20-Jul-07 2:57 
AnswerRe: sequence number in insert comand please help Pin
Pete O'Hanlon19-Jul-07 23:25
mvePete O'Hanlon19-Jul-07 23:25 
GeneralRe: sequence number in insert comand please help Pin
mindgameny20-Jul-07 17:23
mindgameny20-Jul-07 17:23 

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.