Viewing 15 posts - 1,756 through 1,770 (of 1,988 total)
Log into your server sometime on sunday while the error is occuring and verify that the backup location is actually available 🙂
March 17, 2015 at 3:34 pm
WITH TEMP_CTE AS(SELECT [TimeStamp], ROW_NUMBER() OVER(PARTITION BY (SELECT 1) ORDER BY [TimeStamp] ASC) AS ROW_NUM FROM #Time
)
SELECT T_ONE.[TimeStamp], T_TWO.[TimeStamp], DATEDIFF(minute, T_ONE.[TimeStamp], T_TWO.[TimeStamp]) FROM TEMP_CTE T_ONE, TEMP_CTE T_TWO
WHERE T_ONE.ROW_NUM = T_TWO.ROW_NUM...
March 17, 2015 at 3:27 pm
So was this a question on why single character variable names @i and @j-2 are terrible choices?
March 17, 2015 at 9:32 am
Based on your data that update won't work as expected because the rows aren't unique.
Try this.
WITH NumCte AS (
SELECT t.CatName, t.RowNumber,
RN = ROW_NUMBER() OVER(PARTITION BY t.CatName ORDER BY t.SubCat)
FROM #TEST...
March 16, 2015 at 3:00 pm
SELECT DATEADD(year, -1, DATEADD(MONTH, DATEDIFF(MONTH, '19000201', GETDATE()), '19000101')) AS StartDate1,
DATEADD(year, -1, DATEADD(MONTH, DATEDIFF(MONTH, '19000101', GETDATE()), '18991231')) AS EndDate1
March 16, 2015 at 2:27 pm
dan-572483 (3/16/2015)
March 16, 2015 at 11:57 am
Transaction log backup.
March 16, 2015 at 10:31 am
Backing up the log does not reduce the file size, so at some point you used 500GB of log space between transaction log backups. If you need to reclaim...
March 16, 2015 at 10:28 am
If you're actually expecting data with " in it can you change the file format from say comma delimited with " qualifiers to something else like just | delimited?
March 13, 2015 at 2:58 pm
Well no you haven't aliased your columns the same(you aliased your table) so SQL Server is using the column name of the first select which is why the order by...
March 13, 2015 at 2:15 pm
p.bradley (3/12/2015)
Correction, my apologies, I am using CONVERT(VARCHAR(10),GETDATE(),103). The application is software text messaging which requires the date in dd/mm/yyyy, as far as I know it does not format.
That should...
March 12, 2015 at 11:21 am
Sean Lange (3/12/2015)
March 12, 2015 at 8:43 am
If it's stored as a varchar you'll need to convert it to a datetime first then convert it to the formatted date you want.
March 12, 2015 at 8:01 am
The reason why shrink database should typically be avoided is that if the database grew to that size it indicates it needed that much space for some reason so shrinking...
March 11, 2015 at 12:17 pm
The relatively simple way is to put your check for duplicate data into a CTE then just delete from that CTE where ROW_NUMBER != 1.
March 11, 2015 at 11:05 am
Viewing 15 posts - 1,756 through 1,770 (of 1,988 total)