Viewing 15 posts - 16 through 30 (of 66 total)
You can't parameterize a from clause. You could parameterize the WHERE clauses.
You could concatenate the table type into dynamic sql as described her: https://odetocode.com/articles/365.aspx
Sorry I dont understand...
March 28, 2023 at 1:51 pm
Hi Jonathan
thank you very nuch for that. yes the JSON should have been passed in the parm declaration . I now realize that
February 3, 2023 at 2:54 pm
I want to reseed the Value as Im then processing values using a loop , sequentially steping through the records
So i have something like this
SELECT
@VinCounter = MIN([ID]),
@VinMaxCounter = MAX([ID])
FROM
[#Items]
WHILE @VinCounter...
January 23, 2023 at 1:02 pm
Hi Ratbak
Thank you very much for that. That works perfectly!
January 11, 2023 at 3:33 pm
OK so the owner of the database is a user called 'Ci'
So does that mean if i wanted to refresh/update the database , then i should be using the user...
January 4, 2023 at 4:53 pm
Hi guys
thanks for your responses on this
We were running the query on SSMS connected to Azure
Now we done some testing with our deployment. We deployed out of 'Net Rider using...
November 17, 2022 at 5:18 pm
Hi guys
I figured this out . Need to create a user to create the database but you must specfy the following :
EXEC sp_addrolemember 'dbmanager', 'Ci';
EXEC sp_addrolemember 'loginmanager', 'Ci';
November 14, 2022 at 8:48 pm
Hi marc
thanks for that. I guess the key to it, is when you see a JSON array that you treat it like this
ReadingsDto NVARCHAR(MAX) '$.ReadingsDto' AS JSON
And then use OpenJson...
October 6, 2022 at 9:18 pm
Hi Drew
If there is more than more collection of Channels, ie more than 1 channel ID, how do i get that out ?
because at the moment when i run this...
October 6, 2022 at 7:52 pm
Hi Drew
thansks vey much for that. I should have spotted it was 2 arrays of JSON
I made a slight alteration....removed the [0] from the end of the items array and
also...
October 6, 2022 at 7:44 pm
No I havent added the variable to the SQLCMD variable collection in Database Properties
I am using jet brains rider. Do you know how I can add the variable into the...
October 3, 2022 at 1:44 pm
sorry Phil.. I figured it out
/p:CreateNewDatabase=False
September 27, 2022 at 4:00 pm
thanks Phil
I tried this in my arguments
/p:CreateNewDatabase:False
and i got the following error message:
'CreateNewDatabase:False' is not a valid argument for the 'Publish' action.
September 27, 2022 at 3:58 pm
Thanks Phil. Yeah I saw that article and tried cmd.Parameters.Clear but to no avail.
June 17, 2022 at 2:48 pm
Viewing 15 posts - 16 through 30 (of 66 total)