Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Optimizing delete SQL
Message
From
17/02/2011 13:28:54
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01500559
Message ID:
01500579
Views:
33
>Is your 'something' a declared datetime or date datatype, or is it a string being implicitly converted?

It is parameterized into a Date type.

For example:
DECLARE @AddDate DateTime

SET @AddDate='2011-02-01 00:00:00'

DELETE FROM Hit WHERE AddDate<@AddDate
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform