Viewing 15 posts - 1,186 through 1,200 (of 1,216 total)
Since we have many datetime fields in our database, and quite often only the date part is needed, we have a UDF that "strips off" the time from a datetime...
October 2, 2003 at 5:02 am
SQLBill,
this works for you?? I tried it several times (with various changes), and I always get an error... which is about what I expected, because I already tried something very...
October 2, 2003 at 1:38 am
Perfect! Thanks a lot, Jonathan, and I second SQLBill that this should go into FAQ or some other place, more permanent than a forum thread.
October 1, 2003 at 8:04 am
If this software you are running uses nested transactions incorrectly, then I'm afraid the problem is in the software itself, not in SQL server - and if you would switch...
October 1, 2003 at 2:26 am
sql777,
since you wish to retrieve entirely different data from each of the tables (say, square meters for land, speed for cars and number of tenants for a house) - and...
September 30, 2003 at 8:41 am
I suppose it also depends on what do you wish to select "out of tblProperty", and what do you want to do with selected data... if the question stands simply...
September 30, 2003 at 1:30 am
Hmm.. and what if one user writes age > 50 and another one age>50 (without spaces around operator)? It is still the same condition, but unless you set up the...
September 19, 2003 at 5:28 am
Hi tkc,
what about using logical operators instead of CASE to achieve the result?
SELECT ... /* various fields */
FROM PatientInfo
WHERE ... /* various parameters */
AND (UserID IN (SELECT DISTINCT UserID FROM...
September 19, 2003 at 1:18 am
LOL, I even didn't know that it is possible to answer the question later than the day when it is published.
Why should it be harsh, David? If you can't answer...
September 18, 2003 at 8:53 am
Antares,
You're right, I missed this point... It really is interesting, because simple switching of the two values makes the query run OK (I have SQL2000, too):
select
case
when 1=1...
September 16, 2003 at 9:59 am
Antares,
thanks, that brings some light into the problem, but anyway - LTRIM is in the ELSE part, so while you have WHEN 1=1, everything in ELSE should be skipped... or...
September 16, 2003 at 7:56 am
Nice example of a bug, I'd say... I have no explanation for it, but I tested a bit and found out that if you
- replace replicate(' ',10) with '(10 spaces)',...
September 16, 2003 at 7:50 am
Jeremy,
I understood at once what you mean, but unfortunately I was out and didn't get to read your replies until now.
Put SET TRANSACTION ISOLATION LEVEL READ COMMITTED where you want...
September 16, 2003 at 5:23 am
Hmmm... that's rather complicated and I'm not sure I understand everything about the processes correctly. Just an idea - status of the row gets updated after the procedure summarizing the...
September 16, 2003 at 4:24 am
Hi bfarr23,
I'd say that the problem lies in definition -one shouldn't ask a program to store non-decimal values in a field of data type decimal. As far as I know,...
September 16, 2003 at 1:33 am
Viewing 15 posts - 1,186 through 1,200 (of 1,216 total)