“Kamu lg megang apa ded?”
“err.. Ga ada Pak..”
“Ya dah, kamu sekarang mbantuin Report xyz* ya”
note:
* = nama modul
“Kamu lg megang apa ded?”
“err.. Ga ada Pak..”
“Ya dah, kamu sekarang mbantuin Report xyz* ya”
note:
* = nama modul
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
CREATE FUNCTION dbo.FormatMoneyToUI( @format as numeric(16,2) )
RETURNS VARCHAR(255)
AS
BEGIN
DECLARE @dtVC VARCHAR(255)
SELECT @dtVC = rtrim(convert(varchar,cast(@format as money), 1))
RETURN @dtVC
END
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
ini gw pake buat nampilin data duit di dataGrid, ato langsung diambil nilainya jika diperlukan. Soalnya klo di dataGrid ada DataFormatString=”{0:#,0.0}”, nah klo permasalahannya nilainya langsung diambil gimana? hehe.. pake aja cara diatas ntu…..
note: input pernah gw coba pake dataType: Double tp ternyata ga bisa dikompile.
Hi.. aq dapet ni source dari internet. please use it, mungkin berguna buat temen2 sekalian..
_____________________________________________________
print '--delete the final UNION before the ORDER BY'
print '-- before running this script.'
print '--'
goexec sp_msforeachtable @command1="print 'SELECT ''?'' AS TableName,
COUNT(*) as TblRowCount FROM ?' print 'UNION'"
go
print 'ORDER BY TableName'
go
______________________________________________________
I wrote this code to make it easier to compare record counts between a live database and a restored copy to test my backups, I thought people might find it useful. You need to run it against your live side when you do the backup that you’re going to restore and compare against.
Copy the output into another Query Analyzer window and run it: instant record counts.
Suck the results into Excel, run the script again against the restored DB, and you should be able to see any problems fairly quickly. I would expect perhaps a minor variation in counts, this should at least show you any radical changes.
I’ve only tested this under SQL Server 2000 SP3a.
note: aq dah nyobain ini di SqlServer2000 SP4.
Recent Comments