About 140,000 results
Open links in new tab
  1. Reset identity seed after deleting records in SQL Server

    This is done primarily because in SQL Azure, each table has to have a primary key and identity defined. But since I have to delete some records from the table, the identity seed for those tables will be …

  2. sql - What is the best way to implement soft deletion? - Stack Overflow

    The best response, sadly, depends on what you're trying to accomplish with your soft deletions and the database you are implementing this within. In SQL Server, the best solution would be to use a …

  3. sql - Remove Identity from a column in a table - Stack Overflow

    We have a 5GB table (nearly 500 million rows) and we want to remove the identity property on one of the column, but when we try to do this through SSMS - it times out. Can this be done through T-SQL?

  4. Delete data with foreign key in SQL Server table

    60 I'm going to delete data in an SQL Server table (parent) which has a relationship with another table (child). I tried the basic Delete query. But it isn't working (and I know it won't).

  5. sql - Delete the column for the particular value - Stack Overflow

    Using Sql Server 2005 Table1 ID Name Value 001 Rajesh 90 002 Suresh 100 003 Mahesh 200 004 Virat 400 ... I want to delete the value from the table1 for the particular id Tried Query Delete value

  6. How to delete multiple rows in SQL where id = (x to y)

    I am trying to run a SQL query to delete rows with id's 163 to 265 in a table I tried this to delete less number of rows DELETE FROM `table` WHERE id IN (264, 265) But when it comes to delete...

  7. How to DROP multiple columns with a single ALTER TABLE statement …

    Jun 14, 2011 · Multiple columns and constraints can be listed. It says that mutliple columns can be listed in the the statement but the syntax doesn't show an optional comma or anything that would even hint …

  8. sql - How do I remove the first characters of a specific column in a ...

    In SQL, how can I remove the first 4 characters of values of a specific column in a table? Column name is Student Code and an example value is ABCD123Stu1231. I want ...

  9. sql server - Delete from a table based on date - Stack Overflow

    delete from YOUR_TABLE where your_date_column < '2009-01-01'; This will delete rows from YOUR_TABLE where the date in your_date_column is older than January 1st, 2009. i.e. a date with …

  10. sql server 2005 - How do you drop a default value from a column in a ...

    This will show you the code that created the constraint including the column name and default value. Then just right-click on the constraint you want to delete and select Delete.