Viewing 15 posts - 1,441 through 1,455 (of 1,825 total)
Do not use database locking for this. You need to implement your own locking strategy.
See this link for a writeup of your options.
October 5, 2009 at 4:14 am
Try this link
http://www.simple-talk.com/sql/t-sql-programming/concatenating-row-values-in-transact-sql/
October 5, 2009 at 4:08 am
Cant take the credit for it ...
http://windowsitpro.com/article/articleid/14267/how-can-i-calculate-someones-age-in-sql-server.html
October 5, 2009 at 2:34 am
Try this for starters...
select Hour = number,
count(date)
from master..spt_values left outer join #temp
on datepart(hh,date)= number
where TYPE='p'...
October 5, 2009 at 2:23 am
Dont discount that possibility that your .Net app could be pulling the rows slower than SSMS
October 2, 2009 at 8:51 am
I think you are wrong in your assessment of round though,
round(60.444445,1) = 60.4
This
PRINT ROUND(ROUND(ROUND(ROUND(ROUND(60.444445, 5), 4), 3), 2), 1)
works because you are rounding a rounded , rounded,...
October 2, 2009 at 4:33 am
Heres how to calculate an age
select CASE
WHEN dateadd(year, datediff (year, d1, d2), d1) > d2
THEN datediff (year, d1, d2) - 1
ELSE datediff (year, d1, d2)
END as Age
I'll take a look...
October 2, 2009 at 4:16 am
Maybe something like this ?
DECLARE @Survey_Thank_You_Page_Config TABLE (
acct_id int,
survey_stub uniqueidentifier,
allow_invitation_forward_flag bit
)
DECLARE @Survey_Page_Detail TABLE (
acct_id int,
survey_stub uniqueidentifier,
page_detail_value int,
page_detail_id int
)
INSERT INTO @Survey_Thank_You_Page_Config (acct_id, survey_stub) SELECT
1, '0C23194A-2A5E-4EEB-9050-930A59E953A7'
INSERT INTO @Survey_Page_Detail (acct_id, survey_stub, page_detail_value, page_detail_id)...
October 1, 2009 at 5:19 am
But according to your query NULL is a equally valid value to update the column to.
I dont know enough about what you are attempting to do but are...
October 1, 2009 at 5:10 am
If you change your update to a select you can see what is happening
DECLARE @Survey_Thank_You_Page_Config TABLE (
acct_id int,
survey_stub uniqueidentifier,
allow_invitation_forward_flag bit
)
DECLARE @Survey_Page_Detail TABLE (
acct_id int,
survey_stub uniqueidentifier,
page_detail_value int,
page_detail_id int
)
INSERT INTO @Survey_Thank_You_Page_Config (acct_id,...
October 1, 2009 at 4:51 am
Just for completeness, quirky merge goes out of order to...
create table #TransTest(
InsOrder integer identity,
TransactionDetailId integer null,
Test ...
October 1, 2009 at 1:54 am
Have a look at my blog entry here which , if i understand you requirement correct should help you nearer your goal
September 30, 2009 at 7:51 am
Apologies for the big lump of code before , kind of obvious that everyone else hasn't gone through the same process i have to reach that point.
Just to recap.
The...
September 30, 2009 at 3:42 am
Presumably you know the first date of the quarter so finding the third thursday would be straight
forward.
September 29, 2009 at 6:39 am
Can you post the same for the months table ?
Even with completely empty KPI table , you should still be getting all the rows in the months table.
September 29, 2009 at 5:59 am
Viewing 15 posts - 1,441 through 1,455 (of 1,825 total)