Executing a TSQL batch multiple times using GO
Learn how to execute the same batch of SQL Server commands X number of times using the GO command.
2021-08-27
Learn how to execute the same batch of SQL Server commands X number of times using the GO command.
2021-08-27
All it really means is, “Click Execute again, and you will be fine.”
2019-04-15
2016-07-08
1,762 reads
2014-12-09
1,995 reads
This script was designed to 'pivot' data that couldnt easily be pivoted in any other way. i used temporary tables to eventually achieve the result i was looking for 🙂
2008-10-10
1,010 reads
I think the problem occurs with only with AWE enabled, because /3GB switch is for Widows User mode address space enlargement and AWE is specific to SQL Server. But there are other problems associated with SP4 - I still recommend that you should wait for atleast 6 months after the release of a service pack.
2005-05-27
I'm all for trick questions, it's just slightly annoying that the question specifically asked you NOT to try it first. The only reason I can think of as to why someone would say that is to get most of us to get it wrong. I can't imagine very many of us would stumble across this one too […]
2004-10-22
FYI - when I need to counts by date on a DateTime field where the time value is populated, I just zero out the time value withSELECT CAST(Convert(VarChar(8), GetDate(), 112) AS DateTime) ...
2004-06-04
Or, don't bother with any of the conversion stuff and just: CREATE PROC dbo.GetProjects @StartDate SMALLDATETIME , @EndDate SMALLDATETIME AS BEGIN SELECT Fields -- Don't use * !!! FROM tblProjects WHERE insertedDate BETWEEN DATEDIFF(day, 0, @StartDate) AND DATEDIFF(day, 0, @EndDate) END The DATEDIFF strips the time portion of the smalldatetime/datetime field. Since DATETIME fields are […]
2003-07-28
1 reads
A couple of extra points. 1. Do the updates before the inserts otherwise you end up updating the rows you have just inserted. 2. If you have 500K rows to process and a table of 1.7M, then you will probably have locking issues. One way round this would be to add an identity column to […]
2003-07-25
By Steve Jones
I can’t remember how I heard about Small Data SF 2024, but it caught...
By Steve Jones
moledro – n. a feeling of resonant connection with an author or artist you’ll...
By Arun Sirpal
Let’s go back to data platforms today and I want to talk about a...
Comments posted to this topic are about the item 7 sept, scheduled book
Comments posted to this topic are about the item 7 sept, schedlued article
Comments posted to this topic are about the item 6 sept, published book
Azure Data Lake Storage Gen 2 is built on ...?
See possible answers