Viewing 15 posts - 7,606 through 7,620 (of 8,753 total)
saxena200 (8/2/2014)
u may want to read the second line of the post dude!; BTW I believe I landed on the wrong place for this kind off question.
Thanks for reading that...
August 2, 2014 at 2:00 pm
Jeff Moden (8/2/2014)
August 2, 2014 at 12:45 pm
Jeff Moden (8/2/2014)
Sean Lange (7/31/2014)
August 2, 2014 at 12:38 pm
Daniel Matthee (8/2/2014)
Eirikur Eiriksson (8/2/2014)
CONVERT(INT,P.[20140728]) + CONVERT(INT,P.[20140804])
Hi Eirikur
I dont fully agree that it has the same flexibility.
For example in my suggestion i can create any date range as...
August 2, 2014 at 11:58 am
saxena200 (8/2/2014)
As report model project is being deprecated in ss2012 - what are the alternatives available for us.
we have highly unstructured database (highly normalised and transactional in nature)
Tabular model is...
August 2, 2014 at 11:24 am
GilaMonster (8/2/2014)
There's no easy way (and the link previously given just shows the queries to fetch the missing index information, which is not what was asked)
Nor being implied either,...
August 2, 2014 at 11:16 am
Jeff Moden (8/2/2014)
Eirikur Eiriksson (8/2/2014)
Update codeUSE tempdb;
GO
SET NOCOUNT ON;
DECLARE @ITER INT = 0 ;
DECLARE @COUNT INT = 100000;
DECLARE @NextId INT = 0...
August 2, 2014 at 10:20 am
TomThomson (8/2/2014)
Evil Kraig F (8/1/2014)
August 2, 2014 at 8:24 am
This is simple, run the query with "Results to Grid", right click on the results and select Save Results As..
😎
August 2, 2014 at 6:32 am
Just to further on the explanation with a quick example:
😎
USE tempdb;
GO
CREATE TABLE dbo.MY_IDENTIY
(
MY_IDENTITY_ID INT IDENTITY(1,1) NOT NULL CONSTRAINT...
August 2, 2014 at 6:01 am
August 2, 2014 at 5:49 am
Would have thought it would be in the sys schema in the master database, that is master.sys.sp_MSdistribution_cleanup
😎
August 2, 2014 at 5:36 am
You might want to try something like this:
😎
USE tempdb;
GO
CREATE TABLE dbo.TBL_PLANT
(
PLANT_ID INT IDENTITY(1,1) NOT NULL CONSTRAINT PK_DBO_PLANT_PLANT_ID PRIMARY KEY CLUSTERED
,PLANT...
August 2, 2014 at 5:23 am
Quick solution, returns the hour + time fraction (minutes and seconds / 3600)
😎
USE tempdb;
GO
DECLARE @DATE_VAL DATETIME = '2014-07-29 08:16:31.000'
SELECT @DATE_VAL
SELECT DATEPART(HOUR,@DATE_VAL) + (DATEDIFF(SECOND,'00:00:00.000',DATEADD(HOUR, - DATEPART(HOUR, CONVERT(time(3),@DATE_VAL)),CONVERT(time(3),@DATE_VAL))) / 3600.0)
Result
8.275277
Edit: Oops, feel...
August 2, 2014 at 4:03 am
Sean Pearce (8/2/2014)
GilaMonster (8/1/2014)
August 2, 2014 at 3:57 am
Viewing 15 posts - 7,606 through 7,620 (of 8,753 total)