Viewing 15 posts - 24,511 through 24,525 (of 26,490 total)
Sergio Lugo (6/30/2008)
I use this formula:
Age = floor(datediff(day, [DateOfBirth], getdate())/(365.25))
You can also put it in a calculated column.
It works (I think) because one year actually has 365.25 days......
June 30, 2008 at 3:58 pm
After seeing this error in another forum thread, I have 2 possibilities. One, the recovery model being used has changed on the database. Two, a BACKUP LOG WITH...
June 30, 2008 at 3:30 pm
Does this help you with getting you where you need to go?
create table #ActiveStatus (
AcctId int,
ActiveStatus bit not null, -- 1 =...
June 30, 2008 at 2:56 pm
Is this regardless if it also went inactive during that same time (ie does it matter the order of active/inactive)?
😎
June 30, 2008 at 2:42 pm
Have you run a dbcc CheckDB on the database? Read BOL first, as you only want to see if there are any errors, you don't necessarily want to fix...
June 30, 2008 at 2:25 pm
To make sure anyone who helps you is on the same page a little more info is required. If you could provide the DDL (create statement for the table(s)),...
June 30, 2008 at 2:19 pm
Have check the system while this query is running to see if there are any blocked processes?
😎
June 30, 2008 at 2:12 pm
Start with this and do a lot of testing. You may need to tweak it as I did not do a lot of testing so its accuracy may vary.
declare...
June 30, 2008 at 2:09 pm
Now, how would you like to see the result returned? If it is a single number value, how would you distinguish between 1 day, 1 week, 1 month, 1...
June 30, 2008 at 1:21 pm
Peggy Rowles (6/30/2008)
June 30, 2008 at 12:05 pm
Here is what I think may have happened, and it will require you to run a full backup to restart your backup chain. It sounds like the recovery model...
June 30, 2008 at 11:59 am
What recovery model is the database using?
😎
June 30, 2008 at 11:23 am
If Pkg_Per is defined like this: Pkg_Per decimal,
Then I know the problem. The problem is the default definition for decimal, if not explicitly defined, is like defining as (18,0)...
June 30, 2008 at 10:49 am
Doesn't tell me much, decimal what; decimal(10,3), decimal(3,2)...
😎
June 30, 2008 at 10:41 am
Also, how are these defined: Installed_Clients Targetable_Clients ?
😎
June 30, 2008 at 10:25 am
Viewing 15 posts - 24,511 through 24,525 (of 26,490 total)