Click here to Skip to main content
15,912,069 members
Home / Discussions / Database
   

Database

 
GeneralRe: .NET SQL Float rounding problem.. Pin
Rein Hillmann6-Aug-03 22:00
Rein Hillmann6-Aug-03 22:00 
GeneralRe: .NET SQL Float rounding problem.. Pin
Mike Dimmick11-Aug-03 5:04
Mike Dimmick11-Aug-03 5:04 
GeneralLookup Data Selection With a DataGrid Pin
shoubin4-Aug-03 14:26
shoubin4-Aug-03 14:26 
GeneralLoading a DataSet with Data from Multiple Tables Pin
Milancie4-Aug-03 11:06
Milancie4-Aug-03 11:06 
GeneralRe: Loading a DataSet with Data from Multiple Tables Pin
Alexandru Savescu6-Aug-03 22:37
Alexandru Savescu6-Aug-03 22:37 
GeneralREPOST: How to create "inheritance" relationship in Ms Access? (Better problem definition) Pin
ChiYung4-Aug-03 8:52
ChiYung4-Aug-03 8:52 
GeneralCursor Error Pin
Anonymous4-Aug-03 7:22
Anonymous4-Aug-03 7:22 
QuestionClose the connection? Pin
Anonymous4-Aug-03 2:58
Anonymous4-Aug-03 2:58 
I have a form that uses a data adapter to query some data and populate some textboxes on the form. I then have a button that I hand coded to update the datasource and uses the textboxes as inputs for my parameters. My problem is that after i do the initial update it wont let me do another on if the data is changed without closing the form.

Here is the exception that is thrown:

Exception Text **************
System.Data.SqlClient.SqlException: The variable name '@weight' has already been declared. Variable names must be unique within a query batch or stored procedure.
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()

Is there a way to reset this variable or reset the connection?
AnswerRe: Close the connection? Pin
Rob Graham4-Aug-03 4:02
Rob Graham4-Aug-03 4:02 
GeneralRe: Close the connection? Pin
Anonymous4-Aug-03 5:10
Anonymous4-Aug-03 5:10 
AnswerRe: Close the connection? Pin
Rocky Moore4-Aug-03 4:02
Rocky Moore4-Aug-03 4:02 
GeneralDynamic where Clause Pin
dabuskol4-Aug-03 0:46
dabuskol4-Aug-03 0:46 
GeneralRe: Dynamic where Clause Pin
Rocky Moore4-Aug-03 4:35
Rocky Moore4-Aug-03 4:35 
GeneralRe: Dynamic where Clause Pin
Peet Schultz5-Aug-03 5:57
Peet Schultz5-Aug-03 5:57 
GeneralRe: Dynamic where Clause Pin
dabuskol5-Aug-03 18:27
dabuskol5-Aug-03 18:27 
Generalmozooo Pin
Anonymous3-Aug-03 22:36
Anonymous3-Aug-03 22:36 
GeneralRe: mozooo Pin
Anonymous3-Aug-03 22:38
Anonymous3-Aug-03 22:38 
GeneraloledbCommand Pin
betengan3-Aug-03 15:13
betengan3-Aug-03 15:13 
GeneralRe: oledbCommand Pin
neda3-Aug-03 22:33
neda3-Aug-03 22:33 
GeneralRe: oledbCommand Pin
K4reem5-Aug-03 3:59
K4reem5-Aug-03 3:59 
GeneralUpdateCommand with Parameter Pin
Anonymous3-Aug-03 8:42
Anonymous3-Aug-03 8:42 
GeneralRe: UpdateCommand with Parameter Pin
ChiYung3-Aug-03 9:13
ChiYung3-Aug-03 9:13 
GeneralRe: UpdateCommand with Parameter Pin
Arjan Einbu3-Aug-03 12:06
Arjan Einbu3-Aug-03 12:06 
GeneralRe: UpdateCommand with Parameter Pin
Anonymous3-Aug-03 12:21
Anonymous3-Aug-03 12:21 
GeneralRe: UpdateCommand with Parameter Pin
Anonymous3-Aug-03 13:33
Anonymous3-Aug-03 13:33 

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.