Viewing 15 posts - 376 through 390 (of 627 total)
Phil Parkin (3/14/2016)
yb751 (3/14/2016)
March 14, 2016 at 1:56 pm
Provided you have permission to the remote folder (check your logs); what file extension did you specify? It needs to match the files you intend to delete. Also...
March 8, 2016 at 2:01 pm
Just to illustrate...
USE [AdventureWorks2012]
--Using IN
SELECT
*
FROM
[Production].[ProductInventory]
WHERE
LocationID IN (1, 6, 50)
--Using a Join
DECLARE @test-2 TABLE (LocationID INT)
INSERT INTO @test-2
VALUES (1), (6), (50)
SELECT
p.*
FROM
[Production].[ProductInventory] p
JOIN @test-2...
March 8, 2016 at 1:54 pm
cory.bullard76 (3/8/2016)
That worked....thanks!
You're welcome!
March 8, 2016 at 1:48 pm
Just need to tweak your logic...
DECLARE @myTable TABLE (ID INT, Cost1 NUMERIC(4,2), Cost2 NUMERIC(4,2), Cost3 NUMERIC(4,2), Cost4 NUMERIC(4,2))
INSERT INTO @myTable
VALUES (1122, 14.00, 0.00, 50.00, 25.00), (1133, 75.00, 32.00, 1.00, 0.00),...
March 8, 2016 at 1:39 pm
Why have I waited so long to start using snippets? :pinch:
It was probably the part that said 'Create an XML...' and I stopped there and said screw that. In...
March 8, 2016 at 8:46 am
terry999 (3/8/2016)
yb751 (3/8/2016)
Is it a wide table?Positively obese
Ok, that made me laugh. :hehe:
That being said I would not recommend it in that case.
March 8, 2016 at 8:17 am
You got yourself into trouble because your table isn't normalized. This is just a bad way of storing data. Now assuming you had a unique ID per person...
March 8, 2016 at 8:13 am
Is it a wide table? If not you could try including all columns on your non-clustered index. This would avoid key lookups and act similar to a clustered...
March 8, 2016 at 7:45 am
This is not an answer to your question but that doesn't mean I'm not trying to help. Consider the code below. This is an example on how to...
March 7, 2016 at 8:11 am
Almost got this one wrong, until I remembered COUNT(*) includes NULLs.
Good reminder!
March 7, 2016 at 7:44 am
It's also worth noting that using SET vs SELECT when assigning a variable will work similarly but have important differences.
Here is some code to illustrate:
--Declare a simple table and add...
March 4, 2016 at 12:19 pm
souLTower (3/3/2016)
On a related note,...
March 3, 2016 at 8:20 am
If you truly want to understand indexes this is an excellent read. http://www.sqlservercentral.com/stairway/72399/
February 26, 2016 at 8:10 am
A CXPACKET wait is basically waiting on a parallel thread(s) to finish. In of itself it isn't that concerning.
Try this...
SELECT * FROM sys.dm_exec_requests WHERE session_id = your spid here
One of...
February 25, 2016 at 2:14 pm
Viewing 15 posts - 376 through 390 (of 627 total)