Viewing 15 posts - 46 through 60 (of 388 total)
The first point is that at some stage you want to SELECT (outside of the CTE) to get some results.
....CTE3 AS
(
Select ( CTE1.Cnt_Column1_Tbl1 - CTE2.Cnt_Column2_Tbl2) -- I get an error...
March 4, 2014 at 6:35 am
kapil_kk (2/10/2014)
Instead of same server location I want to store it to different location. How can I achieve that?
If I've understood correctly, your code works, to save on the database...
February 11, 2014 at 8:43 am
Lowell (2/7/2014)
February 10, 2014 at 7:13 am
Hi Lowell,
Thanks for this idea. I did try almost exactly this, but I was using osql. For whatever reason, I couldn't get the osql call to...
February 10, 2014 at 7:11 am
Jeff Moden (2/6/2014)
As someone that's followed SSC for a number of years, I think there's a danger of the articles becoming a private members club, where the uninitiated are put...
February 7, 2014 at 12:50 am
dwain.c (2/6/2014)
February 7, 2014 at 12:33 am
Damned if you do, damned if you don't!
I find the criticism somewhat harsh. Am I alone in thinking that articles don't have to be exhaustive? I can see...
February 6, 2014 at 1:13 am
Lowell (2/4/2014)
February 5, 2014 at 8:16 am
Are you rolling back your transaction in the CATCH AFTER you write to the error log? i.e. rolling back your record of a problem occuring.
sequence should be I guess
...catch
---...
January 31, 2014 at 7:46 am
p.s. you can also see this visually if you create a diagram, and add the table you're interested in. Then right-click the table and choose 'add related tables.'
January 20, 2014 at 8:34 am
I may be missing your point, but when I go into Tools / Options / SQL Server Object Explorer / Scripting, I can set script indexes to true. From...
January 15, 2014 at 8:02 am
Abu Dina (1/15/2014)
This is my attempt lol:
declare @test-2 float = '1.21793287400577E+15'
select left(cast(CAST(@test as bigint) as varchar(20)), LEN(cast(CAST(@test as bigint) as varchar(20)))-6)
select DATEADD(SS, CAST(left(cast(CAST(@test as bigint) as...
January 15, 2014 at 7:43 am
SELECT dateadd(s,cast(1.21793287400577E+15 AS bigint) / 1000000,'1 jan 1960')
January 15, 2014 at 7:38 am
just going from your definition, I pasted the number into Excel
which gave me
1217932874005770
I then removed the last 6 digits which gave me
1217932874
and finally did a dateadd
SELECT dateadd(s,1217932874,'1 jan...
January 15, 2014 at 7:36 am
liver.larson (10/15/2013)
that's unfortunate. Thanks for replying. I've been wondering about that for a while, but didn't find any threads anywhere on the shortcuts. cheers
You're welcome. As an additional demonstration,...
October 16, 2013 at 12:58 am
Viewing 15 posts - 46 through 60 (of 388 total)