Viewing 15 posts - 2,266 through 2,280 (of 13,850 total)
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
I've got 2 Project Variables which I use to control wether a package should run or not through the Disable Package Expression
I don't have SSIS in front of me right...
December 3, 2020 at 6:56 pm
Can you show us the T-SQL which generated the error, along with the data which caused it? Also, what would your ideal solution be? Return NULL instead, with no error?
December 3, 2020 at 2:56 pm
Not 100% sure about this, but please try it:
DROP TABLE IF EXISTS #temp_usage;
CREATE TABLE #temp_usage
(
location_id INT
,item_id VARCHAR(40)
,PERIOD...
November 23, 2020 at 10:59 pm
Was the 300GB comprised of data which has since been deleted, or just space?
November 22, 2020 at 3:39 pm
Those backup destinations are local (to the server) drives only, and I'm not sure whether that can be changed.
But you should be able to perform the backup to your network...
November 19, 2020 at 8:43 pm
Viewing 15 posts - 2,266 through 2,280 (of 13,850 total)