Viewing 15 posts - 1,486 through 1,500 (of 7,187 total)
With regard to ignoring rows already processed in subsequent iterations, xp_readerrorlog includes a start date parameter. You can log in a table each use of your process, and then include...
May 30, 2017 at 4:19 am
I think you probably need to look at Change Data Capture or security auditing, although I think the latter capture DDL, not DML, changes.
John
May 26, 2017 at 8:48 am
Good spot. A well-designed table would have a CHECK constraint to stop that from happening. (Un)fortunately, though, it doesn't change the logic of this query, since we're only need to...
May 26, 2017 at 4:33 am
...
WHERE MONTH(startdate) = MONTH(enddate)
AND YEAR(startdate) = YEAR(enddate)
GROUP BY
YEAR(startdate)
, MONTH(startdate)
May 26, 2017 at 4:24 am
Poornima
Yes, the SQL Server service account needs to have permission to access the files. I think the problem may be to do with your attempt to create a...
May 26, 2017 at 1:43 am
The answer's yes, but only because I think you asked the wrong question. You can truncate a table that has a foreign key constraint, but you can't truncate a table...
May 25, 2017 at 8:26 am
May 25, 2017 at 4:17 am
You can still do that without a cursor by using a WHERE clause in your delete statement. It's difficult if you can't share all your code.
The answer your...
May 25, 2017 at 3:56 am
From what I can tell, you're deleting one row at a time from Test_A until the table is empty. Is that right? Why use a cursor instead of deleting all...
May 25, 2017 at 3:40 am
SELECT
Day
, CASE
WHEN [Semester Week nu] > 26 THEN [Semester Week nu] -26
ELSE [Semester Week nu]
END AS SemesterWeekNo
FROM #currentDates
May 24, 2017 at 2:51 am
Or this:DECLARE @date float = 201601;
SELECT DATEFROMPARTS(CAST(@date/100 AS int),CAST(@date AS int)%100,1)
John
May 23, 2017 at 5:47 am
May 23, 2017 at 4:49 am
What do you get if you run this?
SELECT MAX(backup_size)
FROM msdb..backupset
WHERE database_name = 'toto'
AND backup_finish_date > CURRENT_TIMESTAMP - 14
AND type = 'L'
May 23, 2017 at 1:59 am
Please read about crosstabs and pivots - that will help you to get the results you're looking for from your sample data. If you have an unspecified number of items,...
May 23, 2017 at 1:49 am
Viewing 15 posts - 1,486 through 1,500 (of 7,187 total)