Viewing 15 posts - 4,531 through 4,545 (of 6,486 total)
MrBaseball34 (2/26/2008)
These tables are not related and contain no foreign keys to each other.
Then whatever you're passing as @storekey is not returning anything.
Edit: as in - it matches no record...
February 26, 2008 at 1:31 pm
You already have one example (look at GilaMonster's syntax above as to the "delimited" example).
As to the pivoting example - Here's as good an example as any.
http://www.daymap.net/blog/?p=6
Posting your table specifics...
February 26, 2008 at 1:29 pm
Deleting rows in a table with an identity value doesn't change the next identity value. The value is preserved, so the identity is maintained.
Unless you TRUNCATE TABLE...
February 26, 2008 at 1:07 pm
You'd want to look up two separate concepts (different sides of the same coin).
If you plan on doing this a lot - you want to set up what...
February 26, 2008 at 1:05 pm
Not to be contrary - but three and four-part names anywhere other than the FROM clause is now considered deprecated. The "correct" syntax these days is to use multiple...
February 26, 2008 at 12:57 pm
What are you trying to do? Just curious.
If you have access to VS2005 Pro or better, you also have access to build custom aggregate functions, which will also give...
February 26, 2008 at 12:46 pm
GilaMonster (2/26/2008)
Personally, I've not found views to be a problem, unless there are layers upon layers of views. If views reference other views which...
February 26, 2008 at 12:27 pm
GilaMonster (2/26/2008)
Order by in an insert have no meaning, and if you don't specify the order in a select, no order is guaranteed.
True with one caveat - ORDER BY during...
February 26, 2008 at 12:15 pm
Good! glad that worked....
February 26, 2008 at 11:50 am
Why not just apply the formatting on the UI side?
What's being displayed is what the DB is storing (money is essentially the same as a decimal value with a constant...
February 26, 2008 at 11:47 am
What happens to make it "not work"? Looks to me that it's valid, although it looks like it should be rewritten as
select Substring(J.MAP_NUM, 1, 4) as MAP_NUM_LIMITED,
...
February 26, 2008 at 11:25 am
It does - and so your error would not seem to make sense. How are you running this?
I sometimes just highlight what I want to try, and...
February 26, 2008 at 10:44 am
Bob - try this one:
declare @start datetime
set @start = dateadd(d, (1-datepart(dw,getdate())), getdate())
select dateadd(week,-1*number,@start) from spt_values where type='p' and number<11
I'm using the spt_values system table as a "tally" table.
Also - Just...
February 26, 2008 at 10:00 am
Your issue is likely due to some of your full names not having a comma. That would result in CHARINDEX returning 0, and you passing a negative length into...
February 26, 2008 at 9:40 am
I know I'm a tad bit late to the party as well - but is there any chance to think toward improving "accessibility" As in -
http://www.section508.gov/%5B/url%5D
As in -...
February 26, 2008 at 9:32 am
Viewing 15 posts - 4,531 through 4,545 (of 6,486 total)