Viewing 15 posts - 3,526 through 3,540 (of 13,855 total)
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
You cannot use the OPTION clause in views. See this link.
The SELECT clauses in a view definition cannot include the following:
- An ORDER BY clause, unless there is also...
June 12, 2019 at 2:18 pm
Try this:
DROP TABLE IF EXISTS #Run;
DROP TABLE IF EXISTS #RunControlClient;
DROP TABLE IF EXISTS #SQLServerDatabase;
CREATE TABLE #Run
(
RunID INT NOT NULL PRIMARY KEY CLUSTERED
...
June 12, 2019 at 1:55 pm
Is this a many-to-many join?
P.Tracker_PSYH = Z.ZATS_PSYH
June 11, 2019 at 3:09 pm
A few of us have mentioned it in the huge friend,
Who is this guy?
PS, the logouts happen to me too.
June 11, 2019 at 2:56 pm
Hi The package will not be in SSISDB - it will be in Integration Services Catalog - which will be below all the database as a separate twistie
SSISDB is...
June 11, 2019 at 1:56 pm
We can't see your tables or your data, so I'm not sure how you expect us to be able to refine your unformatted SQL.
Please post some consumable code, along with...
June 11, 2019 at 1:54 pm
One obvious way is to disable the index & then rebuild it, once the update is complete. I presume you're trying to avoid that?
June 9, 2019 at 6:30 pm
A general answer to what? You haven't asked a question.
June 7, 2019 at 9:11 pm
Viewing 15 posts - 3,526 through 3,540 (of 13,855 total)