Viewing 15 posts - 18,646 through 18,660 (of 18,926 total)
Actually it's not a requirement yet...
That's how you should think about your db when you design it.
January 26, 2005 at 6:31 am
Greg's solution would work nicely... but if you ever need to add CC, DD, and EE to the in() clause you'd have to add 3 more inner joins.. I...
January 25, 2005 at 11:08 am
Or change it altogether and change the post to XXX just so that noone decides to try to hack your server.
January 25, 2005 at 11:05 am
Unless you have a few 100s of millions of rows you don't need to do that. If your queries need to run faster I suggest moving the first part...
January 24, 2005 at 10:06 pm
The trigger on system tables are not reliable... and not supported by Microsoft. The best way would be to do snapshots of that table every 5 minutes or so...
January 24, 2005 at 8:24 am
There's another way to achieve the same result without modifying any table design. You can create an indexed view on that column and create a unique index on...
January 24, 2005 at 6:51 am
Why do you need to create a table at run time?
Usually when you need a table for an application you just create it once and leave it there. If...
January 24, 2005 at 6:44 am
No.. Just the same problem over and over again. Can you rename the database so that it can't be an isse from now on?
January 24, 2005 at 6:37 am
I've already seen better but this might give you a clue
http://www.igoodsoft.com/download.htm (Super System Helper)
This software however doesn't seem to let you select a dll and see what process are using...
January 21, 2005 at 2:40 pm
How were you supposed to debug yourself if you couldn't go online to do searches?
January 21, 2005 at 2:26 pm
Yes yelena, your version will work just fine but since it converts to varchar and back to datetime, it takes more time to execute.
Your version does something like cast((cast as...
January 21, 2005 at 12:10 pm
It would look something like this :
Select UserId from Mytable where ItemID in ('AA','BB') GROUP BY UserID having count(*) = 2
January 21, 2005 at 8:07 am
Please make sure you understand the logic. It's really not as obvious as it seems. It took me at least one hour to really catch this trick and be able...
January 21, 2005 at 8:01 am
Select * from dbo.MyTable where
dateadd(d, (datediff(d, 0, YourDate)) , 0)
=
dateadd(d, (datediff(d, 0, GetDate() - 1)) , 0)
Quick explanation :
datediff(d, 0, YourDate) counts the number of days since 1900/01/01
it then...
January 21, 2005 at 7:03 am
Viewing 15 posts - 18,646 through 18,660 (of 18,926 total)