Viewing 15 posts - 2,431 through 2,445 (of 6,486 total)
All right - I will bite. What IS it going to be? The other news I hear about involving Kilimanjaro portray it as being SQL 11, just that...
October 11, 2008 at 7:26 pm
You can implement functionality like a BEFORE trigger using SQL Server's INSTEAD OF triggers. The main difference is that the BEFORE trigger will go ahead and do the insert,...
October 10, 2008 at 4:15 pm
If you just want them in any old order, then it's fairly easy:
declare @fun varchar(4000)
set @fun='';
select @fun= @fun+','+cast(ID as varchar(20)) from employees
select @fun
If you need to concatenate in a specific...
October 10, 2008 at 4:09 pm
rbarryyoung (10/10/2008)
tendayit (10/10/2008)
I added the SET NOCOUNT ON line as someone was saying that it missing was causing the problem.
You may need to move the corresponding SET NOCOUNT OFF to...
October 10, 2008 at 4:05 pm
Now that I reread that - you want all BUT the first column? You then might need to use what I initially gave you and just build the dynamic...
October 10, 2008 at 3:50 pm
You're making contradictory statements. I understand you don't know the column name, but selecting only one column and selecting all columns are conflicting requirements.
In addition - if your first...
October 10, 2008 at 3:47 pm
CrazyMan (10/10/2008)
I need to make the 2 SQL statements into one, is'nt there a MERGE statement on SQL 2005 🙂
Just put them both in a single transaction. Commit only...
October 10, 2008 at 3:32 pm
The correlated sub-queries still bother me - but even with leaving them in - you have an extra reference to the ptEncounter in there I don't think you need:
select...
October 10, 2008 at 2:30 pm
Jeff Moden (10/9/2008)
That would grab /*__*/ if it's on the same line as some code of embedded within a statement.
right! Didn't think of that one....
October 9, 2008 at 7:29 pm
Jeff Moden (10/9/2008)
Vincent Central (10/9/2008)
Thank you all for your replies. I have "coached" the offending...
October 9, 2008 at 7:22 pm
If a good delimiter is that hard to pick up front, then first scan the file to make sure if there are any thorns in the data. If need...
October 9, 2008 at 6:35 pm
rbarryyoung (10/9/2008)
October 9, 2008 at 1:32 pm
Sergiy (10/9/2008)
Matt Miller (10/8/2008)
I would have said CLR, but then again - Sergiy might start foaming at the mouth....:)Why should I?
(just poking fun a little - I know you're...
October 9, 2008 at 8:10 am
The running total solution is described here:
http://www.sqlservercentral.com/articles/Advanced+Querying/61716/%5B/url%5D
October 8, 2008 at 9:15 pm
you're dense-ranking by hour? How about -
select *,
dense_rank() over (order by dateadd(hour,datediff(hour,0,startdatetime),0))
from #FinalValues
Hmm - never mind - sounds like something entirely...
October 8, 2008 at 9:11 pm
Viewing 15 posts - 2,431 through 2,445 (of 6,486 total)