|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
SQL Update from Command prompt
Hi
I'm new to MSSQL Development and I was wondering how can you update a field in a table from a command prompt. Is there an UPDATE script that I can use or modify to connect to my server and designate a field in a table to update? I need to do this from a command prompt or be able to call the script from a command prompt. It's a legacy issue. Thanks, Drewidian. |
|
#2
|
||||
|
||||
|
A simple table Update would look like:
Code:
UPDATE tablename SET fieldname=data WHERE somefield=somedata A practical example might be: UPDATE person SET firstname='Joe' WHERE id=1 Does this help at all? |
![]() |
| Viewing: Dev Articles Community Forums > Databases > Microsoft SQL Server > SQL Update from Command prompt |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|