Click here to Skip to main content
16,011,374 members
Home / Discussions / Database
   

Database

 
QuestionTOP 1 in select statement with different results. Pin
VK-Cadec19-Jun-07 5:03
VK-Cadec19-Jun-07 5:03 
QuestionRe: TOP 1 in select statement with different results. Pin
andyharman19-Jun-07 6:36
professionalandyharman19-Jun-07 6:36 
AnswerRe: TOP 1 in select statement with different results. Pin
VK-Cadec19-Jun-07 6:53
VK-Cadec19-Jun-07 6:53 
QuestionRe: TOP 1 in select statement with different results. Pin
andyharman19-Jun-07 7:04
professionalandyharman19-Jun-07 7:04 
AnswerRe: TOP 1 in select statement with different results. Pin
VK-Cadec19-Jun-07 7:17
VK-Cadec19-Jun-07 7:17 
GeneralRe: TOP 1 in select statement with different results. Pin
andyharman19-Jun-07 7:30
professionalandyharman19-Jun-07 7:30 
AnswerRe: TOP 1 in select statement with different results. Pin
Mike Dimmick20-Jun-07 1:28
Mike Dimmick20-Jun-07 1:28 
Questionmysql update Pin
WhiteGirl2319-Jun-07 3:20
WhiteGirl2319-Jun-07 3:20 
Hi good people.

I'm trying to update a table in mysql.
Here is the code:

For Each file12 In files<br />
<br />
                array12 = System.IO.Path.GetFileNameWithoutExtension(file12).Trim<br />
<br />
<br />
                Dim FileSize As UInt32<br />
                Dim rawData() As Byte<br />
                Dim fs As FileStream<br />
                fs = New FileStream(cale12 & "\" & array12 & ".buf", FileMode.Open, FileAccess.Read)<br />
                FileSize = fs.Length<br />
<br />
                rawData = New Byte(FileSize) {}<br />
                fs.Read(rawData, 0, FileSize)<br />
                fs.Close()<br />
<br />
                par.ParameterName = "?BinData"<br />
<br />
                cmd.CommandText = "update notiz set Bindata=" & par.ParameterName & " where Nr=" & Chr(39) & array12 & Chr(39)<br />
<br />
                par.Value = rawData<br />
<br />
                cmd.Parameters.Add(par)<br />
                cmd.ExecuteNonQuery()


It works for the first field but when I try to update the second field I have the error:


Parameter '?BinData' has already been defined.

Please help.

Thanks
AnswerRe: mysql update Pin
GoodID19-Jun-07 19:52
GoodID19-Jun-07 19:52 
GeneralRe: mysql update Pin
WhiteGirl2319-Jun-07 21:02
WhiteGirl2319-Jun-07 21:02 
QuestionDetermining Size of Records In SQL Server Table Pin
tjg5_9919-Jun-07 3:07
tjg5_9919-Jun-07 3:07 
AnswerRe: Determining Size of Records In SQL Server Table Pin
andyharman19-Jun-07 6:56
professionalandyharman19-Jun-07 6:56 
GeneralRe: Determining Size of Records In SQL Server Table Pin
tjg5_9919-Jun-07 8:05
tjg5_9919-Jun-07 8:05 
QuestionHelp with report creation Pin
Seryoga19-Jun-07 0:40
Seryoga19-Jun-07 0:40 
QuestionReturning Value from Stored Procedures Pin
M. J. Jaya Chitra18-Jun-07 23:22
M. J. Jaya Chitra18-Jun-07 23:22 
AnswerRe: Returning Value from Stored Procedures Pin
vimal_yet18-Jun-07 23:46
vimal_yet18-Jun-07 23:46 
AnswerRe: Returning Value from Stored Procedures Pin
Xandip19-Jun-07 19:19
Xandip19-Jun-07 19:19 
GeneralRe: Returning Value from Stored Procedures Pin
M. J. Jaya Chitra19-Jun-07 19:29
M. J. Jaya Chitra19-Jun-07 19:29 
QuestionHow to find nth record in a table using sqlserver. Pin
Sophia Rekhi18-Jun-07 21:31
Sophia Rekhi18-Jun-07 21:31 
AnswerRe: How to find nth record in a table using sqlserver. Pin
iprasad00718-Jun-07 22:12
iprasad00718-Jun-07 22:12 
GeneralRe: How to find nth record in a table using sqlserver. Pin
Sophia Rekhi18-Jun-07 23:39
Sophia Rekhi18-Jun-07 23:39 
AnswerRe: How to find nth record in a table using sqlserver. Pin
Krish - KP18-Jun-07 22:42
Krish - KP18-Jun-07 22:42 
QuestionSetting default value to a column Pin
M. J. Jaya Chitra18-Jun-07 20:01
M. J. Jaya Chitra18-Jun-07 20:01 
AnswerRe: Setting default value to a column Pin
Sylvester george18-Jun-07 20:10
Sylvester george18-Jun-07 20:10 
GeneralRe: Setting default value to a column Pin
M. J. Jaya Chitra18-Jun-07 20:20
M. J. Jaya Chitra18-Jun-07 20:20 

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.