Viewing 15 posts - 3,541 through 3,555 (of 13,874 total)
Preferred option would be to make the Java app perform the notification itself.
Use a non-locking record count technique, such as
SELECT TotRows = SUM(row_count)
FROM sys.dm_db_partition_stats
WHERE object_id = OBJECT_ID('schemaname.tablename')
...
June 17, 2019 at 7:02 pm
Thanks all. Here is the SSIS expression for those who only need to use SSIS, DATEADD("hh",17,(DT_DBTIMESTAMP) ( (DT_STR,30,1252) (DT_DBDATE) (DATEADD("dd", -1 - (DATEPART("dw", getdate()) % 7), getdate()) ) )...
June 17, 2019 at 2:06 pm
Well done on providing the DDL for the table.
Would you also be able to provide some sample data, along with desired results, based on that sample data?
The sample data should...
June 16, 2019 at 4:14 pm
. If the owner of the job is a sysadmin - the job runs in the context of the SQL Server service account.
I don't think that this is...
June 15, 2019 at 8:29 pm
I need my child packages to run in parallel (multi-threading)... They're loading lots of data and I can't wait for one to finish before starting the other. I've tried...
June 14, 2019 at 3:42 pm
The Agent service account.
June 14, 2019 at 2:58 pm
Don't think you can. Precedence constraints are the answer – what is the reason for you not using them?
June 14, 2019 at 2:53 pm
Thanks, Jeff. The date processing capabilities in T-SQL are significantly more powerful than those built in to SSIS (though, of course, SSIS has native access to .NET libraries through C#...
June 14, 2019 at 2:23 pm
2019 - 1 = 2018, so what wrong with
WHERE sportyear = @year - 1;here?
With @year being defined as an Integer rather than a datetime.
June 14, 2019 at 1:50 pm
If you are running some SQL which returns a result set of T-SQL queries, the answer is yes.
Return the result set to an Object variable, which should be shredded within...
June 14, 2019 at 1:48 pm
So you want an expression which returns a datetime of 5pm last Friday, is that it?
June 13, 2019 at 10:43 pm
Your expression returns a datetime, as can be seen below:

"Also 2) i want to find last friday until 3 pm." This makes no sense to me, can...
June 13, 2019 at 10:30 pm
When composing a query in SSMS, just drag from the 'Columns' node of the table you want (in Object Explorer) to SELECT from onto the editing window – SSMS will...
June 13, 2019 at 4:35 pm
Like this?
WITH ExpiredDates
AS (SELECT m.CustomerID
,m.DateCreated
FROM #MYTABLE m
WHERE m.EntryType =...
June 12, 2019 at 6:44 pm
Hi, Thank for you confirming that, I did indeed search but wanted to clarify and see if anyone had a workaround. Sorry for troubling you. Have a good...
June 12, 2019 at 2:50 pm
Viewing 15 posts - 3,541 through 3,555 (of 13,874 total)