Viewing 15 posts - 7,876 through 7,890 (of 8,731 total)
My guess is that one of the columns bd.SORTUSER_EMPID or ed.[Employee ID] is numeric and the otherone is a varchar and contains a non-numeric value. This error would be caused...
July 22, 2013 at 12:16 pm
This looks a lot like a running total issue. read the following article and come back if you still need help.
July 22, 2013 at 10:19 am
You still don't have NULL values on your sample data. However, check what I did with the alias for your column.
Select ISNULL(Value, 'Not Defined') as newValue
from #mytable
ORDER BY...
July 22, 2013 at 10:06 am
You should really try the 8K Splitter[/url]. However, your code won't perform great because SQL Server might not generate the best plan for your query.
July 22, 2013 at 9:17 am
latingntlman (7/22/2013)
Correct, Luis.I wanted to see how many records were inserted.
Then you could simply use
SELECT @@ROWCOUNT
Beware of the possible resets of the @@ROWCOUNT value.
July 22, 2013 at 8:33 am
Why do you want to format your dates in your table? You should store them as dates and format them until you display them.
Is this a datetime column? or a...
July 22, 2013 at 6:05 am
I usually have this problem when I'm searching a specific article. A good way is to get to them by entering the Authors section.
July 19, 2013 at 4:58 pm
You don't even need the CTE, you could just add the SUM() OVER() to your original query.
July 19, 2013 at 2:23 pm
Do you just want to know how many rows were inserted? You could consider @@ROWCOUNT or the OUTPUT clause.
July 19, 2013 at 1:45 pm
The best way is to use the 8K Splitter.
Check the following article http://www.sqlservercentral.com/articles/Tally+Table/72993/
July 19, 2013 at 12:28 pm
Maybe you want something like this or maybe I'm misunderstanding you. Feel free to correct me 🙂
SELECTu.Username,
MAX( CASE WHEN DAY( r.EntryDate) = 1 THEN EntryStatus ELSE '0' END) AS Day01,
MAX(...
July 19, 2013 at 11:55 am
There's no way to mark it as solved or closed (unless you're an administrator).
I will make emphasis on avoiding the use of functions in your queries. Your query won't be...
July 19, 2013 at 9:54 am
Yes you can. I just have personal preference for CTEs. 😉
July 19, 2013 at 8:26 am
Checking your code, I found that you could make some improvements to it. But to help you, we'll need the definition of the webproxylog5 table and user_parser function. And some...
July 19, 2013 at 8:25 am
You have some problems with your quotes. I'm not sure that I did the right corrections. Use the print to run the query that gets printed and debug from it.
use...
July 19, 2013 at 8:14 am
Viewing 15 posts - 7,876 through 7,890 (of 8,731 total)