Viewing 15 posts - 13,606 through 13,620 (of 15,381 total)
foscsamuels (10/31/2011)
i've never thought of it that way before.
edit -...
October 31, 2011 at 9:57 am
Jeff Moden (10/30/2011)
CREATE FUNCTION dbo.StripHtmlTags
...
October 31, 2011 at 9:37 am
foscsamuels (10/31/2011)
huh this produces same error
select cast(DATEDIFF(s, '1/1/1970', '9/1/2011') as int) * 1000
That value is too big for an int which is why it is failing.
Assuming your data is milliseconds...
select...
October 31, 2011 at 9:34 am
I guess i do have stale data. Is your timestamp in milliseconds?
October 31, 2011 at 9:32 am
Here is your sample data with the unix timestamp converted to datetime in sql.
select *, DATEADD(s, CREATED_DT, '1/1/1970')
from filetrans
where created_dt > DATEDIFF(s, '1/1/1970', '9/1/2011')
order by created_dt
October 31, 2011 at 9:25 am
Phil Parkin (10/31/2011)
I'm not familiar with Unix timestamps, but could you use a calendar/dates table (with appropriate 'XTimestamp' column) to help with this?
It is just the number of seconds since...
October 31, 2011 at 9:16 am
From your sample data (nicely done btw) I get three rows.
select dateadd(ss,cast(left(created_dt,len(created_dt)-3) as int),'1970-01-01') as 'Created'
from filetrans
where created_dt > DATEDIFF(s, '1/1/1970', '9/1/2011')
Not really sure what the calculated column you have...
October 31, 2011 at 9:14 am
Does this work for you?
where created_dt > DATEDIFF(s, '1/1/1970', '9/1/2011')
October 31, 2011 at 9:03 am
J Livingston SQL (10/31/2011)
take a look here:it may do what you are looking for
That looks pretty slick. Have you used it?
October 31, 2011 at 8:23 am
No you can't create your own folder under stored procedures. This is where naming and schemas really come into play. With decent naming and schemas you can sort of organize...
October 31, 2011 at 8:18 am
prashant-507002 (10/31/2011)
In that hacker enter the <script myfile.php>.
Bu using SP it will accept the value as it has...
October 31, 2011 at 8:14 am
It is nearly impossible to decipher all that unformatted code. The issue most likely somewhere in that overly complicated "nested case sub select thing" in the middle.
As a side note...
October 31, 2011 at 7:29 am
info-651246 (10/28/2011)
I have a Person table
I would this table to be usable for Persons and Companies.
I the record is a person (FK_PersonType = 1), I store First Name and Last...
October 28, 2011 at 2:00 pm
calvo (10/28/2011)
Sean Lange (10/28/2011)
And just for the record a bit is NOT a boolean. It has 3 possible values (0, 1, null). Something to keep in mind when writing your...
October 28, 2011 at 1:48 pm
You can't just have select statement in a check constraint. For the purposes of what you are trying to accomplish a check constraint is just not the right approach. You...
October 28, 2011 at 11:35 am
Viewing 15 posts - 13,606 through 13,620 (of 15,381 total)