Click here to Skip to main content
16,005,241 members
Home / Discussions / C#
   

C#

 
GeneralRe: Window Media Player Control Pin
Matt Philmon12-Oct-04 18:20
Matt Philmon12-Oct-04 18:20 
GeneralFile Streaming Pin
RockRock12-Oct-04 6:42
RockRock12-Oct-04 6:42 
GeneralRe: File Streaming Pin
Heath Stewart12-Oct-04 7:29
protectorHeath Stewart12-Oct-04 7:29 
GeneralRe: File Streaming Pin
yoaz13-Oct-04 7:19
yoaz13-Oct-04 7:19 
GeneralResizing Individual Tabs on a TabControl Pin
dbromberg12-Oct-04 6:06
dbromberg12-Oct-04 6:06 
GeneralRe: Resizing Individual Tabs on a TabControl Pin
Heath Stewart12-Oct-04 11:12
protectorHeath Stewart12-Oct-04 11:12 
GeneralUpdate Command - Please Help Pin
amdacc12-Oct-04 3:16
amdacc12-Oct-04 3:16 
GeneralRe: Update Command - Please Help Pin
Colin Angus Mackay12-Oct-04 3:43
Colin Angus Mackay12-Oct-04 3:43 
Angela Dick wrote:
User ID=sa;password=;";

Please tell me that you deleted the password for security and are not actually running your SQL Server's sa account without at least the protection of a password. You know that dialog when you installed SQL Server and it asked for an initial password for the sa account it had a checkbox for a blank password with the words "not recommended" next to it, it really really isn't recommended.

Your code seems to be incredibly confused. You seem to have meshed a variety of different techniques together. For instance, you are adding parameters to your update command, but the SQL itself takes no parameters as you are directly injecting the values from your controls into the database which leaves you open to a SQL Injection Attack[^]. Finally, you are filling your dataset, overwriting the values you diligently inserted into the table at the top of your method, then you call update.


Angela Dick wrote:
It compiles all ok, but it breaks when it is run.

So, how does it actually break? Is an exception thrown? Does the information not get updated? or...


Do you want to know more?


Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.
GeneralRe: Update Command - Please Help Pin
amdacc12-Oct-04 9:22
amdacc12-Oct-04 9:22 
GeneralRe: Update Command - Please Help Pin
Colin Angus Mackay12-Oct-04 11:02
Colin Angus Mackay12-Oct-04 11:02 
GeneralRe: Update Command - Please Help Pin
Heath Stewart12-Oct-04 7:36
protectorHeath Stewart12-Oct-04 7:36 
GeneralRe: Update Command - Please Help Pin
amdacc12-Oct-04 9:27
amdacc12-Oct-04 9:27 
GeneralRe: Update Command - Please Help Pin
Colin Angus Mackay12-Oct-04 10:47
Colin Angus Mackay12-Oct-04 10:47 
GeneralRe: Update Command - Please Help Pin
2Scoops13-Oct-04 22:57
2Scoops13-Oct-04 22:57 
GeneralRe: Update Command - Please Help Pin
Heath Stewart12-Oct-04 10:56
protectorHeath Stewart12-Oct-04 10:56 
GeneralCrystal Reports Formulas Pin
NormDroid12-Oct-04 1:38
professionalNormDroid12-Oct-04 1:38 
GeneralRe: Crystal Reports Formulas Pin
Heath Stewart12-Oct-04 7:19
protectorHeath Stewart12-Oct-04 7:19 
GeneralRe: Crystal Reports Formulas Pin
NormDroid12-Oct-04 20:36
professionalNormDroid12-Oct-04 20:36 
GeneralSelect Statement Pin
pat27088112-Oct-04 1:26
pat27088112-Oct-04 1:26 
GeneralRe: Select Statement Pin
Stanciu Vlad12-Oct-04 2:24
Stanciu Vlad12-Oct-04 2:24 
GeneralRe: Select Statement Pin
Heath Stewart12-Oct-04 7:13
protectorHeath Stewart12-Oct-04 7:13 
GeneralRe: Select Statement Pin
Mike Dimmick12-Oct-04 2:47
Mike Dimmick12-Oct-04 2:47 
GeneralRe: Select Statement Pin
pat27088112-Oct-04 3:14
pat27088112-Oct-04 3:14 
GeneralRe: Select Statement Pin
Colin Angus Mackay12-Oct-04 3:21
Colin Angus Mackay12-Oct-04 3:21 
GeneralRe: Select Statement Pin
pat27088112-Oct-04 3:45
pat27088112-Oct-04 3:45 

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.