<%
if ( StoredProc == "CUSTOM" )
{
if ( Param0.toString() == "BUCKETDATA" )
{
var query = "SELECT TOP " + Param1 + " bHasFullDump, iIndex, BucketID, CrashCount, SolutionID, BugID, FollowUP, DriverName FROM "
query += "DBGPortal_BucketDataV3 " + Param2 + " ORDER BY " + Param3 + " " + Param4
}
else
{
var query = "SELECT TOP " + Param1
query += " bFullDump, SKU, Source, BucketID, FilePath, BuildNo, EntryDate, Email, Description from dbgportal_crashdatav3 "
query += Param2
query += " order by " + Param3 + " " + Param4
}
}
else
{
if ( Param0.toString() != "undefined" )
{
Param0 = ",'" + Param0 + "'"
}
else
{
Param0 = ""
}
//var query = SP + " '" + Page + "'" + Param0
var query = "DBGPortal_GetAllBuckets " + iIndex
}
//try
{
var g_DBConn = GetDBConnection ( Application("CRASHDB3") )
//var rsResults = g_DBConn.Execute( "SEP_GetSolutionSolvedBuckets " + SolutionID )
//Response.Write("Query: " + query )
var rsResults = g_DBConn.Execute( query )
var altColor = 'sys-table-cell-bgcolor2'
while ( !rsResults.EOF )
{
if ( altColor == 'sys-table-cell-bgcolor2' )
altColor = 'sys-table-cell-bgcolor1'
else
altColor = 'sys-table-cell-bgcolor2'
var BucketID = rsResults("BucketID")
//Response.Write("")
Response.Write(" | | \n" )
Response.Write("" + BucketID + " | \n" )
if ( String(rsResults("SolutionID")).toString() != "null" )
Response.Write("" + rsResults("SolutionID") + " | \n" )
else
Response.Write(" | \n" )
var iIndex = new String( rsResults("iIndex" ) )
rsResults.MoveNext()
}
}
//catch( err )
{
//Response.Write("err: " + err.description +)
}
%>
|
|