Viewing 15 posts - 4,651 through 4,665 (of 5,504 total)
R Saura (12/23/2009)
Sorry, had not specified that I do programmatically (Visual Basic 6) through the object SQLXMLBulkload.4.0Thanks
To quote my reply from above:
If there is more than that on your side...
December 23, 2009 at 10:02 am
I would use a CASE statement to test for Call_BeginTime being a numeric value or a datetime value and do the math based on that.
Here's an example using variables:
DECLARE
@Call_BeginDate...
December 23, 2009 at 10:00 am
I cannot verify what you describe.
Since you didn't provide any sample data supporting your statement I made some up.
DECLARE @t TABLE (id int, data xml)
INSERT INTO @t
SELECT 1,'
<Block>
...
December 23, 2009 at 9:30 am
bigclick (12/23/2009)
Call Begin Date: 12/03/2009
Call Begin Time: -100
Call End Date: 12/04/2009
Call End Time: ...
December 23, 2009 at 9:12 am
oliver.morris (12/23/2009)
December 23, 2009 at 9:01 am
First of all: Don't loop! (unless you'll get paid per second your code runs...) 😉
You could use UNPIVOT (see BOL for details) to get the table "flattened".
With the resulting table...
December 23, 2009 at 8:44 am
Is there any column available to know which rows belong together (even an ID column would be ok as long as all rows after one entry with 'email' would belong...
December 23, 2009 at 3:28 am
Alvin Ramard (12/22/2009)
I'm about to go offline for the next week or two, so it's time to wish y'all a very Merry Christmas and a Happy New Year.🙂
Same...
December 22, 2009 at 5:50 am
Well, then your friend must have had a lot more information available than we did...
How else could he come up with Row_Number when there was nothing in your post indicating...
December 22, 2009 at 5:45 am
Well, I doesn't look like the results for those two variables will always be NULL...
Reason: the query most probably won't run at all.
I just tested the part with the subselect...
December 22, 2009 at 5:35 am
Why concatenate?
Since both are int, I'd use
SELECT Year * 100 + Period From TableA.
December 22, 2009 at 4:49 am
You could use CTEs (common table expressions) to determine @Total2 (see BOL for details).
This would make the whole query much more readable and most probably would make it more obvious...
December 22, 2009 at 4:45 am
What exactly are you trying to do?
The way this proc is written it will fail as soon as you have more than one row having [ReportId]=@ReportId.
Even though you added ORDER...
December 22, 2009 at 3:56 am
The physical order doesn't really matter that much...
If your table has a clustered index, new rows will be inserted in the physical order, maybe causing to physically move other rows...
December 22, 2009 at 3:15 am
Viewing 15 posts - 4,651 through 4,665 (of 5,504 total)