Friday, January 13, 2023
Some Dotnet Core Command
Wednesday, January 4, 2023
Dynamic Create N level Navigation menu using JQuery and CSS
For creating n level of dynamic navigation we required first data in JSON format.
Code base i will upload here.. including CSS and JS Complete code reference.
Working Code bundle is (Due to Code CSS application design is completed vanished ignore for outer design) Click Here for
Source Code and Preview is availble below
Jquery Loop for Object, Array Loop, Object loop, Sorting, Finding data in Nested array
I found very good article here please visit here.
https://stackoverflow.com/questions/16626735/how-to-loop-through-an-array-containing-objects-and-access-their-properties
Sunday, November 20, 2022
Oracle Query to Get Database Information like Version, db size, avilable size, file location
select round(sum(used.bytes) / 1024 / 1024 / 1024 ) || ' GB' "Database Size"
, round(sum(used.bytes) / 1024 / 1024 / 1024 ) -
round(free.p / 1024 / 1024 / 1024) || ' GB' "Used space"
, round(free.p / 1024 / 1024 / 1024) || ' GB' "Free space"
from (select bytes
from v$datafile
union all
select bytes
from v$tempfile
union all
select bytes
from v$log) used
, (select sum(bytes) as p
from dba_free_space) free
group by free.p;
SELECT version FROM V$INSTANCE; --11.2.0.1.0
SELECT * from PRODUCT_COMPONENT_VERSION; -- Get detailed version
SELECT * from dba_data_files ; --Get Physical file
SELECT * from V$SESSION Where Status='KILLED'; -- Get Oracle connected sessio list
SELECT * from V$SQL ;-- Get All Executed Query details
Tuesday, September 13, 2022
GRPC Client and Service Service/API Creation on Asp.net, C#
GRPC service is work when user/developer don't want make customer to ideal when during long data pulling from API/Rest server. on this case ideally on websites we shows a loader or ask for wait to customer. Tippically on webservice/ API/ Rest all client services will not respond untill server side process complete. but on gRPC there is an advantage we can get the data into chunk.
On gRPC when data is iterating on server side still we can get the row by row/ chunk of data recevied from gRPC service and that application can shows on front end.
I learned the same on you tube "https://www.youtube.com/watch?v=CcbwRBT8vnI"
Sample Code i have prepared for my testing purpose and uploaded the same on my drive. Click here to download if readmade code you want.
Tuesday, September 6, 2022
Oracle DB Query tips
1. Get Table Size and Rows Details
select * from user_tables where table_name = 'TBL_XXXXXXXX'
2.
Monday, July 11, 2022
Read Excel Data From Oracle Database
using System.Data.OleDb;
protected DataSet ReadExcel()
{
// Create a DataSet which will hold the data extracted from the worksheet.
DataSet ds = new DataSet();
string xls = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\murdhusi\Desktop\Mails\Data_29062022.xlsx;Extended Properties=Excel 8.0";
string xlsx = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\murdhusi\Desktop\Mails\Data_29062022.xlsx;Extended Properties=Excel 12.0";
string connString = xlsx;
// Create the connection object
OleDbConnection oledbConn = new OleDbConnection(connString);
try
{
// Open connection
oledbConn.Open();
// Create OleDbCommand object and select data from worksheet Sheet1
OleDbCommand cmd = new OleDbCommand("SELECT * FROM [Export Worksheet$]", oledbConn);
// Create new OleDbDataAdapter
OleDbDataAdapter oleda = new OleDbDataAdapter();
oleda.SelectCommand = cmd;
// Fill the DataSet from the data extracted from the worksheet.
oleda.Fill(ds, "Employees");
return ds;
}
catch
{
}
finally
{
// Close connection
oledbConn.Close();
}
return ds;
}