Viewing 15 posts - 1,471 through 1,485 (of 13,849 total)
That is a requirement. But what is your question?
April 7, 2022 at 1:32 pm
Try this:
CASE WHEN LEFT(t.DC,2) IN ('01', '02', '08', '21', '22', '30', '32', '40', '55', '62')
THEN LEFT(t.DC,2)
ELSE '01'
END AS DC April 7, 2022 at 6:44 am
--deleted
April 4, 2022 at 1:51 pm
That's a bit trickier, but try this version and see whether it helps:
WITH ordered
AS
(SELECT
hs.Id
, hs.SalesID
...
April 4, 2022 at 1:49 pm
Your trigger will fail if more than one row is inserted or updated in a batch, so I suggest that you fix that.
What do you want TitleNormal to be updated...
April 1, 2022 at 8:22 am
Here's an example
DECLARE @Query VARCHAR(1000) = 'SELECT TOP (10) object_id, name FROM sys.columns';
DROP TABLE IF EXISTS #SomeTab;
CREATE TABLE #SomeTab
(
object_id INT
,name...
March 31, 2022 at 4:08 pm
Does this help? It uses the ROW_NUMBER function to perform the ordering and partitioning that you need.
DROP TABLE IF EXISTS #HectorSales;
CREATE TABLE #HectorSales
(
Id...
March 31, 2022 at 12:59 pm
SELECT ... FROM t WHERE (EMPLOYEE_ID != 123 AND WORKSITE_ID != 22)
The logical equivalent of
NOT (A AND B)
is
NOT A OR NOT B
so changing the AND in your query to...
March 31, 2022 at 10:39 am
It doesn't work the way you are hoping (ie, with some sort of table-name cursor).
If you write a query in that window, it will export the results of running that...
March 31, 2022 at 10:22 am
As this is specialised software, perhaps you should get support from the vendor?
March 31, 2022 at 9:26 am
One possibility is the use of SYNONYMs to help you in this.
Assume that the synonyms 'point' to tables in DB1 on day 1.
On day 2, DB2 is updated. If...
March 30, 2022 at 4:01 pm
It's somewhat difficult to understand exactly what is going on here, because you've posted a fairly large chunk of code, most of which is not relevant to the problem you...
March 30, 2022 at 10:02 am
First of all, are you aware of issues with numeric precision when using FLOAT? If not, I suggest you reconsider – DECIMAL() is often a better choice.
If you put the...
March 30, 2022 at 9:42 am
Locate the ssms.pkgundef file and edit it as follows
Comment out the following line at the end of the file, and save the file.
- [$RootKey$\Themes\{1ded0138-47ce-435e-84ef-9ec1f439b749}]
...
This is as good as it...
March 29, 2022 at 2:30 pm
You should be fine. Just make sure that you set things up in your SSDT Project Properties to target the right platform.
March 29, 2022 at 11:23 am
Viewing 15 posts - 1,471 through 1,485 (of 13,849 total)