Viewing 15 posts - 46 through 60 (of 66 total)
Thanks for your reply.
Can't get it to work.
I think a MERGE will to the trick.
Cheers,
Julian
October 31, 2014 at 10:08 am
Thank you for pointing this out to me.
Express version does not have the Agent.
Cheers,
Julian
October 31, 2014 at 10:02 am
I have moved from Access, as the back end, to SQLServer Express. (Excel as front end to generate reports and to enter data).
Access started giving many errors when serveral users...
October 31, 2014 at 9:41 am
I am having the same issue.
Some .bak files are not visible to Restore/Select file. (2008 R2)
Pasting the path and file name works though.
October 20, 2014 at 11:12 am
Thank you.
Cheers,
Julian
September 20, 2014 at 12:00 pm
Great,
Thank you!
J.
PS: why do I need
SET NOCOUNT ON
in this Procedure? Ommitting it from other sprocs didn't cause any problems. Only difference is that they do not use temp...
September 20, 2014 at 9:18 am
@gbritton1, thank you for pointing me in the right direction.
Ended up with using the code below.
Cheers,
Julian
-- JJR 20140508 ADDED UPDATE USING OVER PARTITION, MUCH FASTER
;WITH Updater AS
(
SELECT...
May 17, 2014 at 11:27 am
I am half Dutch...
The result set looks like the table below.
Now I would like to sum the Hrs for each Niveau.
Any ideas?
Thanks,
Julian
NIVHRS
37
37
37
37
39
39
39
39
34
34
34
34
34
34
34
34
27,5
27,5
27,5
27,5
23,11111111111111
23,11111111111111
23,11111111111111
23,11111111111111
23,11111111111111
23,11111111111111
23,11111111111111
23,11111111111111
23,11111111111111
2+6
2+6
2+6
2+6
2+6
218
218
2+3
2+3
2+3
2+3
2+3
2+3
2+3
38
38
38
38
28
23,33333333333333
310,6666666666667
310,6666666666667
310,6666666666667
35,33333333333333
35,33333333333333
35,33333333333333
95,14285714285714
95,14285714285714
95,14285714285714
29,33333333333333
29,33333333333333
29,33333333333333
23,5
23,5
23,5
23,5
23,5
May 15, 2014 at 1:24 pm
@gbritton1: thanks that worked!
The code below gives me the correct results.
How do you get the sum of Hrs for each NiveauZPT?
An aggregate cannot be used on a Windowed...
May 15, 2014 at 12:57 pm
Hello Chris,
Thank you very much!
It is ligthning fast (4 sec a.o.t. 1.5 min).
Cheers,
Julian
ChrisM@home (5/6/2014)
Try this.
;WITH Updater AS (
SELECT
FTEHrsAVG,
NewFTEHrsAVG = AVG(CASE WHEN FlexVast...
May 8, 2014 at 5:18 am
The code is part of a stored procedure which bulk inserts data from a csv file, using a Staging table.
Thanks for the hint. Job for later.
Cheers,
Julian
gbritton1 (5/6/2014)
May 6, 2014 at 11:32 am
Hello Lowell,
Thanks for your response.
For some reason the original code is 15 seconds faster (2.25 min iso 2.5 min)....
Cheers,
Julian
May 6, 2014 at 11:30 am
I might strip out the "-" to prevent issues.
See this post, last message.
Here I get consistant results:
Declare @myDate varchar(50)
Set @myDate = '20141210' --yyyymmdd
SELECT CONVERT( char(20), CONVERT( datetime, @myDate))
select (convert(datetime, @myDate,111))+22
select...
April 29, 2014 at 12:23 pm
Am I correct to assume that @myDate is our starting point?
And that CONVERT only changes the display of the date string according to the added parameter (111 or 105).
Then...
April 29, 2014 at 11:43 am
Viewing 15 posts - 46 through 60 (of 66 total)