skip to Main Content

OPENJSON and incremental value

I'm trying to parse the following JSON document : DECLARE @doc nvarchar(max) = ' { "0": { "start_time": "1685959230501", "timestamp": "10:00:30", "running_time": "1.2s", }, "1": { "start_time": "1685959230502", "timestamp": "10:00:30", "running_time": "1.2s", }, "2": { "start_time": "1685959230886", "timestamp": "10:00:30", "running_time":…

VIEW QUESTION

How can I rewrite this?

Trying to figure out how to convert multiple rows of data to a single row of KeyValue array Setup: using MS SQL SERVER 2017 raw data: Select s.id, s.FkId, s.name ,s.value from tbl s where FkId = 1024180 id |…

VIEW QUESTION

Azure devops test database

Goal I would like to have a solution, that among other things includes an SQL Server Database Project and a Unit Test Project. (+ integration test project?) That solution is going to be source controlled by a git repository on…

VIEW QUESTION

Ubuntu – using libtdsodbc.so in a docker container

I am having a mssql server running in docker, I want to connect the server using sqlalchemy For connecting, I am using this connection string, engine = create_engine( 'mssql+pyodbc:///?odbc_connect=%s' % ( urllib.parse.quote_plus( 'DRIVER={/usr/lib/x86_64-linux-gnu/odbc/libtdsodbc.so};SERVER=localhost;' 'DATABASE=ap;UID=sa;PWD=admin@123;port=1433;' )), ) For this, I got…

VIEW QUESTION
Back To Top
Search