Viewing 15 posts - 211 through 225 (of 8,760 total)
When it comes to validating usersβ input, dynamic SQL or not, I like to use the belt and braces method of validating the input by running it through the sys.dm_exec_describe_first_result_set...
November 23, 2022 at 12:47 pm
Comma is not an escape character in JSON (towards the bottom of the page) π
M$-JSon might not be strict π
π
November 22, 2022 at 7:04 pm
Quick thought, this can be simplified by using OPENJSON
π
Here is an example:
USE TEEST;
GO
SET NOCOUNT ON;
GO
---------------------------------------------------------------------
-- Declare the test variable
---------------------------------------------------------------------
DECLARE @TSTRING NVARCHAR(MAX) = N'["Acct Vert - Chemical","Acct Vert...
November 22, 2022 at 2:48 pm
You might want to read up on Foreign Keys
π
November 22, 2022 at 1:50 pm
Log entry: Error: 17806, Severity: 20, State: 14. SSPI handshake failed with error code 0x8009030c, state 14 while establishing a connection with integrated security; the connection has been closed....
November 21, 2022 at 2:24 pm
Start with a simple aggregation and work from there!
π
Here is the first part:
SELECT
COUNT(T.BookId)
,T.TransferDate
,T.BookStatus
FROM dbo.Transfer T
GROUP BY T.TransferDate
...
November 18, 2022 at 4:31 pm
I did not get the second part of the suggestion though. I already have a clustered index which is my primary key (tenantId, id). did you mean that I...
November 18, 2022 at 2:54 pm
What other info can I provide?
thx.
What other info can I provide?
thx.
To start with:
November 18, 2022 at 2:18 pm
There are around 35 fields defined in the table.. 13 non-clustered indexes, and triggers on the table to boot..
I was hoping I could get away with the alter....
Thanks
As I...
November 18, 2022 at 1:17 pm
For a simple row count, you can query sys.dm_db_partition_stats.
π
Suggestions:
November 18, 2022 at 1:08 pm
The simplest way would be to create a new table, insert the data from the original table, rename both tables and run an update to catch any changes made between...
November 18, 2022 at 12:37 pm
Hello All,
My first statement works but performs poorly. Subsequent statements generate errors.
Any insight into why the error? Any alternate syntaxes that might work that I can try on my...
November 13, 2022 at 3:45 pm
Here is a suggestion that should get you passed this hurdle
π
USE TEEST;
GO
SET NOCOUNT ON;
GO
---------------------------------------------------------------------
-- SAMPLE DATA AS POSTED
---------------------------------------------------------------------
;WITH SAMPLE_DATA(listing_id, [date], available, price) AS
(
SELECT...
November 13, 2022 at 2:30 pm
I'm thinking that they've stretched Steve a bit too far... I can't even get an acknowledgment to the two emails that I've sent the WebMaster about the email notifications.
Just...
November 12, 2022 at 1:00 pm
Viewing 15 posts - 211 through 225 (of 8,760 total)