tolong dibantu karena saya mencoba mengirimkan email secara otomatis dengan
menggunakan Activx di DTS Sqlserver , tapi tidak bisa keluar gambar pada
email yang diterima (hanya tulisan saja)
dan saya juga udah nyoba file gambarnya sebagai global variable supaya bisa
masuk ke DTS
dgn script seperti ini
Function Main()
Dim strFrom
Dim strTo
Dim strCC
Dim strSubject
Dim strBody 'Strings for recipient, subject, boby
Dim objMessage 'The CDO object
Dim strAttachment
strFrom = DTSGlobalVariables("gv_MailFrom").Value
strTo = DTSGlobalVariables("gv_MailTo").Value
strCC = DTSGlobalVariables("gv_MailCC").Value
strSubject = DTSGlobalVariables("gv_MailSubject").Value
DTSGlobalVariables("gv_MailBody").Value = "<html><body><img border='0'
src='d:\AAM_INFOCUBE\infostep.gif'></body></html>"
strBody = DTSGlobalVariables("gv_MailBody").Value
strAttachment = DTSGlobalVariables("gv_FileLocation").Value &
"pis_dimSite_" & DTSGlobalVariables("gv_Principal").value & "_" &
DTSGlobalVariables("gdtDay").value & ".zip"
' Create an instance of the NewMail object.
Set objMessage = CreateObject("CDO.Message")
' Set the properties of the object
objMessage.Subject = strSubject
objMessage.From = StrFrom
'objMessage.Sender = StrFrom
objMessage.To = strTo
objMessage.Cc = strCC
objMessage.HTMLBody = strBody
objMessage.AddAttachment strAttachment
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
'Name or IP of Remote SMTP Server
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") =
"192.168.1.1"
'Server port (typically 25)
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") =
180
objMessage.Configuration.Fields.Update
'==End remote SMTP server configuration section==
objMessage.Send
Set objMessage = Nothing
'SendEmail="True"
Main = DTSTaskExecResult_Success
End Function
script HTML pada gv_Mailbody jika ingin menampilkan gambar maka gambarnya
tidak muncul,, seperti contoh di atas
tapi jika membuat tulisan dengan format HTML rich text maka tulisan tersebut
muncul, cuman aja gambarnya gak keluar di email
tolong dong ajarin, kalo bisa kasih sample bagi yang udah pernah buat DTS di
Sql server untuk otomatis email bergambar.....
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, June 22, 2005 9:14 AM
Subject: [ITCENTER] Re: tanya sql 2000
>
> Thanks atas replynya ..
> Saya sendiri masih bingung dengan konsep OLTP dengan OLAP di sql2000
> server.
> Maklum.. masih belajar ..
> Saya biasanya cuma menggunakan tabel dan relasi tabel saja utk memproses
> report.
> Untuk menerapkan OLAP ini apakah menggunakan tabel biasa atau ada hal laen
> yang harus disetup di SQL2000 server ?
> Kira kira berapa jumlah ukuran record maximum /size tabel max yang dapat
> dihandle SQL2000 server di win2k server ?
>
>
> Mohon masukannya
>
> regards
>
> suseno
>
>
>
>
>
> [EMAIL PROTECTED]
> ups.com To:
[email protected]
> cc:
> 06/22/2005 04:49 Subject: [ITCENTER] Digest
Number 5308
> AM
> Please respond to
> ITCENTER
>
>
>
>
>
>
>
> Message: 21
> Date: Tue, 21 Jun 2005 22:21:29 +0700
> From: Alpha Bagus Sunggono <[EMAIL PROTECTED]>
> Subject: Re: tanya sql 2000
>
> Mungkin maksudnya begini:
> dipisahkan antara Operation Transaction,
> dan Untuk keperluan reporting.
> Keperluan reporting memang mempermudah query,
> namun bersifat Unormalized,
> sedangkan untuk Operation digunakan
> normalized database.
> Jika dibutuhkan maka di transform
> dari Operation ke Tabel yg untuk reporting
> (dataware house)
>
> On 6/21/05, Nayos <[EMAIL PROTECTED]> wrote:
> >
> > Kalau yang saya tangkap itu ukuran 4gb tiap bulan untuk setiap table-nya
> > begitu bukan?
> >
> > Sebaiknya menurut saya tetap di pisah antara yang sedang aktif dengan
> yang
> > tidak aktif misalnya data2 lama hanya keperluan reporting. Untuk yang
> > aktif
> > bisa diberikan batasan waktu 1 bulan atau berdasarkan periode yang
> > ditetapkan tergantung kebutuhan dan juga performance query-nya.
> >
> > Sedangkan data lama (yang tidak aktif) dibuatkan olap-nya aja di SQL
> >
>
>
>
>
>
>
>
>
>
> --
> www.ITCENTER.or.id - Komunitas Teknologi Informasi Indonesia
> Info, Gabung, Keluar, Mode Kirim : [EMAIL PROTECTED]
> ::: Hapus bagian yang tidak perlu (footer, dst) saat reply! :::
> ## Jobs: itcenter.or.id/jobs ## Bursa: itcenter.or.id/bursa ##
> $$ Iklan/promosi : www.itcenter.or.id/sponsorship $$
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
The contents of this e-mail may be confidential and the unauthorized use,
copying, or dissemination of it and any attachments to it, is prohibited.
Internet communications are not secure and Dexa Group companies do not,
therefore, accept legal responsibility for the contents of this message nor
for any damage caused by viruses. The views expressed here do not necessarily
represent those of Dexa Group companies.
--
www.ITCENTER.or.id - Komunitas Teknologi Informasi Indonesia
Info, Gabung, Keluar, Mode Kirim : [EMAIL PROTECTED]
::: Hapus bagian yang tidak perlu (footer, dst) saat reply! :::
## Jobs: itcenter.or.id/jobs ## Bursa: itcenter.or.id/bursa ##
$$ Iklan/promosi : www.itcenter.or.id/sponsorship $$
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ITCENTER/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/