Viewing 15 posts - 451 through 465 (of 7,191 total)
That doesn't sound like a SQL Server error message. Do you get the same error message if you call the stored procedure from SSMS instead of from the SSIS package? ...
September 27, 2019 at 10:25 am
Looks like Netazza syntax is different from SQL Server syntax. Not sure there's anyone here who will be able to help you - you may be better off on a...
September 27, 2019 at 10:13 am
Yes, set the database to Simple and shrink the log file to the size of the largest index in the database.
September 27, 2019 at 9:44 am
Assuming you haven't shrunk the log file, its size will be the size of your biggest log backup so far (plus maybe a little bit more depending on what your...
September 27, 2019 at 8:57 am
In the code below, please replace "UserName" with the name of the user, "LoginName" with the name of the login to which the user is mapped, "DBName" with the name...
September 27, 2019 at 8:39 am
Try this as well.
WITH Partitioned AS (
SELECT
memb_MembershipID
,memb_MemberID
,memb_type
,MIN(memb_type) OVER (PARTITION BY memb_MemberID) AS MinMemb
,MAX(memb_type) OVER (PARTITION BY memb_MemberID) AS MaxMemb
FROM dbo.Members
)
SELECT
memb_MembershipID
,memb_MemberID
,memb_type
FROM Partitioned
WHERE MinMemb <> 'Tier 1'
AND MaxMemb...
September 26, 2019 at 2:30 pm
Sam
...
September 26, 2019 at 8:31 am
A self-join would work, but may not perform well on large data sets.
SELECT DISTINCT
t1.rowID
,t1.myDateTime
,t1.myCount
,CASE
WHEN t2.rowID IS NULL THEN 0
ELSE 1
END AS invalid
FROM aaaMyTable t1
LEFT JOIN aaaMyTable t2
ON...
September 26, 2019 at 8:18 am
Will the new file be in the same filegroup as the existing file? What is the driver for doing this work - ease of administratio, performance, something else?
John
September 25, 2019 at 2:03 pm
Try this.
select C.EmpLocationName, B.EmpCategoryName, count(A.EmpCategoryID) as CategoryCount
FROM EmployeeMaster A
LEFT JOIN EmployeeCategory B ON A.EmpCategoryID = B.EmpCategoryID
INNER JOIN EmployeeLocation C ON A.EmpLocationID = C.EmpLocationID
where ISNULL(A.IsDeleted,0) = 0
Group...
September 25, 2019 at 1:54 pm
What is the definition of the assets table? My guess is that it contains off-row data. Have a read of this. I quote:
For an index, one row is returned...
September 25, 2019 at 11:23 am
Put EmployeeCategory first in your query, and LEFT JOIN it to EmployeeMaster.
John
September 25, 2019 at 10:19 am
Sounds like an Availability Group synchronisation problem. Expand the Always On High Availability container in Object Explorer and/or query the dm_hadr DMVs to investigate.
John
September 23, 2019 at 3:39 pm
That's not how it works, I'm afraid. Feel free to send me a private message through this site if there's something you don't want everybody to see.
John
September 23, 2019 at 3:23 pm
I don't know anything about Oracle, but it sounds as it's expecting a numerical value and you have supplied some non-numerical characters. Beyond that, it's difficult to help given that...
September 23, 2019 at 3:09 pm
Viewing 15 posts - 451 through 465 (of 7,191 total)