Viewing 15 posts - 13,756 through 13,770 (of 13,848 total)
Hi Kristin, no problem. I don't think I was too far away with my last attempt
Here's a refined version (it...
August 10, 2004 at 6:59 pm
I'm sure that we can help you out with just a bit more information.
1) What is the link between Records and Chains?
2) What do you want to set Records.Chainpath to?
3)...
August 9, 2004 at 5:47 pm
It's not as easy as you might expect. Here's a bit of SQL that might get you heading in the right direction:
select getdate() as datetime, cast(floor(cast(getdate() as float)) as...
August 3, 2004 at 7:48 pm
Something like this should do the trick:
declare @date1 datetime
set @date1 = '20050228'
select dateadd(day,-day(@date1),dateadd(month,2,@date1))
Phil
August 2, 2004 at 7:40 pm
Hi Nathan
I've had to solve this before. Try this:
WHERE LastName = IsNull(@var1,LastName) AND
IsActive = IsNull(@var2, IsActive)
Phil
August 1, 2004 at 10:38 pm
I don't think there's a really nice solution to this one. But this might work:
select t1..., t2..., t3...
from
t1 inner join t2 on t1.id = t2.id cross join...
August 1, 2004 at 10:22 pm
"... If so, make sure you create an update trigger ..." - no need. Just change the create trigger line as follows:
CREATE TRIGGER dbo.EmailINS ON Email FOR INSERT, UPDATE
Phil
July 29, 2004 at 6:02 pm
Something like this should get you most of the way:
create TRIGGER [name] ON
FOR INSERT
AS
update
set created_by = SUSER_SNAME(),
last_modified_by = SUSER_SNAME(),
date_created = GETDATE(),
date_last_modified = GETDATE()
from inserted
where .Seqno = inserted.seqno;
create...
July 29, 2004 at 1:33 am
Hmmm - not quite sure what you're after. Do you have a 'person' table containing an e-mail field and want to maintain a separate table which contains just e-mail address...
July 29, 2004 at 1:26 am
Hi Anthony
Try using the decimal function:
Eg
select cast(14.1 as decimal(19,7)) as dp7, cast(14.1 as decimal(19,2)) as dp2
etc.
Check BOL for a full description of the function arguments.
Regards
Phil
July 28, 2004 at 10:56 pm
Hi Suhaimij
Can you post the view design here?
Regards
Phil
July 27, 2004 at 9:40 pm
Check out this recent script for ideas:
http://www.sqlservercentral.com/scripts/contributions/1141.asp
It certainly does some of what you're after.
Regards
Phil
July 27, 2004 at 8:44 pm
David
You can call the getdate() function at any time and it will return the current system datetime. It is a built-in SQL Server function and therefore does not need...
July 27, 2004 at 5:54 pm
Perhaps I should have signed myself
PhilfromEnglandbutlivinginOz ![]()
July 27, 2004 at 5:26 pm
Viewing 15 posts - 13,756 through 13,770 (of 13,848 total)