Viewing 15 posts - 2,896 through 2,910 (of 4,820 total)
February 14, 2017 at 7:50 am
February 14, 2017 at 7:45 am
February 14, 2017 at 7:23 am
February 13, 2017 at 2:46 pm
Try this instead:
FOR %f IN (\\ServerB\Results\*.Sql) DO @ECHO %f
There are a couple of problems with the original command you had. The /F option tries...
February 13, 2017 at 2:31 pm
I have tried the code below to flag certain customers upon the 'case whens'...
February 13, 2017 at 2:22 pm
February 13, 2017 at 2:11 pm
Most everything I see in your post appears okay, except perhaps the UPDATE. Seems more appropriate to do it this way:
UPDATE RLC
SET RLC.[ReplTime (Secs)] = DATEDIFF(second,...
February 13, 2017 at 2:05 pm
Are you sure you want a default value of 0, while having a UNIQUE index on that field? One insert of a default value and you don't get to repeat...
February 13, 2017 at 1:57 pm
Have you tested the values that come into play for the %%i variable ? Also, when the SQL job runs, it will not run under your user id unless that's...
February 13, 2017 at 1:53 pm
Not sure you need such a column. All you need in any given query is:
SELECT ROW_NUMBER() OVER(ORDER BY CreatedDate) AS NewIdentityColumn
FROM dbo.YOUR_TABLE
...
February 13, 2017 at 1:49 pm
Well... no replies... I'm going to guess there's just no practical way to do it, which is what I suspected all along, but I had to at least ask the...
February 13, 2017 at 6:36 am
Just want to know if the following gets the correct result, and if not, what the problem is.
DECLARE @T2 TABLE
(
ID INT IDENTITY(1,1)
,Col1...
February 10, 2017 at 2:09 pm
Viewing 15 posts - 2,896 through 2,910 (of 4,820 total)