July 7, 2010 at 8:44 am
Ok...let's get started then. When scripting an UPDATE, always start with a SELECT. Something like this:
SELECT TOP 100 [disabled], [date created]
FROM MyTable
WHERE [date created] < '2005-06-01 00:00:00.000'
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
July 7, 2010 at 9:49 am
Chris Morris-439714 (7/7/2010)
Ok...let's get started then. When scripting an UPDATE, always start with a SELECT. Something like this:SELECT TOP 100 [disabled], [date created]
FROM MyTable
WHERE [date created] < '2005-06-01 00:00:00.000'
Thanks for your help Chris, I figured it out.
July 7, 2010 at 10:03 am
No worries.
Grab yourself a beginners' TSQL book, there are loads on Amazon - and get to know BOL, the SQL Server on-line help guide. Basic TSQL is quick to pick up.
Cheers
ChrisM
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
Viewing 3 posts - 16 through 17 (of 17 total)
You must be logged in to reply to this topic. Login to reply