Viewing 15 posts - 1,801 through 1,815 (of 2,643 total)
paige.miller91 - Wednesday, January 16, 2019 7:38 AMJonathan AC -- it keeps giving me a syntax error
What's the error you get? Where...
January 16, 2019 at 7:43 am
marc.corbeel - Wednesday, January 16, 2019 6:14 AMyes I know, but some clients still use version 2012... so I cannot use it
If...
January 16, 2019 at 6:40 am
SQL Server 2017 has its own STRING_SPLIT function, so no need to write your own.
declare @r nvarchar(max) = ''
declare @i int = 0
declare...
January 16, 2019 at 6:08 am
I find YYYY-MM-DD a bit more readable than YYYYMMDD.
I once switched my SQL queries to YYYYMMDD from YYYY-MM-DD as there was a problem with the ISO 8601 dashed standard in...
January 16, 2019 at 4:50 am
January 16, 2019 at 4:30 am
create function [dbo].[tvf_SplitCommaSeparatedString](@in nvarchar(max)) with tmp (word, ix) as
(select @in , CHARINDEX('',...
January 16, 2019 at 3:57 am
January 15, 2019 at 12:11 pm
You can use set identity_insert table_name on
e.g:set identity_insert [dbo].[tblOrderNumberLog] ON
INSERT INTO [dbo].[tblOrderNumberLog](ID)
select row_number() over (order by (select null))
from sys.columns
set identity_insert [dbo].[tblOrderNumberLog] OFF
January 15, 2019 at 10:43 am
January 15, 2019 at 6:15 am
1. CROSS APPLY needs a space between CROSS and APPLY
2. 'or' is not a valid alias to use for a table (without square brackets) as it is a reserved...
January 15, 2019 at 5:06 am
Does this give you what you want?:SELECT COUNT(B.A_ID) AS TEL, ID, A_TEXT, A_ID FROM A FULL OUTER JOIN B ON ID = A_ID GROUP BY ID, A_TEXT,...
January 15, 2019 at 4:28 am
January 14, 2019 at 7:36 pm
LOL, Sorry I didn't notice the original post was that old. Someone else brought it back from the dead.
January 14, 2019 at 12:22 pm
CROSS APPLY is a row level operator. So your table_valued_function will be run once for each row the rest of the query returns.
So my guess is that the query:
January 14, 2019 at 10:35 am
January 14, 2019 at 7:06 am
Viewing 15 posts - 1,801 through 1,815 (of 2,643 total)