Viewing 15 posts - 5,161 through 5,175 (of 5,685 total)
HoustonFirefox (11/1/2010)
November 1, 2010 at 11:28 am
Temp tables and table variables act differently with different scopes.
The CREATE TABLE #tmp is equivalent, in the scope of the script, to CREATE TABLE tbl_table. It's not a singular...
November 1, 2010 at 11:12 am
Sounds like parameter sniffing is the culprit, offhand. As mentioned above, the .sqlplan's for your results from the above two items would help determine that.
Also, check out this...
November 1, 2010 at 10:58 am
My personal preference is a staging or temporary table to drop the load into. The reason for this is that at any specific point of failure you don't have...
November 1, 2010 at 10:53 am
<--
Hydra... um... noone here has *any* idea why it's slow, though they might have ideas on what you should look for. But, the solution? We don't even know...
October 29, 2010 at 11:29 pm
Dang Jeff, much nicer than mine. I'd forgotten that even existed.
October 29, 2010 at 9:37 pm
Ricardumus (10/29/2010)
Thank you Craig. While useless, you have helped me. 🙂Now if i could only remember how to mark threads as solved. :-/
Hopefully the answer was useless, and not the...
October 29, 2010 at 9:35 pm
HelsUK (10/29/2010)
October 29, 2010 at 5:03 pm
Sorry for that then, the hard coded values are usually reserved for homework problems.
This looks a LOT like a QotD type of trip up. Your boss quizzing your skills...
October 29, 2010 at 4:59 pm
Ricardumus (10/29/2010)
Hello.I just need a simple description of this query and its function.
ROUND(DATEDIFF(d,'12/01/2009', DATEADD(d,-1,'12/01/2010'))/365.00,1) AS [Years]
It's a trick question. What textbook and chapter? We can probably help...
October 29, 2010 at 4:47 pm
HelsUK (10/29/2010)
I have a SSIS package that should truncate my staging table, reseed the identity value to 100 and then insert some data into the staging table.
The problem is that...
October 29, 2010 at 4:28 pm
Alvin Ramard (10/29/2010)
October 29, 2010 at 4:08 pm
Set zoom to visible level (75%-100%).
Database Diagram menu, copy diagram to clipboard.
MSPaint - Paste - Print.
Perfect? No. But it works.
October 29, 2010 at 4:03 pm
I believe this is because SSIS won't refresh metadata at runtime. This part confuses me:
Weirdly, it did work twice - the only change I made was to add 'GO'...
October 29, 2010 at 3:58 pm
With no test data you'll have to adapt this to your DDL/structure, but this is one approach:
SELECT
REVERSE( LEFT( REVERSE(Col1), CHARINDEX( '.', REVERSE(Col1) ) -1 ) ),
count(*) as NumOccur
FROM
table
GROUP BY
REVERSE( LEFT(...
October 29, 2010 at 3:25 pm
Viewing 15 posts - 5,161 through 5,175 (of 5,685 total)