Viewing 15 posts - 16 through 30 (of 1,478 total)
Here is one way of doing it:
with MyCTE as (
select EmployeeID, StartDate, EndDate, LAG(EndDate, 1, NULL) OVER (PARTITION BY EmployeeID ORDER BY StartDate) as PrevEndDate
from...
February 9, 2017 at 10:14 am
You can do it like that:
select * from sysobjects where (name like = @Name OR @Name is null) or (type =@Type OR @Type is null)
February 9, 2017 at 10:03 am
There is a very little known feature that is called - Scalable shared databases. It lets several servers use the same database if it is a read only database. I...
February 8, 2017 at 12:46 am
Take a look it this URL - https://www.sqlskills.com/blogs/jonathan/extended-events-dmvs/ It contains all the information that you need in order to create such a query.
Adi
February 7, 2017 at 4:35 am
In that case, make sure that the specified path (D:\data) exists. If it does exist check that there isn't another file there with the name EAMTEST_index.ndf. Another thing that you can...
February 1, 2017 at 7:21 am
Try to change this part - D:\\Data\\EAMTEST_index.ndf to D:\\Data\EAMTEST_index.ndf (you have one extra \).
Adi
February 1, 2017 at 7:14 am
January 31, 2017 at 4:16 am
my Goal is to insert the results from a DBCC CHECKDB into a table that...
January 31, 2017 at 4:11 am
January 31, 2017 at 3:42 am
So...
January 31, 2017 at 3:36 am
and not valueY from
<Property Name="paramB" Value="valueY" />
How...
January 24, 2017 at 6:26 am
I know that this is probably not what you were expecting, but I don't update statistics of every table that had modifications. I have daily job and weekly job that...
January 24, 2017 at 6:11 am
You can use the convert function with the third parameter - style. According to your example you should use style number 3:
create table #Demo (c char(8))
insert into #Demo (c)...
December 13, 2016 at 4:30 am
Again, I'm not sure that I understand you. Your table has no dates column and yet from your last respond it seems that you want to get the sum...
December 7, 2016 at 4:38 am
Sorry but I don't understand the last respond. What do you mean only opening hours? Datediff function can get 2 points of time and calculate the difference between...
December 7, 2016 at 4:05 am
Viewing 15 posts - 16 through 30 (of 1,478 total)