Quantcast
Channel: SQL Server Data Access forum
Viewing all 4164 articles
Browse latest View live

SQL Driver Version 17 on Windows 7 Pro to SQL 2008R2 Error

$
0
0
An upgrade to latest SQL Odbc Driver (17.2) fails to connect to SQL 2008R2 for Windows 7 Pro workstations but works fine on Windows 10 Pro.  All running fine on Odbc Driver 11.  Error on Windows 7 workstations indicates "certificate chain was issued by an authority that is not trusted".  If I go back to Version 11 all is fine.  We need to go to Version 17 as we are upgrading SQL to 2017 version soon.

SQL 2016 Windows Authentication

$
0
0

We have 2 servers with SQL 2016 Standard instances installed with identical SP1 and CU.

When I try to connect from first to second server using Management Studio via Windows Authentication it goes fine.

But when from second to first I get error screen below:

 

However SA authentication works ok.

All instances running under domain account (was erased yellow brush due to security) which is local administrator.

Any idea ? Thanks in advance.

SQL 2017 issue: OPENROWSET with Microsoft.ACE.OLEDB.16.0

$
0
0

Hello people,

Weird issue here...

3 new Microsoft SQL Server 2017 (RTM-CU10) (KB4342123) - 14.0.3037.1 (X64)   on Windows Server 2016 Datacenter 10.0 <X64> (Build 14393: ).

I want to access data across a shared folder on the network, and here is the issue happening with the 3 new servers:

In SSRS I open a Query window and type these:

1st Code

SELECT *
FROM OPENROWSET(
'Microsoft.ACE.OLEDB.16.0',
'Excel 12.0;
Database=\\ServerName\DATA\Excelfile.xls',
'SELECT * FROM [data]')


2nd Code:

SELECT *
FROM OPENROWSET(
'Microsoft.ACE.OLEDB.16.0',
'Excel 12.0;
Database=\\FQDN\DATA\Excelfile.xls',
'SELECT * FROM [data]')

3rd Code:

SELECT *
FROM OPENROWSET(
'Microsoft.ACE.OLEDB.12.0',
'Excel 12.0;
Database=\\ServerName\DATA\Excelfile.xls',
'SELECT * FROM [data]')

3th Code:

SELECT *
FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0',
'Excel 12.0;
Database=\\FQDN\DATA\Excelfile.xls',
'SELECT * FROM [data]')


Now the problem:  Every code that doesn't have a FQDN will not work and give me this error:

Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "Microsoft.ACE.OLEDB.16.0" for linked server "(null)" reported an error. The provider did not give any information about the error.
Msg 7303, Level 16, State 1, Line 1
Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.16.0" for linked server "(null)".

If there us a FQDN in the code, it works fine.

I did try with my SQL 2008 with the same path, only with OLEDB 12.0, but it works fine with both type of request (FQDN and ServerName).

Now in itself you'd say that is not a real big issue, just add the FQDN instead, but there is so many application to change that it makes no sense, there must be something to fix this.

The File server is clustered, and I am just saying because if I tried both way on my computer it worked, but as soon as I get on a clustered shared folder it seems to fail...

Any Ideas?


Unable to Restore Data From Transaction Log Backup

$
0
0

Hi All,

I am new to SQL DBA.

I have tried with following scenario with SSMS.

I have database 'db1' and table 'tb1'. Table tb1 contains 6 records and taken full backup at 01:00 AM.

Added 3 more records (Total 9 records) to 'tb1' table at 01:02 AM and taken Transaction Log backup.

Updated Number column to '0' in 'tb1' table at 01:05 AM

Now I need to restore the database before 01:04 AM. So I get the 9 records and Number column data(Non Zero).

Restored the full database with "Overwrite the existing  Database (WITH REPLACE)" and "Leave the database non-operational ..." options.

Restored the transaction Log backup with "Overwrite the existing  Database (WITH REPLACE)" and "Leave the database ready to use" options.

After this I have checked the data in 'tb1', I get the data from full backup, not from the Transaction Log backup.

Do I miss anything?

Please help me.

SQL 2008 R2 SP3

Thanks,

Ramaraju

IMPORT FLAT FILE

$
0
0

Hi Team,

I want to import flat file into the sql server database but the flat file is Un structured data,i have attached one row of my flat file data.

00:30:05.2208 Info {"message":"Reading Configuration file","level":"Information","log Type":"User","time Stamp":"201-18T00:30:05.2208725-04:00","fingerprint":"7cec6642-5fc9-4bb6-9367-0aa32d0","windows Identity":"GZ\\rpa","machine Name":"IMATION-48","process Name":"ZoomInfo_2.0","processVersion":"1.0.6858.27608","file Name":"Main","job Id":"1ba-17f-468-a20-4fc96438","robot Name":"G\\RPA"}

Here,

INFO,LEVEL,LOG TYPE,USER,FINGERPRINT,WINDOWS IDENTITY,MACHINE NAME,PROCESS NAME,PROCESS VERSION,FILENAME,JOB ID,ROBOT NAME.

Like these i am having 200 rows while importing its taking data including column name under each column 0,column 1 etc.

How can i split each column name on each rows ??? to import into SQL?

How To Restore Database in Point-In-Time Using SSMS

$
0
0

Hi,

I am new to SQL, I tried restoring database with transaction log, unable to get the data.

Do I need any setups?

SQL 2008 R2 SP3

Thanks,

Ramaraju

Cannot create an instance of OLE DB provider MSDASQL for linked server

$
0
0

 

When I use the "test connection" for my linked server from SQL Server 2005 to DB2 on IBM - the connection works.  But when I try to access the Linked Server from the SqlClient - I'm getting the "Create create and instance of OLD DB Provider MSDASQL for linked server" error.  Here is the stack trace.  Any help on this would be greatly appreciated.

 

System.Data.SqlClient.SqlException was caught

Message="Cannot create an instance of OLE DB provider \"MSDASQL\" for linked server \"JOBCOST\"."

Source=".Net SqlClient Data Provider"

ErrorCode=-2146232060

Class=16

LineNumber=1

Number=7302

Procedure=""

Server="LGMDEV01"

State=1

StackTrace:

at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)

at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)

at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)

at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)

at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()

at System.Data.SqlClient.SqlDataReader.get_MetaData()

at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)

at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)

at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)

at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)

at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)

at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)

at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)

at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)

at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)

at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)

at ForecastService.GetJobPeriods(Guid TransactionID, String JobCode, NetworkCredential JdeCredentials) in c:\ForecastingService\App_Code\ForecastService.cs:line 657

Transposing repeated rows of datetime into columns in SQL 17

$
0
0

I am working with a dataset of inpatient data in SQL version 17. The fields contain anonymized ID, admission data, discharge date <g class="gr_ gr_13 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-ins replaceWithoutSep" data-gr-id="13" id="13">and</g> other relevant fields. Since some of the patients are readmitted, the ID field is not unique. The table looks like this: ID AdmDate1 DischDate
10001 2012-10-16 2012-10-26 10001 2014-06-15 2014-06-18 10001 2014-12-21 2014-12-29 10002 2013-02-14 2013-02-20 10003 2013-01-23 2013-01-31 10004 2012-11-15 2012-11-19 10004 2014-09-26 2014-10-06 10005 2014-12-12 2014-12-23 10006 2013-10-23 2013-10-28 Since I want to calculate readmission rate and intervals between readmissions, I want to <g class="gr_ gr_11 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del" data-gr-id="11" id="11">creat</g> a table like this: ID AdmDate1 AdmDate2 AdmDate3 DischDate1 DischDate2 DischDate3
10001 2012-10-16 2014-06-15 2014-12-21 10002 2013-02-14 None None Could anyone help me? Thanks in advance.


Error Number:18456,State:1,Class:14 Login failed for user 'sa'.

$
0
0

I'm trying to learn to perform CRUD operations in VS Code with MVC architecture using database first approach and Entity Framework.

I'm following (this link) to add add model from database. I have created database in SQL Sever and am using SQL Server Authentication to log in.

According to the link i'm following this is the command i'm running to add model in the integrated terminal in VS Code.

dotnet ef dbcontext scaffold "Server=xxx\xxx;initial catalog=xxx;user id=sa;password=xxxxx;" Microsoft.EntityFrameworkCore.SqlServer -o Models -c "xxxxxx"

output:

System.Data.SqlClient.SqlException (0x80131904): Login failed for user 'sa'.
   at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling)
   at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
   at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
   at System.Data.SqlClient.SqlConnection.Open()
   at Microsoft.EntityFrameworkCore.SqlServer.Scaffolding.Internal.SqlServerDatabaseModelFactory.Create(DbConnection connection, IEnumerable`1 tables, IEnumerable`1 schemas)
   at Microsoft.EntityFrameworkCore.SqlServer.Scaffolding.Internal.SqlServerDatabaseModelFactory.Create(String connectionString, IEnumerable`1 tables, IEnumerable`1 schemas)
   at Microsoft.EntityFrameworkCore.Scaffolding.Internal.ReverseEngineerScaffolder.ScaffoldModel(String connectionString, IEnumerable`1 tables, IEnumerable`1
schemas, String namespace, String language, String contextDir, String contextName, ModelReverseEngineerOptions modelOptions, ModelCodeGenerationOptions codeOptions)
   at Microsoft.EntityFrameworkCore.Design.Internal.DatabaseOperations.ScaffoldContext(String provider, String connectionString, String outputDir, String outputContextDir, String dbContextClassName, IEnumerable`1 schemas, IEnumerable`1 tables, Boolean useDataAnnotations, Boolean overwriteFiles, Boolean useDatabaseNames)
   at Microsoft.EntityFrameworkCore.Design.OperationExecutor.ScaffoldContextImpl(String provider, String connectionString, String outputDir, String outputDbContextDir, String dbContextClassName, IEnumerable`1 schemaFilters, IEnumerable`1 tableFilters, Boolean useDataAnnotations, Boolean overwriteFiles, Boolean useDatabaseNames)
   at Microsoft.EntityFrameworkCore.Design.OperationExecutor.ScaffoldContext.<>c__DisplayClass0_1.<.ctor>b__0()
   at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.<>c__DisplayClass3_0`1.<Execute>b__0()
   at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action)
ClientConnectionId:b8ed46b8-af23-4235-9338-c63e8ed9d8f2
Error Number:18456,State:1,Class:14
Login failed for user 'sa'.

My 'sa' user is enabled and i'm able to do all the operation with it perfectly fine in SQL Server Management studio as well as was able to connect to database with code first approach with 'sa' user and its also working fine, this issue is just with the database approach while creating the Model class when I run that above command and I'm using the same connection string which I used in code first approach.

I'm trying to learn MVC using VS Code so if you could provide other reference to help me learn will also be of great help.


Connecting MySQL from SQL Server Management Studio

$
0
0
Is it possible to connect MYSQL from SQL Server Management Studio? If possible, am i able to create a stored procedure to access data from both the database(SQL server and MYSQL).

2017 Developer periodically stops accepting TCP connections from web pages

$
0
0

I recently replaced a 2014 Community verison with 2017 Developer version on my Win 10 laptop.  I enabled TCP in all the protocols and things worked fine... for a while.   I'm accessing the db from .asp's and .aspx's in my web application via TCP.  The .asp's use Server.CreateObject("ADODB.Connection") and the .aspx's use DbProviderFactories.GetFactory("System.Data.SqlClient") to access the database using connection strings for the desired database (there are many).

This all works fine for a period of time (varies greatly) and then I start getting timeouts and an error saying access is denied or the server doesn't exit!

I have to restart the SQL service to get things to work again.  What have I messed up??

Deleting data from a database in all table for more than 1 month

$
0
0

Hi there...Can you pls mention commands to delete last one month worth of data from a DB (SQL Server 2016 in a lab environment) as a DB is growing faster. Also suggest a best practice do that, pls let me know.


VT


Tuning - SQL Queries and Execution plans

$
0
0

Hello Experts,

I have a query which needs optimization and its revised, but not sure if it is efficient and good enough to go with.

Could you please shed some light and help optimize the query Also brief your analysis of both the execution plans.

Thanks a ton in advance, let me know if you need any more information.


Original Query :

------------------

select 
  DT.classid, 
  sum(IT.expectedAmount) as expAmt, 
  sum(IT.debitAmount) as debAmt 
from 
  pcwdeptrans DT 
  INNER JOIN pcwitemtotal IT ON DT.id = IT.deposittransid 
  LEFT OUTER JOIN pcwdepreceipt DR ON DR.deposittransid = DT.id 
where 
  (
    (
      DT.stateCode in (2, 3, 5, 6, 7, 8, 12, 13) 
      and DR.requestTime >= '2018-10-24 00:00:00' 
      and DR.requestTime <= '2018-10-24 23:59:59' 
      and DR.userid = 2300000320757
    ) 
    or (
      DT.stateCode = 0 
      and IT.stateCode = 8 
      and IT.createDate >= '2018-10-24 00:00:00' 
      and IT.createDate <= '2018-10-24 23:59:59' 
      and IT.userid = 2300000320757
    )
  ) 
group by 
  DT.classid 
order by 
  DT.classid

Revised Query (removed one of the filters which were twice) :

---------------------------------------------------------------------------

select 
  DT.classid, 
  sum(IT.expectedAmount) as expAmt, 
  sum(IT.debitAmount) as debAmt 
from 
  pcwdeptrans DT 
  INNER JOIN pcwitemtotal IT ON DT.id = IT.deposittransid 
  LEFT OUTER JOIN pcwdepreceipt DR ON DR.deposittransid = DT.id 
where 
  (
    (
      (
        DT.stateCode in (2, 3, 5, 6, 7, 8, 12, 13) 
        or (
          DT.stateCode in (0) 
          and IT.stateCode = 8
        )
      ) 
      and DR.requestTime >= '2018-10-24 00:00:00' 
      and DR.requestTime <= '2018-10-24 23:59:59' 
      and DR.userid = 2300000320757
    )
  ) 
group by 
  DT.classid 
order by 
  DT.classid

Attaching Executions Plans of the above Queries:

Actual_Query_Execution_plan

Revised_Execution_Plan


Kenny ShareNlearn

Linked Server Connection String ??

$
0
0

 

What is the connection string for access a database of a linked server in sqlserver

 

Thanks

 

I add a linked server (another sqlserver server2) to my sqlserver(server1) , I need make a sqlconnection to the linked server connecting my sqlserver (server1)

Linked server connection issue

$
0
0


I can no longer link to a specific sql express server (on Windows Server 2008) from my local sql express server (On Windows 10 Enterprise). Both are SQL server 2017 and I have installed both with default configurations.

I had this working without any issues a week ago. But then I had my PC switched for a new one. (The old were running Windows 7)

I think I have verified that I can reach the server and that my credential gets passed through because

     I can connect to the server using SSMS on my local PC and it works as expected 

    I can also connect to the server from MS access 

But I fail when I try to make a linked server connection (Error message below, Sorry not allowed to insert images) and I have tried with all four security contect options

Would be great if someone could point me in some direction




Question: Application crashes while calling stored procedure....

$
0
0

Hi all.

A dev has just asked me a question about the following scenario:

A .Net application is designed to process 5000 rows of data by calling a stored procedure. Data process happens in one transaction. What would happen to the transaction if the application crashes mid-way through the transaction?

Would it be killed/rolled back or continue on it's merry way without the application working? Or maybe even hang the transaction completely and potentially lock the table?

Thanks in advance.

SQL Server access is lost again

$
0
0

It happened to me before a dozen times. One of the thread that I left is here. I followed the instructions posted. My OS is Windows 10 and I think it is a major part of the problem if not de problem. It is a horrible OS with bloatware and advertising that is not removable. The booting time is close to 5 minutes, sometimes longer.

Anyhow I followed the instructions in the thread I posted, checked the Configuration Manager, and ALL items: shared memory, named pipes, TCP/IP are enabled for MSSQLSERVER but not for the Express, but I don't use Express. I cannot figure out how to examine TCP/IP ports. It is Windows 10 OS and they did everything to block your access to software. The ads are in your face all the time. I useSQL Server Developer 2017. It is default instance, not named instance. I've worked with it for about 3-5 weeks with no problem. I worked with it yesterday until late. Everything was fine. A few days ago I backed up the database I use in three external hard drives. Everything was OK. This morning after I booted my HP Pavilion I got the error message that is posted in the thread I offered with its link:"The system cannot find the file specified"

Why cannot it find the file specified? The file has not been moved.

My recollection is that in the past I've solved identical problem by uninstalling and reinstalling SQL Developer. I am tired of it. Microsoft writes defective, incompetent software. I can see it when I work with Windows 10. It is so much inferior to Windows 7 or non-Microsoft OS's like Ubuntu.

I wonder if I am alone in the wilderness or other people run in the same problem once in a while. I have a C# Windows Forms application that taps the Server. I still do a lot of development but also I use it to store documentation: my appointments, my wife's appointments, etc. It is all inaccessible now. Darn Microsoft. As I said, I've had this problem a number of times before.

I am on vacation I specially took to work on my projects. Darn. Ironically, the previous connection loss also happened when I was on vacation.

- MyCatAlex




Changing tcp/ip keepalive settings for ODBC Driver 13 for SQL Server

$
0
0

The SQL Server Configuration Manager allows you to change TCP/IP Keep Alive settings under SQL Native Client 11.0 Configuration -> Client Protocols -> TCP/IP.

Are the [ODBC Driver <nn> for SQL Server] driver connections to sql server affected by these settings?

If not, is there a way to adjust the tcp/ip keepalive settings for connections made with these drivers (MSODBCSQL<nn>.DLL) ?

Preferably without changing the registry.

Thanks,

Gudmundur


Gudmundur Karlsson

Is sqlsrv32.dll 32-bit or 64-bit?

$
0
0
I have a 32-bit program that creates 32-bit ODBC data sources.  It works fine on XP and 64-bit Windows 7 Enterprise.  Of course I understand on 64-bit Win7 the 32-bit datasources will be written to:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBC.INI

instead of:

HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI

I am fine with this.  What troubles me is that my program reads the 32-bit ODBC install, SQL Server, driver value from here:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBCINST.INI\SQL Server\Driver

to find out the appropriate 32-bit ODBC SQL Server driver that my program in turn rights here:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBC.INI\<datasource_name_here>\Driver

I'm finding that the default value for 64-bit Windows 7 Enterprise here:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ODBC\ODBCINST.INI\SQL Server\Driver

is as follows:

%WINDIR%\system32\sqlsrv32.dll

Why this value?  Why not this:

%WINDIR%\SysWoW64\sqlsrv32.dll

Furthermore it doesn't seem to matter what's in that keyvalue for ODBC.INI/<datasource_name_here>/Driver.  I can change it to FOOBAR and my 32-bit ODBC data source still works.

On the other hand if I put FOOBAR for the keyvalue for ODBCINST.INI/SQL Server/Driver, the ODBC connectivity fails with the error message: "Specified driver could not be loaded due to system error  126: The specified module could not be found. (SQL Server, FOOBAR).  OS Error 126 The specified module could not be found."

So %WINDIR%\system32\sqlsrv32.dll is clearly being used even though the path suggests a 64-bit DLL.  Anyone have a clue on what's going on here?

JSON to SQL SERVER

$
0
0

Hi,

I have created a table of my json file in sql.After extracting json format still getting null values under each colum.Here is my code,

Can anyone help me to get my values?its urgent

SELECT id, rpa from table4 cross apply openjson (rpa,'$.Info') 
With (
Message Varchar(5000),
Level Varchar(5000), 
LogType varchar(5000),
Timestamp Varchar(5000),
Fingerprint Varchar(5000),
WindowsIdentity Varchar(5000),
MachineName Varchar(5000),
ProcessName Varchar(5000),
ProcessVersion Varchar(5000),
FileName Varchar(5000),
JobId Varchar(5000),
RobotName Varchar(5000)) 
as Dataset
Go

SELECT * from table4 cross apply openjson(rpa,'$.Info') 
With (
[Message] Varchar(5000)'$.Message',
[Level] Varchar(5000)'$.Level', 
[LogType] varchar(5000)'$.LogType',
[Timestamp] Varchar(5000)'$.Timestamp',
[Fingerprint] Varchar(5000)'$.Fingerprint',
[WindowsIdentity] Varchar(5000)'$.WindowsIdentity',
[MachineName] Varchar(5000)'$.MachineName',
[ProcessName] Varchar(5000)'$.ProcessName',
[ProcessVersion] Varchar(5000)'$.ProcessVersion',
[FileName] Varchar(5000)'$.FileName',
[JobId] Varchar(5000)'$.JobId',
[RobotName] Varchar(5000)'$.RobotName') 
as rpa
Go

  
Viewing all 4164 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>