Viewing 15 posts - 181 through 195 (of 1,418 total)
SELECT S.StoreId, I.ItemId
,COALESCE(X.Qty, 0) AS Qty
FROM Stores S
CROSS JOIN Item I
LEFT JOIN StoreInv X
...
March 9, 2023 at 9:12 am
More coffee required.
If a transaction is going to be named I suspect it should be consistent.
BEGIN TRANSACTION Archive
ROLLBACK TRANSACTION NBMTArchive
COMMIT TRANSACTION NBMTArchive
March 8, 2023 at 3:52 pm
Can you give some idea(s) to prove that this is kind of a "Hot Spot" contention scenario.
A bit of a shot in the dark but do you have a...
March 2, 2023 at 10:55 am
This is not an issue but merely a nudge to developers to consider multi layer security. (What happens if someone can get through your firewall?)
You have three options:
February 28, 2023 at 9:31 pm
I'm unsure how else to call it to be honest
If you do not like Powershell etc then maybe try putting the SP in an agent job and then allow...
February 22, 2023 at 9:52 pm
If this is a production sysyem, and given the amount you have posted recently, it may be cheaper to bring in a consultant. If you are based in India maybe...
February 22, 2023 at 5:58 pm
Have you made the poxy with sp_xp_cmdshell_proxy_account?
Personally I would not call BCP with xp_cmdshell.
February 22, 2023 at 2:41 pm
In SSMS you could write code like a template and then press Cntl-Shft-M to fill in the values. Look at the template explorer under the view menu.
February 21, 2023 at 10:48 am
As you have not included any examples of the 7 day condition in the test data I am going to ignore it.
What I have done works with the test data...
February 20, 2023 at 11:15 pm
This was removed by the editor as SPAM
February 18, 2023 at 11:31 am
This shows how to execute xp_cmdshell without being a sysadmin.
To avoid giving your user access to the master db, as above, you will have to look at giving the...
February 17, 2023 at 9:43 pm
Good. Obviously in real life you will need to check for effects on indexes, permissions etc and sort them out.
Also, you probably should not be allowing these columns to be...
February 16, 2023 at 4:53 pm
Use sys.computed_columns. Maybe something like:
IF NOT EXISTS
(
SELECT 1
FROM sys.objects O
JOIN sys.schemas S
...
February 16, 2023 at 1:02 pm
I have a memory optimized table with identity column.
Can you use a sequence instead. A sequence can be CYCLEd.
February 15, 2023 at 7:50 pm
I would be inclined to install and run these scripts first before getting involved with XEs:
https://www.brentozar.com/first-aid/
February 14, 2023 at 8:59 pm
Viewing 15 posts - 181 through 195 (of 1,418 total)