Viewing 15 posts - 14,221 through 14,235 (of 14,953 total)
Well, since dates are stored as floating point numbers, it can have those problems, but there isn't a way around that if you're using datetime data. And it should...
April 14, 2008 at 11:29 am
ALZ, why do it as a separate table? Two parents, yes. But why a separate table?
April 14, 2008 at 11:12 am
This is a duplicate post. There's more data in the one that was posted in SQL Server Compact Edition. (In the future, please don't post twice.)
April 14, 2008 at 9:02 am
A datetime dimensions table would definitely be the way to go.
Create a table with half-hour increments of dates and times. Should have a "begin" column and an "end" column....
April 14, 2008 at 8:54 am
Would a cross-join between customers and skills, and a left join to the map table, with a null select in the Where for the map table, work?
Something like:
select Customer, Skill
from...
April 14, 2008 at 8:34 am
Turn on a deadlock trace (Books Online has details), and you'll find out exactly what's causing it.
Most likely, some other process is trying to update the same information you're trying...
April 14, 2008 at 8:28 am
I'm on the side of thinking that keeping business-relevant data, even stuff that was relevant once but may no longer be so, is more important than the minor costs of...
April 14, 2008 at 8:26 am
Jeff, good article. Just to add to it, you can do this:
declare @D1 datetime, @D2 datetime
select @d1 = '02/Nov/06 9:14:21 AM', @d2 = '19/Apr/07 11:52:31 AM'
select datepart(year, @d2-@d1)-1900 as...
April 14, 2008 at 7:52 am
I'm having trouble following your question.
Are you asking if you can make the database faster by making more of it stay on the disk instead of in memory? That...
April 14, 2008 at 7:39 am
"datediff(hour, date1, date2)" will give you the hours.
"datediff(minute, date1, date2)" will give you the minutes, but you need to use "datediff(minute, date1, date2)%60" to get the minutes left over after...
April 14, 2008 at 7:33 am
You seem to have posted this in the wrong forum. This is for SQL 2005.
Regardless, there's no way to "edit" text data through Query Analyzer, so far as I...
April 14, 2008 at 7:26 am
I agree with Jeff that SQL isn't the way to do this. Every front end app I've ever worked with will do this better.
If, somehow, you absolutely must do...
April 14, 2008 at 7:10 am
The reason I think it's something other than the select statement causing this is because of what Books Online says about Select statements and Locks.
Shared (S) locks allow concurrent transactions...
April 14, 2008 at 7:01 am
I'm sure they can be combined, but I need to know more about what the desired end result of the query is. For one thing, it's not clear to...
April 14, 2008 at 6:45 am
Now I know it's been a long week. Yeah, dynamic SQL will do that quite nicely.
April 11, 2008 at 2:30 pm
Viewing 15 posts - 14,221 through 14,235 (of 14,953 total)