Click here to Skip to main content
15,901,205 members
Home / Discussions / Database
   

Database

 
AnswerRe: Copy Table Problem Pin
albCode19-Dec-05 4:35
albCode19-Dec-05 4:35 
GeneralRe: Copy Table Problem Pin
tadhg8819-Dec-05 6:08
tadhg8819-Dec-05 6:08 
AnswerRe: Copy Table Problem Pin
Chris Meech19-Dec-05 9:04
Chris Meech19-Dec-05 9:04 
Questioninsert into mulitiple tables??? Pin
WetRivrRat18-Dec-05 9:31
WetRivrRat18-Dec-05 9:31 
AnswerRe: insert into mulitiple tables??? Pin
Luis Alonso Ramos18-Dec-05 10:42
Luis Alonso Ramos18-Dec-05 10:42 
AnswerRe: insert into mulitiple tables??? Pin
WetRivrRat18-Dec-05 13:23
WetRivrRat18-Dec-05 13:23 
GeneralRe: insert into mulitiple tables??? Pin
Luis Alonso Ramos18-Dec-05 16:19
Luis Alonso Ramos18-Dec-05 16:19 
QuestionNeed simple code Pin
gharry18-Dec-05 8:30
gharry18-Dec-05 8:30 
I am not that good in asp.net and sql.

I need a simple piece of code to see if a value is in a datatable.
Allready have this but how to proceed:

Dim LUConn As SqlConnection = New SqlConnection("server=localhost;uid=sa;pwd=;database=EventMngt")
Dim LUString As String = "SELECT * FROM C_Registered_horses WHERE Horse_Name = " & Horse_Name.Text
Dim objLUConnCommand As New SqlCommand(LUString, LUConn)
Dim objConnReader As SqlDataReader

Try
LUConn.Open()
objConnReader = objLUConnCommand.ExecuteReader()


Catch Err As Exception
MessageLabel.Text = "Horsename not found. Try again or use Passport number." & Err.Message
Horse_Name.BackColor = System.Drawing.Color.LightGoldenrodYellow
btnSubmitNext1.Visible = "false"

Finally
LUConn.Close()
MessageLabel.Text = LUString
Horse_Name.BackColor = System.Drawing.Color.LightGreen
btnSubmitNext1.Visible = "true"

End Try

Any help is welkom.

AnswerRe: Need simple code Pin
Luis Alonso Ramos18-Dec-05 10:46
Luis Alonso Ramos18-Dec-05 10:46 
GeneralRe: Need simple code Pin
gharry19-Dec-05 6:31
gharry19-Dec-05 6:31 
GeneralRe: Need simple code Pin
Luis Alonso Ramos19-Dec-05 6:44
Luis Alonso Ramos19-Dec-05 6:44 
GeneralRe: Need simple code Pin
gharry19-Dec-05 22:12
gharry19-Dec-05 22:12 
AnswerRe: Need simple code Pin
albCode19-Dec-05 4:20
albCode19-Dec-05 4:20 
GeneralRe: Need simple code Pin
gharry19-Dec-05 5:05
gharry19-Dec-05 5:05 
GeneralRe: Need simple code Pin
albCode19-Dec-05 5:12
albCode19-Dec-05 5:12 
GeneralRe: Need simple code Pin
Luis Alonso Ramos19-Dec-05 6:39
Luis Alonso Ramos19-Dec-05 6:39 
QuestionWhy is code not working Pin
gharry17-Dec-05 10:11
gharry17-Dec-05 10:11 
AnswerRe: Why is code not working Pin
Andrew Bleakley17-Dec-05 12:53
Andrew Bleakley17-Dec-05 12:53 
AnswerRe: Why is code not working Pin
Colin Angus Mackay17-Dec-05 14:26
Colin Angus Mackay17-Dec-05 14:26 
QuestionNetwork card Mac address Pin
GregRH16-Dec-05 12:26
GregRH16-Dec-05 12:26 
AnswerRe: Network card Mac address Pin
Colin Angus Mackay16-Dec-05 12:40
Colin Angus Mackay16-Dec-05 12:40 
Questionuse a string by reference? Pin
BlackDice16-Dec-05 4:58
BlackDice16-Dec-05 4:58 
AnswerRe: use a string by reference? Pin
BlackDice16-Dec-05 5:15
BlackDice16-Dec-05 5:15 
AnswerRe: use a string by reference? Pin
Shawn_H7-Feb-06 20:40
Shawn_H7-Feb-06 20:40 
QuestionData access through a windows service Pin
User 231751415-Dec-05 21:32
User 231751415-Dec-05 21:32 

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.