Viewing 15 posts - 6,706 through 6,720 (of 26,490 total)
PSB (4/17/2014)
SELECT DATEADD(hh,-5,dateadd(s, convert(bigint, 1397750400000) / 1000, convert(datetime, '1-1-1970 00:00:00')))worked for me!
So the BIGINT value was actually milliseconds since midnight 1970-01-01, not minutes. Good to know.
April 17, 2014 at 11:09 am
Since mirroring requires using the full recovery model you need to have scheduled periodic transaction log backups running to manage the size of your transaction log file. Without regularly...
April 17, 2014 at 11:04 am
defyant_2004 (4/17/2014)
All log files up to the point of the NEW FULL database backup are unusable and could be deleted. Even...
April 17, 2014 at 10:59 am
PSB (4/17/2014)
select DATEADD(Minute, 1397750400000, '1970-00-01')Getting an overflow error .
Arithmetic overflow error converting expression to data type int.
Yep, told you that would happen earlier.
Now, what date and time does 1397750400000...
April 17, 2014 at 10:49 am
gbritton1 (4/17/2014)
Well, OK. Just do it in a loop, adding portions of bigint that fit into an integer to an accumulating date field.
Okay, using what for a base? ...
April 17, 2014 at 10:47 am
ScottPletcher (4/17/2014)
Lynn Pettis (4/17/2014)
ScottPletcher (4/17/2014)
Lynn Pettis (4/17/2014)
ScottPletcher (4/17/2014)
April 17, 2014 at 10:44 am
Unfortunately, you get an overflow error when trying to convert the BIGINT value provided to an INT value when using DATEADD.
April 17, 2014 at 10:35 am
ScottPletcher (4/17/2014)
Lynn Pettis (4/17/2014)
ScottPletcher (4/17/2014)
April 17, 2014 at 10:28 am
Also, what date and time does the value provided equate?
April 17, 2014 at 10:01 am
You could probably do an in place upgrade. You could test that on a test system to be sure it works.
April 17, 2014 at 9:46 am
ScottPletcher (4/17/2014)
April 17, 2014 at 9:24 am
Try this and let us know the results:
select
schema_name(schema_id) As SchemaName,
name As ObjectName,
type_desc as ObjectType
from sys.all_objects where name = 'HighCharacter'
April 17, 2014 at 8:16 am
Simplest way to fix this, remove the token 'already' as this appears to exist in all the messages. It doesn't make any sense to me to search for 'already'...
April 17, 2014 at 6:54 am
Yes, the queries used to define views will take advantage of the indexes on the underlying tables if they assist in the return of data from those tables.
April 17, 2014 at 6:23 am
Well, you provided DDL and sample data, but I'm not quite sure what you expect as output. Please provide expected results based on the sample data you provided.
April 17, 2014 at 6:21 am
Viewing 15 posts - 6,706 through 6,720 (of 26,490 total)