Viewing 15 posts - 31 through 45 (of 708 total)
You can use LIKE in natively-compiled procedures, and that's enough:
-- Declare 2 strings: one with a bad character, and one without
DECLARE @BadChar varchar(128) = 'A funky char...
February 5, 2023 at 2:03 pm
"I have to say that I don't understand the "/SQLSVCACCOUNT" switch or why its needed, but that seems to work."
SQL Express does not run as a program like the application...
January 16, 2023 at 11:45 pm
You are correct in that SQL Server cares not what the source of the certificate is - an X.509 cert is an asymmetric key pair in a specific format. It's...
January 16, 2023 at 11:34 pm
A Data Space is either a Filegroup or a Partition Scheme. Everything showing in your result with a Data Space Name that isn't a filegroup (or has a data_space_id that...
September 22, 2022 at 8:16 pm
Check the Licensing Guide for SQL server (https://download.microsoft.com/download/e/2/9/e29a9331-965d-4faa-bd2e-7c1db7cd8348/SQL_Server_2019_Licensing_guide.pdf)
That doc is for 2019, but the relevant section hasn't changed for several versions.
Search the Licensing Guide for 'Downgrade rights'. A license for...
September 21, 2022 at 7:05 pm
You PIVOT to turn row values into column names.
SQL Server does not provide dynamic PIVOT, you must specify the names for the new columns you want returned.
Because 'Dry', 'Fine' ('Fines'...
August 1, 2022 at 7:51 pm
Add the 'ALL' option to your WHERE clause:
WHERE @Daygroup = 'ALL' OR DayGroup = @Daygroup
July 15, 2022 at 10:06 pm
You need to provide an alias for the derived table in the query:
from (select T0.ID,T1.SID,[dbo].[Planning](T1.Id,T0.SId) as Status
...
July 8, 2022 at 4:44 pm
Instead of migrating, I'd just restore the database 6 times under 6 different names, then drop what isn't needed from each of them.
If you have foreign key constraints between tables...
May 17, 2022 at 4:33 pm
Certification is a learning path that forces you out of your comfort zone.When I see someone with certs on their resume, I at least know they tried to get out...
May 13, 2022 at 7:23 pm
If the connection's setting for CONCAT_NULL_YIELDS_NULL is ON (which must often be set to ON depending on use of other features), then adding a NULL string to a value string...
May 8, 2022 at 6:17 pm
The problem with using IP address alone is that there's no indication that you wish to connect to the specific \SQLSRVR2008 instance.
If you set the IP port number for the...
May 6, 2022 at 6:24 pm
Wrap the value of "riskDataRepeating" with braces (" { } ") instead of brackets (" [ ] "):
DECLARE @J2 NVARCHAR(MAX)
SET @J2 = '{
"riskDataRepeating": {
"TEST": [
{
"riskDataItem": {
"dataId": 123,
"label":...
May 6, 2022 at 6:16 pm
The Serial value and the Queue name are both children of the queue nodes. Just use the path to the Serial value.
SELECT doc1.col.value('(@id)[1]', 'varchar(64)') ...
April 18, 2022 at 4:06 am
SQL Server 2017 Developer Edition: https://go.microsoft.com/fwlink/?linkid=853016
That download is a small file; running it lets you choose to install directly or download the installation media.
April 16, 2022 at 6:23 pm
Viewing 15 posts - 31 through 45 (of 708 total)