Viewing 15 posts - 2,656 through 2,670 (of 3,011 total)
A 78 GB log file for a 3 TB database is less than 3% the size of your data, so that seems far too small. You probably need 10% or...
November 5, 2007 at 12:46 pm
Just sounds like a stupid example. If you are doing log backups, you want to do them often.
November 1, 2007 at 1:34 pm
Avraham de-Haan (10/23/2007)
HexName ...
October 24, 2007 at 12:43 pm
What output do you get when you run this query?
[font="Courier New"]select HexName=convert(varbinary,name), name from master.dbo.sysdatabases order by name[/font]
October 23, 2007 at 4:22 pm
select
Avg_time =
avg(convert(numeric(10,8),round(datediff(ms,dateadd(dd,datediff(dd,0,a.DT),0),a.DT)/3600000.0000,8)))
from
MyTable a
where
Col_a in ('a', 'b', 'c', 'd')
October 18, 2007 at 4:42 pm
Marcus Farrugia (10/18/2007)
Matt your reply was the one I went with that ended up working great.
ALZBA I wasn't sure how to apply your solution, because I'm...
October 18, 2007 at 11:43 am
I think this does what you want.
select
TIME_NUMERIC,
-- Convert from number back to datetime on day 1900-01-01
BACK_TO_TIME = dateadd(ms,TIME_NUMERIC*3600000.0000,0),
DT
from
(
select
TIME_NUMERIC =
-- Extracts time only from date and converts it to numeric
convert(numeric(10,8),round(datediff(ms,dateadd(dd,datediff(dd,0,DT),0),DT)/3600000.0000,8)),
DT
from
(
-- Test...
October 17, 2007 at 3:57 pm
There are many good reasons to have a date dimension table, so you might as well have one.
The following should give you a good start on creating a date dimension...
October 15, 2007 at 11:57 am
JonJon (10/10/2007)
It needs to include
Day, Month, Year, Fiscal Day, Fiscal Month, Fiscal Year, Week Number and Day...
October 12, 2007 at 4:05 pm
I think this would be much simpler:
[font="Courier New"]Declare@RequestID int,
@ErrorMessage varchar(250),
@SubstitutionProcedureName varchar(250),
@SQLString nvarchar(500),
@ParmDefinition nvarchar(500),
@DynErrorMessage varchar(250),
@RowCount int
execute @SubstitutionProcedureName
@RequestID = @RequestID, @ElementID = @UnDelimitedValue, @RowCount= @RowCount OUTPUT, @ErrorMessage = @ErrorMessage OUTPUT[/font]
October 12, 2007 at 8:13 am
Why do you want to use sp_executesql to execute the procedure?
October 11, 2007 at 4:05 pm
If you really feel the need to build a new database everyday, it would be simpler to just drop the old database when the load is done, and rename the...
October 10, 2007 at 11:56 am
This works well for me
1. Set delivery date
2. Do some programming
3. Test
4. If test is good, go live, else go live
5. Define requirements
6. Repeat 1 through 5 until system is...
October 5, 2007 at 4:23 pm
Carl Federl (10/4/2007)
A: Three - it takes three Oracle DBAs to do anything.
Q: How many SQL Server...
October 4, 2007 at 9:39 am
Viewing 15 posts - 2,656 through 2,670 (of 3,011 total)