Viewing 15 posts - 496 through 510 (of 8,731 total)
If someone is interested on code that is actually readable and without errors.
CREATE TABLE [dbo].[GL_Source]
(
[GLS_ID] [UNIQUEIDENTIFIER] ROWGUIDCOL NOT NULL CONSTRAINT [DF_GLS_ID] DEFAULT (NEWID()),
June 7, 2018 at 1:08 pm
June 7, 2018 at 12:16 pm
By the way, you shouldn't be updating the whole table every time. Use a WHERE clause to limit the work that needs to be done.
June 7, 2018 at 11:34 am
You could simply update in a set-based way without going row by row.
UPDATE i SET
[InvoiceMethod]=c.PreferredInvoiceMethod
FROM tblCompany AS c
JOIN tblWorkOrder ...
June 7, 2018 at 11:32 am
Have you tried with the DelimitedSplit8K_Lead?
http://www.sqlservercentral.com/articles/SQL+Server+2012/106903/
June 7, 2018 at 9:44 am
I would check these expressions. You might be confused on what you're doing.
LEFT(cnd.Name, CHARINDEX(':', LEN(cnd.Name) - 1))
LEFT(cnd.Name, CHARINDEX(' ', REVERSE(LEN(cnd.Name))))
June 7, 2018 at 7:00 am
June 7, 2018 at 6:57 am
I know from Microsoft Access when you enter any value in any column it automatically...
June 6, 2018 at 1:53 pm
June 6, 2018 at 8:06 am
June 6, 2018 at 6:38 am
And I usually work on an opposite way
SELECT
o.name AS ObjName,
ix.name AS IxName ,
ic.index_column_id AS IxColId
FROM sys.objects o
June 6, 2018 at 6:31 am
June 5, 2018 at 12:58 pm
June 5, 2018 at 12:14 pm
Viewing 15 posts - 496 through 510 (of 8,731 total)