Viewing 15 posts - 31 through 45 (of 241 total)
Can't you just group by YEAR(date) counting distinct dates?
--Vadim R.
July 11, 2019 at 9:45 pm
I still see that link taking me to an article about Data Compression Double Take which seems different than SQL and T-SQL for Beginners or is that where it...
--Vadim R.
July 10, 2019 at 10:00 pm
or LEFT
--Vadim R.
July 10, 2019 at 6:11 pm
There are 7 opening brackets '(' but only 6 closing ')'. I think you need to add closing bracket at the end with alias.
--Vadim R.
June 28, 2019 at 7:22 pm
Thanks BrownCoat42, and yes we have both of those: 4k unit size and a folder with a lot of files. Also, this server is on receiving end of transactional replication:...
--Vadim R.
June 27, 2019 at 4:30 pm
I’m still on 2008 R2 and what I wrote below may no longer apply to later versions, I don't know, but here is what happened to me a few months...
--Vadim R.
June 25, 2019 at 10:30 pm
What is the datatype of the date column in your table?
Does "Between 201812 and 201905" means include all days of Dec 2018 and all days of May 2019?
--Vadim R.
June 20, 2019 at 7:53 pm
I wonder if grouping is even needed. It looks like one row = one loan. Is this true, komal145? Or there are multiple rows with same loan number but different...
--Vadim R.
June 19, 2019 at 10:25 pm
Session level app lock is what came to my mind. It will prevent other sessions to execute SP until it finishes.
--Vadim R.
June 19, 2019 at 7:00 pm
If you want to run this regularly & avoid inserting the same row more than once, it is likely that this code will need to be refined.
Yes, of course,...
--Vadim R.
June 18, 2019 at 7:17 pm
Something like this:
INSERT INTO Archive_table (<column_list>)
SELECT (<column_list>)
FROM TableA AS A
INNER JOIN TableB AS B
...
--Vadim R.
June 18, 2019 at 6:22 pm
Thank you, Jeff, very useful info.
--Vadim R.
June 17, 2019 at 7:48 pm
It doesn't persist. Once session is over that specific number can be re-assigned to another session.
--Vadim R.
June 13, 2019 at 5:53 pm
Use Convert function. It's in Jeff's example as well.
CONVERT(CHAR(10), <your date here>, 101)
--Vadim R.
June 13, 2019 at 5:01 pm
Viewing 15 posts - 31 through 45 (of 241 total)