link for download Oracle Database Client 64 bit



 //www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-win64soft-094461.html





 

Create Date : 05 พฤษภาคม 2559   
Last Update : 5 พฤษภาคม 2559 15:44:49 น.   
Counter : 590 Pageviews.  


ดึงวันที่สุดท้ายของเดือน ใน MSSQL

----Last Day of Previous Month
SELECT DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,GETDATE()),0))
LastDay_PreviousMonth
----Last Day of Current Month
SELECT DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,GETDATE())+1,0))
LastDay_CurrentMonth
----Last Day of Next Month
SELECT DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,GETDATE())+2,0))
LastDay_NextMonth



//santi4524.wordpress.com หาเงินออนไลน์ได้ง่ายๆ




 

Create Date : 01 มีนาคม 2559   
Last Update : 1 มีนาคม 2559 12:59:16 น.   
Counter : 557 Pageviews.  


เปลี่ยน Datetime เป็นวันที่ พศ ภาษาไทย

totext(day(PrintDate),0) + " " + (
if Month(PrintDate)=1 then "มกราคม" else
if Month(PrintDate)=2 then "กุมภาพันธ์" else
if Month(PrintDate)=3 then "มีนาคม" else
if Month(PrintDate)=4 then "เมษายน" else
if Month(PrintDate)=5 then "พฤษภาคม" else
if Month(PrintDate)=6 then "มิถุนายน" else
if Month(PrintDate)=7 then "กรกฎาคม" else
if Month(PrintDate)=8 then "สิงหาคม" else
if Month(PrintDate)=9 then "กันยายน" else
if Month(PrintDate)=10 then "ตุลาคม" else
if Month(PrintDate)=11 then "พฤศจิกายน" else
if Month(PrintDate)=12 then "ธันวาคม" else "")
+ " " + totext(if(Year(PrintDate)<2500) then Year(PrintDate)+543 else Year(PrintDate),0,"")



credit: //pmcom.blogspot.com/2015/08/thailongdate-formula-field-in-crystal.html




 

Create Date : 24 ธันวาคม 2558   
Last Update : 24 ธันวาคม 2558 9:13:19 น.   
Counter : 544 Pageviews.  


add item for combobox in winform

VB.NET

 Function meeting_topics_binding()
        ds = SQL.get_meeting_topics

        Dim dt As New DataTable
        dt.Columns.Add("item_no", GetType(System.String))
        dt.Columns.Add("topic", GetType(System.String))

        Dim drDSROW As DataRow
        Dim drNewRow As DataRow

        drNewRow = dt.NewRow
        drNewRow("item_no") = 0
        drNewRow("topic") = "เลือก"
        dt.Rows.Add(drNewRow)
        For Each drDSROW In ds.Tables("GetmeetingTopics").Rows()
            drNewRow = dt.NewRow
            drNewRow("item_no") = drDSROW("item_no") & "" & drDSROW("sub_item_no")
            drNewRow("topic") = CStr("วาระที่ " & drDSROW("item_no") & "." & drDSROW("sub_item_no")).Replace(".0", "")
            dt.Rows.Add(drNewRow)
        Next
        With cobTopics
            .DataSource = dt
            .DisplayMember = "topic"
            .ValueMember = "item_no"
        End With
    End Function



C#

 String sql = "select book_id,book_num +'-'+ book_name book_detail from book order by convert(int,book_id) desc";
            DataTable dt1 = DB.GetDataSet(sql);

            DataTable dt = new DataTable();
dt.Columns.Add("book_id", typeof(System.String));
dt.Columns.Add("book_detail", typeof(System.String));

DataRow drNewRow = default(DataRow);

drNewRow = dt.NewRow();
drNewRow["book_id"] = 0;
drNewRow["book_detail"] = "--เลือก--";
dt.Rows.Add(drNewRow);
foreach ( DataRow row in dt1.Rows) {
drNewRow = dt.NewRow();
        drNewRow["book_id"] = row["book_id"];
        drNewRow["book_detail"] = row["book_detail"];
dt.Rows.Add(drNewRow);
}
var _with1 = cbProject;
_with1.DataSource = dt;
    _with1.DisplayMember = "book_detail";
    _with1.ValueMember = "book_id";




 

Create Date : 22 ธันวาคม 2558   
Last Update : 24 ธันวาคม 2558 9:13:36 น.   
Counter : 562 Pageviews.  


คำสั่ง asp.net ในการ สร้าง Report เป็น Pdf

Dim crReportDocument As New formKasikorn
' crReportDocument.SetDataSource(Session("dtsExport"))
Dim oStream = New MemoryStream ' // using System.IO
oStream = crReportDocument.ExportToStream(ExportFormatType.PortableDocFormat)
Response.Clear()
Response.Buffer = True
Response.ContentType = "application/pdf"
Response.BinaryWrite(oStream.ToArray())
Response.End()




 

Create Date : 26 ตุลาคม 2548   
Last Update : 26 ตุลาคม 2548 15:16:45 น.   
Counter : 470 Pageviews.  



santi4524
 
Location :


[Profile ทั้งหมด]

ฝากข้อความหลังไมค์
Rss Feed
Smember
ผู้ติดตามบล็อก : 1 คน [?]




[Add santi4524's blog to your web]

 
pantip.com pantipmarket.com pantown.com