Category: Database

Powershell – Getting tables from a SQL Server database

c:\Users\adm-showard>powershell Windows PowerShell Copyright (C) 2009 Microsoft Corporation. All rights reserved. PS C:\Users\adm-showard> $sqlConn = New-Object System.Data.SqlClient.SqlConnection PS C:\Users\adm-showard> $sqlConn.ConnectionString = “Server=CMHWPSWSQL1201;Integrated Security=true;Initial Catalog=SWNetPerfMon” PS C:\Users\adm-showard> $sqlConn.Open() PS C:\Users\adm-showard> $sqlcmd = $sqlConn.CreateCommand() PS C:\Users\adm-showard> $sqlcmd = New-Object System.Data.SqlClient.SqlCommand PS C:\Users\adm-showard>…

Finding client side port in Oracle

select machine||’:’||port from gv\$active_session_history where machine like ‘%app01%’ and inst_id = 1″ | sort -u ———————————————————— MACHINE||’:’||PORT             hostname.domain:34218 MACHINE||’:’||PORT             hostname.domain:34252 MACHINE||’:’||PORT             hostname.domain:34312 MACHINE||’:’||PORT             hostname.domain:34313 MACHINE||’:’||PORT             hostname.domain:34314 MACHINE||’:’||PORT             hostname.domain:34317 MACHINE||’:’||PORT             hostname.domain:34319 MACHINE||’:’||PORT             hostname.domain:34326 MACHINE||’:’||PORT             hostname.domain:34328 MACHINE||’:’||PORT             hostname.domain:34331 MACHINE||’:’||PORT             hostname.domain:34332 MACHINE||’:’||PORT             hostname.domain:34334…

NodeJS, MySQL beacon app

A future post will detail the Android app we built for testing this POC. As always, our goal is to use kinetic learning to drive conversation. In other words, none of this is production ready, it’s simply tools to allow…