Viewing 15 posts - 2,521 through 2,535 (of 13,469 total)
also be careful; I know this is a common homework question in some SQL classes in India, and you don't want to grab someone elses solution.
you want to learn...
February 12, 2014 at 7:10 am
ok several dumb questions here:
why do you need to do work via SSMS as different users? why not have a superuser do all the work?
why cna you not simply use...
February 12, 2014 at 6:33 am
can you post the ACTUAL execution plan? there's gotta be a difference between estimated and actual to explain such a huge difference.
the estimated plan thinks it will return one row,...
February 12, 2014 at 6:21 am
I don't see any reason to use a cursor or lopp structure here;
you can do it all in a single pass.
since the proc definitions can be large, you'd want to...
February 12, 2014 at 5:53 am
Evil Kraig F (2/11/2014)
SSMS. Open database, click on tables. Go to Object Explorer Details window on right. If you...
February 11, 2014 at 2:28 pm
good start Knives;
so here's my same query, with your updated data in it;
so if you run this and look at the data, does it produce the desired results?
code]
;WITH
TENS...
February 11, 2014 at 2:25 pm
can you convert that into a CTE or insert statemetns, the way i did?
February 11, 2014 at 12:27 pm
Knives85 (2/11/2014)
The code you posted I...
February 11, 2014 at 11:45 am
took me a bit for this one; this seems to do the whole shebang
;WITH
TENS (N) AS (SELECT 0 UNION ALL SELECT 0 UNION ALL...
February 11, 2014 at 10:31 am
i slapped together a TSQL way to script out a table , so something like this might help; you'll run into issues if the generated scripts are not in foreign...
February 11, 2014 at 10:18 am
well i've only done one piece of it...adding the date;
i have a simple macro i use to dump typical copy/paste data and turn it into a CTE, so coming up...
February 11, 2014 at 10:00 am
I agree with Welsh Corgi; this sounds like a one time comparison, so there's no real need to add a linked server.
I would use the Import wizard, just has Welsh...
February 11, 2014 at 9:18 am
yep , a tally table, combined with a dateadd seems to be what you are after.
I just put together an example, but you'd use your own tally table, and...
February 11, 2014 at 9:07 am
don't get caught up staring at the percentages; they have to add up to 100, so just because something is 75% doesn't mean it's bad, it just means that's where...
February 11, 2014 at 8:09 am
no; since the leading edge of the first index has the same column, you don't need another index;
if there are WHERE statments on ColumnB only, then an idnex on just...
February 11, 2014 at 7:47 am
Viewing 15 posts - 2,521 through 2,535 (of 13,469 total)