Viewing 15 posts - 211 through 225 (of 1,169 total)
Interesting, thanks.
If the expression is a string literal, it must resolve to a datetime. - https://msdn.microsoft.com/en-us/library/ms186819.aspx
February 21, 2016 at 9:37 am
Consider that SQL Server retains the 900-byte limit for the maximum total size of all index key columns.
https://technet.microsoft.com/en-us/library/ms191241(v=sql.105).aspx
February 17, 2016 at 9:02 am
prem.m38 (2/17/2016)
Thanks for your script, In my environment we have partitioned the tables with business_date column so we need to keep yesterday data uncompressed and all previous date should...
February 17, 2016 at 5:45 am
Hi,
I uploaded a script that I used to use for compressing databases. I had a similar issue like yours.
February 17, 2016 at 1:25 am
I run your query on sql server 2014 and it works.
What is the error message you have when you run it on sql 2012 ?
February 17, 2016 at 1:01 am
It should be something like these queries:
select count(distinct Customer_id) [Number of customers]
from [dbo].[ordertable] t
where convert(date,Order_Date) between '2016-01-01 00:00:00.000' and '2016-01-31 23:59:59.997';
;with cte1 as
(
select Customer_id, count(*) [Count]
from [dbo].[ordertable] t
where convert(date,Order_Date) between...
February 17, 2016 at 12:45 am
spaghettidba (2/16/2016)
I recommend that you look at the utilization of...
February 16, 2016 at 7:20 am
Try to replace the cartesian products (cross joins) with inner joins in your querys. It could make your query faster.
See this https://technet.microsoft.com/en-us/library/ms191472(v=sql.105).aspx
February 16, 2016 at 5:41 am
Was this inspired from QotD "Converting hex values" on Feb 9 ?
"repeating is the mother of knowledge"
Thanks
February 15, 2016 at 1:23 am
Sergiy (2/9/2016)
Igor Micev (2/9/2016)
February 9, 2016 at 9:05 pm
Sergiy (2/9/2016)
Igor Micev (2/9/2016)
Then, won't you meet that problem again?
With my approach?
No.
Read it again:
1. Create a new table with desired table design.
2. Start populating the new table with portions of...
February 9, 2016 at 8:11 pm
Sergiy (2/9/2016)
Igor Micev (2/9/2016)
The table is operational.
Yeah, right.
I once disabled an index which was a duplicate of another one and was only taking space without any benefit (as I...
February 9, 2016 at 7:25 pm
Sergiy (2/9/2016)
Igor Micev (2/9/2016)
-- Steps:
-- 1. Script the...
February 9, 2016 at 6:44 pm
I don't say Sergiy approach is not going to work, but it's more risky. Simply you can do it without dropping the table.
-- Steps:
-- 1. Script the Drop and Create...
February 9, 2016 at 3:54 pm
You cannot. You should use IF statement to control the flow.
The CASE statement returns a result expression based on the input, so you couldn't make transactional operations in the...
February 9, 2016 at 11:26 am
Viewing 15 posts - 211 through 225 (of 1,169 total)