Viewing 15 posts - 3,931 through 3,945 (of 5,590 total)
I was thinking the other day that maybe we could use a persisted computed column for something like the Modified date. If I set the column "Modified_date" as a persisted...
June 23, 2010 at 8:50 am
Here's a quick example of the differences of the different datatypes. Note that to insert the time into the datatypes that support time, you have to prefix your MM:SS with...
June 23, 2010 at 8:42 am
Rick Osgood-429286 (6/23/2010)
WHILE @@fetch_status != -1
So, two questions:
1) What is the...
June 23, 2010 at 7:49 am
Oleg, thanks for the explanation. Hugo, thanks for the links, especially for the data type precedence. Between the two of you'll, this is the explanation that the question should have...
June 23, 2010 at 7:26 am
Maybe what is needed is to utilize a method that will allow you to programatically test all the permetations of a procedure. By saving this test, you will be able...
June 22, 2010 at 10:06 am
I'd be interested in this also. I have a database that was kept in sql 2000 compatability mode, but I'd like to find out what needs to be modified so...
June 22, 2010 at 9:19 am
You know, the people that help out here are all un-paid volunteers. Providing the DDL scripts (CREATE TABLE, CREATE INDEX, etc.) for the tables affected, and INSERT statements to put...
June 22, 2010 at 6:22 am
Lynn,
I appreciate your trying to explain the soccer rules to those of us not as directly involved as you are. You've helped me to understand it somewhat better, though I...
June 21, 2010 at 5:25 pm
You know, the people that help out here are all un-paid volunteers. Providing the DDL scripts (CREATE TABLE, CREATE INDEX, etc.) for the tables affected, and INSERT statements to put...
June 21, 2010 at 2:44 pm
danny09 (6/21/2010)
Thanks for pointing about the indexes.. i do have indexing on the table. i tested your SQL and i see that it results the same inserted data...
June 21, 2010 at 2:35 pm
Dan.Humphries (6/21/2010)
I know it is monday but I really feal dense....I get the exact results that you expect
Danny, I'm agreeing with Dan here. If you take the below code, you...
June 21, 2010 at 2:29 pm
You can first strip the time from the date you are working with.
This works for me:
declare @mydate datetime
set @mydate = GETDATE()
SELECT DateAdd(day, -1, DATEADD(week, DATEDIFF(week,0,DATEADD(day, DateDiff(day,0,@mydate), 0)), 0))
Interesting issue. Too...
June 21, 2010 at 2:16 pm
loki1049 (6/21/2010)
Now the issue: This doesn't seem to work with using the 'week' period.
DateDiff is counting the # of boundaries crossed. In the "datepart Boundaries" section, it implies that...
June 21, 2010 at 2:06 pm
Dan,
Good job, and thanks for posting the data in a readily consumable format.
Edit: deleted code... didn't do the job.
June 21, 2010 at 1:33 pm
Phunhog (6/21/2010)
Thank you SSC forums & LynnYou are indeed a SQL Jeddi Master Lynn
Yes, that he is!
The TVF function with cross apply works like lightning
I have never seen cross...
June 21, 2010 at 1:00 pm
Viewing 15 posts - 3,931 through 3,945 (of 5,590 total)