Viewing 15 posts - 8,656 through 8,670 (of 8,733 total)
This can be done using sub-query
Using TOP
DECLARE @BATCH_SIZE INT = 10;
DELETE X
FROM (
SELECT TOP (@BATCH_SIZE) [COLUMN]
FROM [TABLE_NAME] M
ORDER BY [COLUMN] DESC
) AS X
Using OFFSET-FETCH (2012)
DECLARE @BATCH_SIZE INT = 10;
DELETE X
FROM...
March 31, 2014 at 5:33 am
This is a case of premature exclusion, nothing to worry about 😀
USE tempdb;
GO
DECLARE @inspection TABLE
(
INSPNO INT NULL
...
March 31, 2014 at 1:42 am
Could you supply a DDL with a sample records and the expected results?
March 30, 2014 at 11:10 pm
jordon.shaw (3/30/2014)
SELECT IS.INSPNO, CNT.FIRSTNAME, CNT.LASTNAME
FROM INSPECTION IS
INNER JOIN INSPECTIONCONTACT CNT
ON IS.INSPNO = CNT.INSPNO
WHERE CNT.CAPACITY <> 'Contractor'
Quick note, be careful not to use reserved keywords in this manner, that is the...
March 30, 2014 at 10:58 pm
Came across this, thought it might help
March 30, 2014 at 12:22 pm
dwain.c (3/27/2014)
Eirikur Eiriksson (3/25/2014)
Looks like JM's seal of approval, which doesn't come easily.
Well done indeed!
Thanks Dwain :Wow:
You also get my seal of approval. 🙂
Reference and link at...
March 30, 2014 at 11:38 am
Several ways to do this, options include using SSIS package, an OPENROWSET from destination, downgraded SQL Server import then upgrade and few more. Without more knowledge of the schema, constraints...
March 30, 2014 at 11:04 am
Jeff Moden (3/29/2014)
March 30, 2014 at 9:35 am
This might help;
USE tempdb;
GO
CREATE TABLE dbo.TBL_XML_DOC
( XML_DOC_ID int identity(1,1) primary key clustered not null
,XML_DOCUMENT xml);
GO
INSERT INTO dbo.TBL_XML_DOC(XML_DOCUMENT)
SELECT * FROM OPENROWSET(
BULK 'C:\Download\sdn.xml',
SINGLE_BLOB) AS x;
;WITH...
March 29, 2014 at 6:50 pm
Prakash Heda (3/29/2014)
March 29, 2014 at 6:10 pm
I have 2008R2, 2012 and 2014 on the same W7, all named instances, no problem 🙂
March 29, 2014 at 1:11 pm
Jeff Moden (3/29/2014)
March 29, 2014 at 11:13 am
elfresco1 (3/26/2014)
March 29, 2014 at 6:02 am
ananda.murugesan (3/29/2014)
DELETE FROM TBL_IMAGES where ENROLLTIME <= DATEADD (year,-5, GETDATE()) order by ENROLLTIME descPls. suggestion me, If any best method?
Here is a method that I have used for one off...
March 29, 2014 at 3:13 am
GilaMonster (3/28/2014)
March 28, 2014 at 3:48 pm
Viewing 15 posts - 8,656 through 8,670 (of 8,733 total)