Viewing 15 posts - 8,671 through 8,685 (of 8,753 total)
Hope you don't mind but here is my suggestion; check all the possible bottlenecks and possible points of failure, this may not even be a db issue. It only takes...
March 31, 2014 at 11:52 am
Jeff Moden (3/31/2014)
shashianireddy (3/29/2014)
I WANT DELETE FIRST 1000 ROWS IN SQL TABLE ............................
... of not knowing what...
March 31, 2014 at 11:39 am
Luis Cazares (3/31/2014)
WITH Contacts AS(
SELECT INS.INSPNO, CNT.FIRSTNAME, CNT.LASTNAME, CNT.CAPACITY,
ROW_NUMBER() OVER( PARTITION BY INS.INSPNO ORDER BY CASE WHEN Capacity = 'Contractor' THEN -1 ELSE INS.INSPNO END DESC)...
March 31, 2014 at 10:20 am
One way of simplifying this is to use the NCHAR() function;
EXEC ( ' Select CHARINDEX(NCHAR(41), @Ref) ')
March 31, 2014 at 8:01 am
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
,StartDateDATE...
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.LASTNAMEFROM 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
Viewing 15 posts - 8,671 through 8,685 (of 8,753 total)