Viewing 15 posts - 5,356 through 5,370 (of 6,486 total)
Note that Hugo is referring to the name unquoted, and Jeff is passing it in as unicode char. That would cause the error.
January 9, 2008 at 8:42 am
In your case - what's most efficient is going to be directly related to how big your firstandlast table is. If it happens to be 5000 records, the cross...
January 9, 2008 at 8:34 am
Have you tried casting PIDKEY to integer and then adding 3 to it? I'm not sure I see where the confusion is?
insert myfinaltable
select cast(pidkey as int)+3 as pidkey
from tblsource
January 9, 2008 at 8:16 am
With sesslist(dateshort,datelong,session, [message],rn) as
(
select
cast(date as int) as dateshort,
date as datelong,
session,
[message],
ROW_NUMBER() over (PARTITION by cast(date as int) order by date desc) RN
from #RR s
where not exists
...
January 9, 2008 at 8:04 am
I've had to play with those kind of hierarchies as well, and I ended up going with...BOTH. A column that had the "composite key" with all of the...
January 9, 2008 at 7:33 am
Simon - could you post some more specifics as to the DDL of that table (i.e. column names and data types). Ken's correct and the example gives you what...
January 9, 2008 at 7:22 am
It's early - grab some more caffeine - the fog will disperse soon:)
I have weeks like that too!
January 9, 2008 at 6:57 am
Try just simply using an OR:
select a
from tablea
where
(
z=0
and startdate > '2008-01-31'
...
January 9, 2008 at 6:47 am
Thanks for the feedback. Good to know that you got what you needed.
January 7, 2008 at 2:27 pm
The TimeSpan Structure from .NET doesn't serialize into anything compatible in SQL natively. You'd really want to override the ToString method, so that it will return a float in...
January 6, 2008 at 9:58 pm
Actually you're pretty much there. It should look something like this:
delete tableAlias1
from Table1 as tableAlias1
inner join MyView
on TableAlias1.a=MyView.a and
...
January 6, 2008 at 9:26 pm
A few comments:
- the inserted and deleted columns for a given table have the same structure as the table itself, since it has a record of "what was just...
January 6, 2008 at 9:16 pm
Viewing 15 posts - 5,356 through 5,370 (of 6,486 total)