Viewing 15 posts - 721 through 735 (of 1,233 total)
Just to make your code a little cleaner,
DECLARE @T AS TABLE (y INT NOT NULL PRIMARY KEY);
DECLARE @cols AS NVARCHAR(MAX)
,@y AS INT /* not used */
,@sql AS NVARCHAR(MAX);
Note that...
June 3, 2015 at 1:59 am
If you are referencing a large dataset through a linked server, especially if used multiple times in a join condition, you are better served with a temp table. Also a...
June 2, 2015 at 4:50 pm
You mention in your first post " process 500 records." I'd lile to know more what you mean by process.Are you transforming the data in the foreach loop? There is...
May 14, 2015 at 2:29 pm
...
Oh... and I almost forgot (this one is a brilliant). They have some funky "automated" way of creating their DWs but it means that most dimensions are basically cookie...
May 14, 2015 at 1:44 pm
You can also try getting the default value directly from the result of a dataset query. This is a fully dynamic way to get what you want :
SELECTDATEADD(d, -1,
DATEADD(q,DATEPART(q,getdate())-1,CAST(year(getdate()) AS...
May 11, 2015 at 12:01 am
Again, it is doing a clustered index scan (also known as a table scan) instead of using the nonclustered index you created on C6 (with no included columns) because the...
May 8, 2015 at 6:11 pm
Try DBCC OPENTRAN to view any open transaction the machine you are currently connected to.
May 8, 2015 at 6:03 pm
New Born DBA (5/8/2015)
J Livingston SQL (5/8/2015)
New Born DBA (5/6/2015)
May 8, 2015 at 1:13 pm
Lynn Pettis (5/8/2015)
MMartin1 (5/8/2015)
New Born DBA (5/7/2015)
Lynn Pettis (5/7/2015)
New Born DBA (5/7/2015)
Sorry, but I actually spit soda out my nose on this comment:
Well I hope you are OK. 😀
It isn't...
May 8, 2015 at 1:08 pm
Eric M Russell (5/8/2015)
marcia.j.wilson (5/7/2015)
Eric M Russell (2/10/2012)
May 8, 2015 at 1:02 pm
New Born DBA (5/7/2015)
Lynn Pettis (5/7/2015)
New Born DBA (5/7/2015)
Sorry, but I actually spit soda out my nose on this comment:
Well I hope you are OK. 😀
It isn't a system field,...
May 8, 2015 at 12:35 am
neeraj-344433 (5/6/2015)
Hi all,Thanks for your valuable inputs, I was able to fix the performance of the select query using Vertical partitioning.
Thanks again!
For the rest of us who would like more...
May 8, 2015 at 12:06 am
mohanraj.jsp (5/6/2015)
If you open the vs 2008 and add existing item also...
May 7, 2015 at 11:13 pm
marcia.j.wilson (5/7/2015)
Eric M Russell (2/10/2012)
May 7, 2015 at 2:25 pm
I assume the tables are used directly instead of a view. Later, you could possibly add a view that combines date and time columns as one value. Any future uses...
May 6, 2015 at 1:43 pm
Viewing 15 posts - 721 through 735 (of 1,233 total)