Viewing 15 posts - 331 through 345 (of 1,170 total)
Designing your tables with PKs is a best practice.
You should not have PKs only for staging tables.
This article is very good - http://www.mssqltips.com/sqlservertip/1254/clustered-tables-vs-heap-tables/
Igor Micev
May 8, 2015 at 5:33 am
From your questions, it seems the #TMP table is causing the slowing down.
Is it indexed by ID?
You can create indexes on #temp tables.
Igor Micev
May 8, 2015 at 1:48 am
SELECT
{ [Project].[Project Phase].Members, Project.Cost.Cost } ON COLUMNS,
NON EMPTY
{ [Project].[Department].Children, [Date].[Month].[Month] } ON ROWS
FROM theCube
Igor Micev
April 30, 2015 at 1:34 am
Grant Fritchey (4/27/2015)
TheSQLGuru (4/27/2015)
Igor Micev (4/27/2015)
You can use the NOLOCK hint for srno without worries because u're reading an identity value.Can you please explain that statement Igor??
Yeah. I'm unclear on...
Igor Micev
April 28, 2015 at 3:18 am
You can use the NOLOCK hint for srno without worries because u're reading an identity value.
Igor Micev
April 27, 2015 at 1:45 pm
Ok,
If you create an index on Lotno,Kapan and Position it should improve the selection in the where condition.
where Lotno=@Lotno
...
Igor Micev
April 27, 2015 at 12:03 am
Are you updating those 60K rows one by one?
If so than it's expected to be slow. You have to run a set-based update query.
Igor Micev
April 26, 2015 at 11:52 pm
That is not a big table, regardless of the 200 million rows. It's size isn't bigger than 5GB. You'd better do the copy in batches of let's say 1 million...
Igor Micev
April 26, 2015 at 10:47 pm
Hi
If you proceed with the upgrade, it will make a backup of the old version into a Backup folder of the solution.
Igor Micev
April 26, 2015 at 10:34 pm
Why do you need it? It's a certification for SQL Server 2008. I wonder if you can do it still.
You'd better switch on 70-461,70-462,...
Igor Micev
April 26, 2015 at 10:18 pm
Check up what shpaghettidba suggested to, and you can additionally use the REPLACE() function to replace those non-visible characters (usually char(9), char(10) and char(13)) with whitespaces and then TRIM them.
Igor Micev
April 23, 2015 at 3:34 am
Hi,
You have to use dynamically created query and execute it. The query should have @date_from and @date_to. Because you have to get data from CUBE (am I am right?), the...
Igor Micev
April 21, 2015 at 1:15 pm
sharonsql2013 (4/21/2015)
Select DATEPART(WW,GETDATE()) - 1 as Lastweek
Select DATEPART(WW,GETDATE()) - 2 as LastWeek1
Select DATEPART(WW,GETDATE())...
Igor Micev
April 21, 2015 at 12:29 pm
Viewing 15 posts - 331 through 345 (of 1,170 total)