Viewing 15 posts - 736 through 750 (of 754 total)
The trigger (and insert) would be on the view if you're trying to prevent insert into dbo.Badgeid and instead insert into Badgeid2.
Are you saying you also still want data inserted...
August 25, 2020 at 1:19 pm
August 24, 2020 at 10:23 pm
Not the original question, but bubbling up unchanged error is another advantage of THROW. If you want to bubble up the error, unchanged, you can simply call THROW, and it...
August 5, 2020 at 3:41 pm
"SELECT CASE WHEN NULL = NULL THEN 'No' ELSE 'Yes' END AS Result
Result would be no because one null value cannot be equal to another because null means 'UNKNOWN'."
Perhaps just...
July 1, 2020 at 1:55 pm
You probably want a covering index like:
CREATE NONCLUSTERED INDEX ncix_PropertyProduct_Cover ON dbo.PropertyProduct
(
Warehouse ASC,
Product ASC
)
INCLUDE(Id,PropertyId,Value);
June 9, 2020 at 1:13 pm
SELECT CAST(ROUND(COLUMN_A*100.0/(CASE WHEN COLUMN_B = 0 THEN -1 ELSE COLUMN_B END),2) as decimal(5,2)) as "Percentage"
You lost the ROUND() function's length parameter in that version
April 14, 2020 at 9:21 pm
You can use gzip. But make sure you use 7z.exe, not 7za.exe -- https://sevenzip.osdn.jp/chm/cmdline/index.htm:
7za.exe supports only 7z, xz, lzma, cab, zip, gzip, bzip2 and tar formats.
https://sevenzip.osdn.jp/chm/cmdline/switches/type.htm:
If -t{archive_type} switch is not...
March 24, 2020 at 1:55 pm
Use the command line executable: https://sevenzip.osdn.jp/chm/cmdline/index.htm
March 24, 2020 at 1:26 pm
DENY CONNECT ANY DATABASE TO [login]
March 24, 2020 at 1:16 pm
I don't have a solution to the problem as stated, but as a workaround, my suggestion/question would be:
Could you just create a subscription with the report rendered as a PDF? ...
March 20, 2020 at 10:24 pm
Is ProximityCardNumber really an nvarchar(11)? Does it really need to be? (Not if ProximityCardNumbers are numeric strings like the sample... Of course, if this this a vendor database, your control...
February 24, 2020 at 10:41 pm
https://www.diva-gis.org/gdata
https://hub.arcgis.com/datasets/a21fdb46d23e4ef896f31475217cbb08_1
https://gadm.org/download_country_v3.html
http://www.maplibrary.org/library/index.htm
And many others of varying reliability.
You'll need to use a GIS converter to import into SQL Server.
February 13, 2020 at 2:16 pm
To get plan reuse, you need to use stored procedures or parameterized queries: https://www.red-gate.com/simple-talk/sql/t-sql-programming/performance-implications-of-parameterized-queries/
October 22, 2019 at 1:20 pm
2005.
Both work, but sp_change_users_login "is in maintenance mode and may be removed in a future version of Microsoft SQL Server."
October 15, 2019 at 1:24 pm
Fortunately, it's as simple as wrapping the database name in brackets -- i.e.,
BACKUP DATABASE [update] TO DISK = N'C:\SQLBackups\update.bak' WITH INIT
Your vendor is at best, uninformed about...
August 23, 2019 at 1:22 pm
Viewing 15 posts - 736 through 750 (of 754 total)