This is my technical area for troubleshooting and learning new programming skills and much more. Here, you will find answers on a wide range of technologies such as AI, Machine Learning, OpenAI, Databricks, ASP.NET, C#, Python, Microsoft Access, MySQL, Amazon Web Services, SQL Server, PL/SQL, JD Edwards, SAS, Salesforce, APIs, MVC, and many others. Please feel free to visit and join the discussion!
Thursday, November 26, 2020
Refreshable Excel direct connection with SQL Server
Monday, August 31, 2020
Convert JD Edwards Julian date to calendar date PL SQL
Tuesday, August 18, 2020
Checkbox Click Event Sencha Ext JS
{
xtype:
'checkboxfield',
boxLabel: 'All Municipal',
name: 'AllMunicipal',
margin: '0 0 0 0',
listeners: {
change: function (checkbox, newVal, oldVal) {
if (newVal == '1' && oldVal == '0') {
var allCheckBoxes = checkbox.up('checkboxgroup').items.items;
for (var i = 0; i < allCheckBoxes.length; i++)
{
allCheckBoxes[i].setValue('1');
}
}
}
}
}
https://forum.sencha.com/forum/showthread.php?137463-Checkbox-Click-Event
Monday, August 17, 2020
Recordset RecordCount VBA C# .net
Wednesday, June 10, 2020
Adaptive Insight Data Integration & Connection API
Adaptive Insight Data Integration & Connection API
• Design and implement your own automated integration to Adaptive products
• Access data within your Adaptive application with a lightweight interface
• Adhere to RESTful Web Services principles
• Accepts and returns requests in the form of XML documents
http://cloud-erp.com.au/wp-content/uploads/2014/08/ap_data_integration_screen.pdf
Friday, May 29, 2020
Convert JD Edwards Julian Date to Calendar date in Excel Formula
Formula to convert a Calendar date to JDE Julian date:
=CONCAT(YEAR(A1)-1900,RIGHT(CONCAT("000",DAYS(A1,DATE(YEAR(A1),1,1))+1),3))
Formula to convert JD Edwards Julian date to a Calendar date:
=DATE(LEFT(A1,3),1,1)+(RIGHT(A1,3)-1)
Wednesday, May 13, 2020
QTD quarter date from and to
DECLARE
@tDate DATETIME
SET
@tDate = GETDATE()
SELECT
@
tDate AS
'Input Date'
,
DATEADD(q, DATEDIFF(q, 0, @tDate ), 0)
AS
'frmDate'
,
DATEADD(d, -1, DATEADD(q, DATEDIFF(q, 0, @tDate ) + 1, 0))
AS
'toDate'
Tuesday, May 5, 2020
Get the size of all database in a SQL-Server
sum((size * 8.0) / 1024.0) SizeMB
FROM sys.master_files
WHERE DB_NAME(database_id) in(SELECT name FROM sys.databases )
group by DB_NAME(database_id)
order by 1
Monday, February 17, 2020
Godaddy Comma Delimited load CSV file
'Select '+
''''+ cast(SrNo as varchar) +''','''+ StateName+''','''+ cast(TINnumber as varchar) +''','''+ StateCode+''''+' Union '
from [dbo].[TblJA_StateCode]
Tuesday, July 16, 2019
Thursday, May 2, 2019
CONVERT COLUMN VALUES TO COMMA SEPARATED ONE ROW VALUE
drop table #temp1
SELECT UserName ,BankName,
AccessType =
STUFF ( ( SELECT ','+InrTab.AccessType
FROM [TBLBNK_ACCESS] InrTab
WHERE InrTab.UserName = OutTab.UserName AND InrTab.BankName = OutTab.BankName
ORDER BY InrTab.AccessType
FOR XML PATH(''),TYPE
).value('.','VARCHAR(MAX)')
, 1,1,SPACE(1)) into #temp1
FROM [TBLBNK_ACCESS] OutTab
GROUP BY OutTab.UserName , OutTab.[BankName] ;
select * from #temp1
Wednesday, March 27, 2019
Monday, March 11, 2019
Gridview Save as excel without dropping leading 0's (zeros) C# sap.net
{
Response.Clear();
Response.AddHeader("content-disposition", "attachment;filename=ForecastData.xls");
Response.Charset = "";
Response.Write("
Response.Write("ForecastData");
Response.Write("
//Response.Write("Date:- " + DateTime.Today.ToShortDateString());
Response.Write("
");
// If you want the option to open the Excel file without saving then
// comment out the line below
//Response.Cache.SetCacheability(HttpCacheability.No Cache);
Response.ContentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
System.IO.StringWriter stringWrite = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter htmlWrite = new
HtmlTextWriter(stringWrite);
for (int i = 0; i < GridView1.Rows.Count; i++)
{
GridViewRow row = GridView1.Rows[i];
//Apply text style to each Row
row.Attributes.Add("class", "textmode");
}
GridView1.RenderControl(htmlWrite);
string style = @"";
Response.Write(style);
Response.ContentType = "application/text";
Response.Write(stringWrite.ToString());
Response.End();
}
Sunday, February 24, 2019
AR Statistics History Update program
This section provides overviews of the Statistics History Update program, periodic statistical calculations, and aging information on periodic statistics, lists prerequisites, and discusses how to:
Run the Statistics History Update program.
Set processing options for Statistics History Update (R03B16A).