Viewing 15 posts - 2,911 through 2,925 (of 6,486 total)
Todd - when you use the "complex expression" version of CASE, don't list the column name ouside of the WHEN.
As in -
case ...
June 13, 2008 at 1:47 pm
Kevin Rathgeber (6/13/2008)
New times for the...
June 13, 2008 at 1:38 pm
Other than the variable about whether it's faster to select out what you want to keep, or delete out the stuff you don't want, I'd say most of the workable...
June 13, 2008 at 1:32 pm
Hmm - I see you added some details. Try this on for size - see if this gets you started. No loops or cursors.
drop table #MySubMasterList
drop table #tmpperson
drop...
June 13, 2008 at 12:44 pm
very nice idea Michael. Order by does guarantee that the identities will be assigned in that order, so that's a very nice catch.
June 13, 2008 at 11:40 am
The best way to do that might be to set it up to be able to run from Master, but using the current DB's context.
Take a look at the following:
http://weblogs.sqlteam.com/mladenp/archive/2007/01/18/58287.aspx
June 13, 2008 at 11:09 am
Are the other columns involved in the insert enough to be used as a natural key? I understand that would be a multi-column join, and probably not the most...
June 13, 2008 at 10:54 am
So there will an auto-number available in the master list when you want to tackle this?
The thing is I am not doing this sequentially, I want to select every 7th...
June 13, 2008 at 10:49 am
This might not apply in a lot of cases, but would it make sense to have a "throwaway" column that would allow you to get the "old" ID involved? ...
June 13, 2008 at 10:36 am
Thankfully - you don't have to. Peter Larsson published an article on his solution for dynamically doing this kind of stuff...Pretty slick if you ask me...
http://www.sqlservercentral.com/articles/Advanced+Querying/pivottableformicrosoftsqlserver/2434/%5B/url%5D
June 13, 2008 at 10:24 am
Jeff Moden (6/13/2008)
June 13, 2008 at 10:11 am
If you use database queries/web queries from the import external data, yes - refreshing data is very simple. By default - it would refresh each time you open the...
June 13, 2008 at 9:52 am
Cross-post. Try to avoid that - it dilutes the answers. Most of the regulars read all forums, so it's not going to help (it might actually annoy some...
June 13, 2008 at 9:49 am
A former manager used to say - "there really are only two kinds of names for jobs that don't allow you to really take time off: one is jail,...
June 13, 2008 at 9:39 am
Viewing 15 posts - 2,911 through 2,925 (of 6,486 total)