Viewing 15 posts - 3,286 through 3,300 (of 4,087 total)
The error is coming from your Caché database, so you'll probably get a better answer from a Caché forum, but it looks like Caché doesn't support the DATE datatype.
Another...
March 20, 2012 at 8:43 am
itskanchanhere (3/15/2012)
March 15, 2012 at 8:33 am
ColdCoffee (3/14/2012)
SELECT DatetimeasVC , CrsApp1.String , CONVERT( DATETIME , CrsApp1.String) [Converted To DateTime]
FROM @Table
CROSS APPLY (SELECT CHARINDEX('.',DatetimeasVC ) ) CrsApp (Idx)
CROSS APPLY (SELECT LEFT ( DatetimeasVC...
March 15, 2012 at 7:27 am
Part of the reason that you are having problems is that your first table is not normalized properly. Instead of having a separate column for each month, you should...
March 14, 2012 at 2:51 pm
Based on this comment, it looks like you need to add parens to your query.
ken def
March 12, 2012 at 6:59 am
Don't let your developer play around in the live database!
Note that RESEEDing the table can cause problems because of duplicate values if not done carefully. In the vast majority...
March 8, 2012 at 12:27 pm
The calendar table allows you to more easily handle holidays. The fact that the OP said he wanted to return the "next working day (Monday)," indicates that he needs...
March 8, 2012 at 11:16 am
Check out the following article. Fun with business days, calendar tables, and test-driven development[/url]
There was a recent thread about calendar tables, but I can't find it right now.
Drew
March 8, 2012 at 9:58 am
ismailmallum (3/8/2012)
March 8, 2012 at 7:36 am
Try using a CROSS APPLY instead of the EXISTS.
UPDATE t1
SET t1.col1 = t2.col1, t1.col2 = t2.col2, t1.col3 = t2.col3, t1.col4 = t2.col4, ........
FROM t1
INNER JOIN t2
ON t2.ID = t1.ID
CROSS APPLY...
March 8, 2012 at 7:20 am
Samit Shah (3/7/2012)
March 7, 2012 at 12:12 pm
A CASE statement should be faster, because it doesn't have to do the aggregrate calculation (even though there are only two values in the aggregate for each row). My...
March 7, 2012 at 7:25 am
The standard term is "shredding XML".
You first need to be familiar with XPath and XQuery. You can find tutorials on the web. Once you feel comfortable with those,...
March 6, 2012 at 8:20 am
Another option is STUFF()
STUFF(p.SSN, 1, 7, 'XXX-XX-'
Drew
March 6, 2012 at 7:43 am
Please refer to the following article on how best to post sample data.
Forum Etiquette: How to post data/code on a forum to get the best help[/url]
Second, your sample...
March 5, 2012 at 3:12 pm
Viewing 15 posts - 3,286 through 3,300 (of 4,087 total)