Viewing 15 posts - 1 through 15 (of 44 total)
dears, it so weird but the issue has been fixed suddenly!!!
I've deleted the table and recreate it again by making all columns defeminations as "nvarchar" then run the query and...
November 9, 2023 at 3:40 pm
yes, it was by mistake and have been fixed, however the problem still exist is the both mentioned columns.
I also tried to change the columns definitions to "nvarchar" instead of...
November 9, 2023 at 3:02 pm
attached the full table definitions.
November 9, 2023 at 2:22 pm
thanks for your reply, actually in my case the ID field is already nvarchar as attached figure, however I've test your proposal but still getting the same error.
November 9, 2023 at 11:09 am
the main problem that I face now is the employees could be entitle for 21 days each 365 for a certain time then he will be treated by 30 days...
October 26, 2020 at 1:50 pm
Since it's a calculation based on the current state of the data couldn't you just use a query? Why does the balance have to be stored? Perhaps...
October 26, 2020 at 12:20 pm
Since it's a calculation based on the current state of the data couldn't you just use a query? Why does the balance have to be stored? Perhaps it could...
October 26, 2020 at 11:44 am
I'd need directly usable sample data for the holiday table -- CREATE TABLE and INSERT statement(s) -- to correct this for you.
Hi Scott,
I've added the table structure and sample...
October 26, 2020 at 8:46 am
sorry, I forgot to put sample data for holiday table, here it's
CREATE TABLE [dbo].[HOLIDAYS_LR](
[nHoliday] [varchar](1) NULL,
[hDate] [date] NULL,
[hEnddate] [datetime] NULL
) ON [PRIMARY]
INSERT INTO HOLIDAYS_LR (nHoliday, hDate, hEnddate)...
October 23, 2020 at 11:03 am
Hi all again
the function works fine for two weeks as long as the entered DateFrom is not a Holiday (it counts it as a working day) but I think it's...
October 22, 2020 at 4:47 pm
sorry, it seems that i need to sleep 🙂
i forget to divide by 60, it should be as below
SELECT CONVERT(CHAR(5), DATEADD(MINUTE, 60*(DATEDIFF(MINUTE,CAST(@hFrom +':'+@mFrom AS TIME), CAST(@hTo...
October 22, 2020 at 7:45 am
This code does include the date swap if they pass in a DateFrom that is greater than the DateTo.
if i need it to does not include date swap, means...
October 1, 2020 at 4:38 pm
>> failed to convert the below scalar function to table valued function, i tried many times and always got error <<
Actually, your problem is that you're not writing SQL...
October 1, 2020 at 4:06 pm
Thank you ScottPletcher so much, appreciate your effort and assist.
that's exactly what i need, but i forced to remove "WITH SCHEMABINDING" because it gives me an error as i mentioned...
October 1, 2020 at 4:00 pm
Viewing 15 posts - 1 through 15 (of 44 total)