Viewing 15 posts - 1 through 15 (of 64 total)
Hi all,
i think i found half of my answer.
if i make changes to tables or add tables, i need to use SP_AddArticle and SP_DropPArticle to add or...
December 2, 2018 at 1:42 pm
Thanks for all the responses. its now resolved. (user error). enough said. :rolleyes:
I didn't know about try_convert which is a very useful function so at least I've learnt something new.
Thanks...
December 13, 2016 at 7:37 am
Thanks John,
I've tried using DateFromParts() and I get the same error.
,DATEFROMPARTS('20'+right(invoice_date,2),right(left(invoice_date,5),2),left(invoice_date,2)) as invoice_date
It's almost like something else is throwing it out, and not these fields. I'll keep digging.
December 13, 2016 at 4:20 am
and once I convert it, it looks like
000903642006-09-14 00:00:00.0002006-09-07 00:00:00.000
000903652006-09-14 00:00:00.0002006-09-08 00:00:00.000
000903662006-09-14 00:00:00.0002006-09-13 00:00:00.000
000903672006-09-14 00:00:00.0002006-09-07 00:00:00.000
so, not sure, why it wont accept it.
if I create an insert statement e.g....
December 13, 2016 at 4:12 am
Hi, Data looks like.
[invoice_number] [invoice_date][eta_date]
0009036414/09/0607/09/06
0009036514/09/0608/09/06
0009036614/09/0613/09/06
0009036714/09/0607/09/06
December 13, 2016 at 4:09 am
Thanks for the reply Lowell
I'll give this a go when I'm back at work tomorrow.
That was my next step, create a more robust Sp. with further checks prior to executing...
September 15, 2015 at 1:06 pm
Thanks for the reply Louis, no I don't have any other processes/linked servers on this server.
This is the only one.
September 15, 2015 at 1:04 pm
Hi Komal,
Is it just date format or date and time?
Example 1
You could left trim the string.
Left('2015-09-01-00.00.00.000000',10)
To get just the date,
Then to get a date format
Convert(date time,Left(2015-09-01-00.00.00.000000",10),103)
Dave
September 15, 2015 at 1:02 pm
I see..
To create a heap, create a table without a clustered index. If a table already has a clustered index, drop the clustered index to return the table to a...
March 10, 2014 at 10:48 am
Thanks for the reply Jason,
yeah, they're all Zero.
I've got 12 of these little monkeys.. all on the same Database.
March 10, 2014 at 10:23 am
Thank you all for your help,,, I've found it much easier just to lookup the entry in the web page prior to writing it to the table.
Regards
Dave
June 3, 2013 at 8:53 am
I thought AFTER INSERT meant that the code ran after it had been inserted, clearly its not the case 😀
ALTER TRIGGER [dbo].[TRIG_Update_Install]
ON [dbo].[tbl_warranties]
...
June 3, 2013 at 8:27 am
Yes, I see what you mean, but that also creates another problem.
This won't work, because its looking for a record to update in tbl_warranties that doesn't exist yet.
update tbl_warranties set...
June 3, 2013 at 8:24 am
Hi Lowell,,
Yes, its not the cleanest or logical of code.. Just thrown together to get a result.
-dbo.Tbl_InstallersList.Gas_id = INSERTED.business_gsn
--INSERTED.business_gsn IS NOT NULL
--LEN(INSERTED.business_gsn) > 0
--AND datePickup IS NULL
Ideally, I wouldn't...
June 3, 2013 at 7:31 am
yeah, I could have just updated the row for the individual scope ID, but there are only ever 5 records in there with a Null datefield which is being checked....
June 3, 2013 at 6:45 am
Viewing 15 posts - 1 through 15 (of 64 total)