Click here to Skip to main content
15,922,427 members
Home / Discussions / Database
   

Database

 
AnswerRe: Insert data into database Pin
Rami Said Abd Alhalim4-Sep-07 6:26
Rami Said Abd Alhalim4-Sep-07 6:26 
QuestionSql server. varbinary or varchar Pin
Eli Nurman4-Sep-07 0:24
Eli Nurman4-Sep-07 0:24 
AnswerRe: Sql server. varbinary or varchar Pin
Colin Angus Mackay4-Sep-07 0:50
Colin Angus Mackay4-Sep-07 0:50 
GeneralRe: Sql server. varbinary or varchar Pin
Eli Nurman4-Sep-07 0:51
Eli Nurman4-Sep-07 0:51 
GeneralRe: Sql server. varbinary or varchar Pin
Pete O'Hanlon4-Sep-07 22:16
mvePete O'Hanlon4-Sep-07 22:16 
QuestionDeleting a row Pin
Suresh R..3-Sep-07 22:26
Suresh R..3-Sep-07 22:26 
AnswerRe: Deleting a row Pin
Blue_Boy3-Sep-07 22:38
Blue_Boy3-Sep-07 22:38 
AnswerRe: Deleting a row Pin
John-ph4-Sep-07 0:51
John-ph4-Sep-07 0:51 
Suresh R.. wrote:
how to delete a perticular row from a table in SQL Server 2005


you can have this...

--Deleting single or multiple rows
DELETE FROM TABLE WHERE ID = VALUE

DELETE FROM TABLE WHERE ID IN (VALUE1, VALUE2, VALUE3)

--deleting top 100 rows
DELETE FROM TABLE WHERE ID (SELECT TOP 100 ID FROM TABLE ORDER BY ID)

--delete records in one table based on values in another table
DELETE FROM TABLE A
WHERE EXISTS
  ( SELECT ID
     FROM TABLE B
     where B.ID = A.ID)

--delete records in one table based on values that doesn't match in another table
DELETE FROM TABLE A
WHERE NOT EXISTS
  ( SELECT ID
     FROM TABLE B
     where B.ID = A.ID)

--deletes all rows and reinitializes the table
TRUNCATE TABLE TABLENAME --(not reccommended if you 
--don't know the exact use of truncate stmt)

--deleting duplicate rows from a table

Check This[^]







Regards
J O H N Rose | [Rose]

"Even eagles need a push." David McNally

QuestionConcurrency Control Pin
leminhphuong3-Sep-07 21:06
leminhphuong3-Sep-07 21:06 
AnswerRe: Concurrency Control Pin
Pete O'Hanlon3-Sep-07 22:04
mvePete O'Hanlon3-Sep-07 22:04 
Questioni want to pass parameter from one report to other Pin
salman kazi3-Sep-07 20:06
salman kazi3-Sep-07 20:06 
AnswerRe: i want to pass parameter from one report to other Pin
DLM@TD14-Sep-07 12:06
DLM@TD14-Sep-07 12:06 
QuestionRecursive Trigger Pin
John Gathogo3-Sep-07 19:48
John Gathogo3-Sep-07 19:48 
Questionhow to format smalldatetime Pin
prasadbuddhika3-Sep-07 18:52
prasadbuddhika3-Sep-07 18:52 
AnswerRe: how to format smalldatetime Pin
John Gathogo3-Sep-07 20:18
John Gathogo3-Sep-07 20:18 
Questionwhat is the shortcut key to open sql management studio in windows Pin
pashitech3-Sep-07 7:19
pashitech3-Sep-07 7:19 
AnswerRe: what is the shortcut key to open sql management studio in windows Pin
Paul Conrad3-Sep-07 7:53
professionalPaul Conrad3-Sep-07 7:53 
AnswerRe: what is the shortcut key to open sql management studio in windows Pin
Pete O'Hanlon3-Sep-07 8:29
mvePete O'Hanlon3-Sep-07 8:29 
QuestionHow to retrieve local machine time using sql query in Sqlserver 2005 Pin
pashitech3-Sep-07 7:17
pashitech3-Sep-07 7:17 
AnswerRe: How to retrieve local machine time using sql query in Sqlserver 2005 Pin
Paul Conrad3-Sep-07 7:54
professionalPaul Conrad3-Sep-07 7:54 
AnswerRe: How to retrieve local machine time using sql query in Sqlserver 2005 Pin
jschell3-Sep-07 8:00
jschell3-Sep-07 8:00 
Questionhow to manage array in sql insert trigger Pin
purushotam3-Sep-07 4:30
purushotam3-Sep-07 4:30 
AnswerRe: how to manage array in sql insert trigger Pin
Pete O'Hanlon3-Sep-07 5:07
mvePete O'Hanlon3-Sep-07 5:07 
Questionwhat is wrong with the code Pin
prasadbuddhika3-Sep-07 3:21
prasadbuddhika3-Sep-07 3:21 
AnswerRe: what is wrong with the code Pin
Blue_Boy3-Sep-07 4:19
Blue_Boy3-Sep-07 4:19 

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.