Viewing 15 posts - 2,281 through 2,295 (of 13,870 total)
SSIS does not handle this scenario very well without code. The way I would do it is as follows:
December 18, 2020 at 9:38 am
Your problem here is that the underscore character is itself a wildcard in T-SQL, matching any single character. That explains the results you are seeing.
The solution is to ESCAPE the...
December 18, 2020 at 9:33 am
...it states that there are security implications to using it.
Not quite. It mentions 'potential security implications' – and Jeff has described some of those already.
December 18, 2020 at 9:25 am
It may not be the case here, but spaces in path names are often problematic. Are you enclosing the path in quotes?
I'm also interested in knowing why you are trying...
December 16, 2020 at 2:42 pm
Well done. xp_cmdshell() would have allowed you to do this in your proc, of course.
A certain Mr Jeff Moden will probably tell you that the controlled enabling of xp_cmdshell poses...
December 16, 2020 at 2:11 pm
You can easily do this using SSIS.
December 16, 2020 at 10:11 am
This is untested, as I don't currently have access to SQL Server, but should work OK:
SELECT DateDiff (Day,DateCalc.MyDateTime1,DateCalc.MyDateTime2) AS 'MyTimeSpent'
FROM sometable t1
CROSS APPLY (SELECT MyDateTime1=CAST(t1.Date1 AS DATETIME)...
December 15, 2020 at 4:10 pm
I guess I'm an odd ol' duck. I don't need or even want F2F interaction with humans unless it's on a pool table in my favorite bar and that's...
December 15, 2020 at 10:03 am
Will the MAX column be the same for every row of data returned, or are you looking for some sort of grouping?
December 14, 2020 at 10:06 am
What application or database are you trying to make this work in?
December 11, 2020 at 11:58 am
What do you mean by MSSQL? T-SQL is MSSQL, as far as I know.
December 11, 2020 at 11:44 am
No nulls in the data but there are some that are 00:00:00
I currently have nothing to test this with. What happens if you pass that value to your function?
December 4, 2020 at 3:37 pm
Which part of this do you need assistance with?
December 4, 2020 at 3:24 pm
I can figure out where/how to use it but I'm getting an error:
dbo.fnGetSeconds(CALL_TIME)
--Invalid length parameter passed to the RIGHT function.
There's something about one or more items...
December 4, 2020 at 3:23 pm
Viewing 15 posts - 2,281 through 2,295 (of 13,870 total)