Viewing 15 posts - 16 through 30 (of 53 total)
Can you clarify what the result of the query means?
I just need to know if there are enough items to assign to the bookings. I dont't see immediately how...
September 1, 2017 at 6:37 am
okay, in my sample there are only 8 rows (or bookings) but of course in real life this will be much more. If you want to make it more clear...
August 31, 2017 at 9:14 am
I could also assign item 2 on row 6, item 3 on row 7, and item 4 on row 8. But that gives the same result, 4 booked items, so...
August 31, 2017 at 8:57 am
The goal is to determine is a user can make a reservation for equipment for a certain period, based on the availability of items.
Some bookings (rows in the...
August 31, 2017 at 8:47 am
Correction: the sample setup is here
create table items (item_id int identity(1,1) primary key
, item_name varchar(50))
--table with part-set (child-parent) relations, with date for...
July 4, 2017 at 6:57 am
So to be clear: I need the parts of set A on any given date, and parts of those parts, etc... with a full path name, delimited with backslash like...
July 4, 2017 at 6:21 am
Can I make it a bit more complex now?
In my sample I made two table, one with the sets and one with the parts. In my real live application...
July 4, 2017 at 5:37 am
This is exactly what I needed... I tested it and it works as it should, thanks!
Small question, I notice that you write the date as 20170101 where as...
July 4, 2017 at 4:52 am
Found a very simple solution to my problem...
create procedure stp_test (@only_this_record int)
as
begin
select * from test where (field1=1) and ...etc...
and (id=@only_this_record or @only_this_record=0)
end
December 14, 2016 at 11:26 pm
Thanks for this advice...
Learning every day!
November 21, 2016 at 9:20 am
After a while, execution from dotnet worked fast as well.
I haven't experienced this before...
Sorry to bother you all, my issue is solved (don't know the reason though)...
November 21, 2016 at 8:41 am
This is the code that runs the SP.
parameter glbSQL_connection is the SQL connection
and SQL is the SP = 'EXEC stp_InventoryItemTypes_UpdatePathNamesOfChildren 1'
Dim oSQLcommand As SqlCommand = New SqlCommand(SQL, glbSQL_connection)
Try
...
November 21, 2016 at 8:17 am
okay, I will, but if okay with you I will use my live db table and field names (sorry for the cryptic names).
If you prefer the earlier sample names, I...
October 17, 2016 at 12:03 pm
On the sample data their were no indexes indeed, but on the db I tested the solutions, there are indexes on the currency id and on the date...
October 17, 2016 at 11:39 am
The indexes are okay. In any case the db is the same in both tests...
October 17, 2016 at 9:09 am
Viewing 15 posts - 16 through 30 (of 53 total)