Viewing 15 posts - 271 through 285 (of 330 total)
UPDATE newTable
SET amount = oldTable.Amount
FROM [schema_name].[table_name] newTable INNER JOIN
[database_name].[schema_name].[table_name] oldTable ON oldTable.ID = newTable.ID
January 8, 2009 at 6:21 pm
Farrell Keough (1/7/2009)
It appears to produce the correct results on my DB, but you should check it to be sure.
Not sure why, but ROW_NUMBER() is not recognized and I am...
January 7, 2009 at 1:54 pm
Thanks 🙂 it's been good to learn from you!
I'm pretty much way off topic now, but do you think in reality there should be a 'compilation' step that refactors tvf's...
January 6, 2009 at 12:06 pm
Yep - no worries.
Temp table: 1.218
Table variable: 0.921
I think probably what you wanted me to do instead was to change the 100 to 1000. Then it moves heavily in the...
January 6, 2009 at 9:43 am
TheSQLGuru (1/6/2009)
someone posted an example of how a table variable was faster than a temporary table. It was a meaningless example however
That someone was me. and i did in...
January 6, 2009 at 8:43 am
Ahh I get what you were saying now. Sorry read it differently the first time. It's just where you had the code posted up that required a manually written statement...
January 6, 2009 at 6:43 am
Jeff Moden (1/6/2009)
No, I didn't get your email. I have a pretty agressive spam filter and it sometimes eats the wrong things. Send me a...
January 6, 2009 at 6:39 am
Tom.Thomson (1/6/2009)
January 6, 2009 at 6:05 am
sinureddi (1/6/2009)
But, can DBCC Inputbuffer(SPID) in an inline query?
No - it just gives you what was sent to the server - I wasn't 100% sure where you were coming from...
January 6, 2009 at 4:02 am
Jeff Moden (1/5/2009)
January 6, 2009 at 3:49 am
Erm... that version doesn't actually do what's required does it? What happens if a new type other than 'Loan' or 'Insurance' is added?
Not that the schema makes that a change-free...
January 6, 2009 at 3:13 am
Jeff Moden (1/5/2009)
January 6, 2009 at 3:10 am
As yoda would say 'sense your sql does make not - post table def and data you must. expected results. hmmmmmm'
January 5, 2009 at 5:54 pm
TheSQLGuru (1/5/2009)
January 5, 2009 at 4:19 pm
Viewing 15 posts - 271 through 285 (of 330 total)