Viewing 15 posts - 1,051 through 1,065 (of 1,473 total)
In addition, I'd recommend that you make choosing a clustered index a fundamental part of the design.
This is probably one of my own biggest pet peeves. I may not...
November 25, 2008 at 10:10 am
Well... no... but...you see... what had happened was... there was this thing... and... LOOK OUT A BUTTERFLY!
November 24, 2008 at 11:47 am
@AllMarketsCount is 16 and @UploadedMarketsCount is 6.
IF @AllMarketsCount = @UploadedMarketsCount
This is returning 0, which is correct, however, if I change the "=" to for example "<", the result is still...
November 24, 2008 at 11:27 am
There, I feel better now.
Haha, I was wondering if you'd throw down on this one :w00t:. I don't disagree that aliases are better when they're descriptive. ...
November 24, 2008 at 11:23 am
If I've gotta join it to anything, it's getting aliased. Which means, you're correct, I've probably never used a 5 parter either, didn't really think about it =) ...
November 23, 2008 at 12:38 am
MyServer.AdventureWorks.dbo.Products.ProductID
Server.Database.Schema.Table.Column
You use it in linked server queries.
November 22, 2008 at 3:01 pm
Good info Lynn, thanks.
Just to clarify though, 3/4/5 part naming in the FROM clause isn't being touched, this just seems to imply that they want you to alias the tables...
November 22, 2008 at 11:29 am
A few things:
1. Please refer to the article in my signature for how to post sample data in future posts. (Your sample data will end up looking like...
November 22, 2008 at 11:20 am
The only part of that proc that should cause a lock (to the best of my knowledge anyways) is the update statement. Even then, that should be a...
November 22, 2008 at 10:53 am
Actually, I take that back, I've actually been told that it's best to use FULLY qualified names (which I would alias immediately of course). IE.
ServerName.DatabaseName.Schema.Table.Column.
November 22, 2008 at 10:41 am
Also, keep in mind that you can always use GETDATE() within a stored procedure to grab the current Date/Time without having to pass it in.
November 22, 2008 at 10:37 am
Lynn,
Where did you read this? Everything I've ever read suggests 3 part naming due to different schemas.
November 22, 2008 at 10:22 am
A temp table and the running totals method should handle this with no need for a cursor or a correlated subquery. You'll also get the additional benefit of being...
November 21, 2008 at 10:24 am
Oops, missed the first line in your request :blink:
In any case, you have a "go" in the middle of your script. This changes your scope and causes your variable...
November 21, 2008 at 9:00 am
First, due to the fact that you need the table for a few days, scrap the ideas of using a table variable and a local temp table which will go...
November 21, 2008 at 8:36 am
Viewing 15 posts - 1,051 through 1,065 (of 1,473 total)