Skip to content
Loading
  • Raju Ahmed
    +2
     Hi Technical guru,
     You can multiple row in many way. like followings: Suppose you've a table like following;
    1. CREATE TABLE tblEmploye  
    2. (  
    3.  EmpId INT IDENTITY(1,1) PRIMARY KEY,  
    4.  Name   VARCHAR(50) NOT NULL,  
    5.  Age   INT NOT NULL,  
    6.  DepartmentName VARCHAR(50)  
    7. )        
    8. GO  
    1. To delete all data from a tablee.
    1. DELETE FROM tblEmployee   
    2. To Delete By All Department Like HR
    1. DELETE FROM tblEmployee  
    2. WHERE DepartmentName='HR' 
    3. To delete all data when age is greater than 30
    1. DELETE FROM dbo.tblEmploye  
    2. WHERE Age>30  
    Happy Coding......... 
    +2
  • Code Alone
    +2
    Hi Technical guru
     
    Write this query in stored procedure. And call the procedure from vb.net.
     
    Thanks 
    +2
  • Laxmidhar Sahoo
    +1
    All row deleted
    Delete from tablename
    specific rows deleted
    Delete from tablename where condition
    +1
  • +1
     
     in this table delete all row with out last row
    +1
  • +1
    Thanks Pradeep Sir 
    But How to add this query in VB.net Project 
    +1
  • Laxmidhar Sahoo
    +1
    @Pradeep is write and nareted clearly
    +1