<% '============= Create and Open Database Connection ============= 'OPEN THE DATABASE If blnConnectToDB Then dim blnDBconnectionDown blnDBconnectionDown = false Err.Clear on error resume next set dbConn = Server.CreateObject("ADODB.Connection") 'Open the Connnection 'dbConn.Open Application("dbConn_ConnectionString") dbConn.Open "DSN=PostgreSQL30", "eere_news", "33reNews" ''New Error trapping. KC added 2/23/2012 If Err.Number <> 0 Then ''Response.Write (Err.Description& "

") dbConn.Close Set dbConn = nothing blnDBconnectionDown = true End If On Error GoTo 0 ''error trapping not working here KC removed 2/23/2012 ''tmpDBErrorNativeError = 0 '' For Each dbErr In dbConn.Errors '' strErrMsg = strErrMsg & _ '' "Source: " & dbErr.Source & vbCrLF & _ '' "Description: " & dbErr.Description & vbCrLF & _ '' "SQL State: " & dbErr.SQLState & vbCrLF & _ '' "NativeError: " & dbErr.NativeError & vbCrLF & _ '' "Number: " & dbErr.Number & vbCrLF & vbCrLF '' tmpDBErrorNativeError = dbErr.NativeError '' Next '' If (dbConn.Errors.Count > 0) AND (tmpDBErrorNativeError <> 5703) Then '' dbConn.Close '' Set dbConn = nothing '' blnDBconnectionDown = true '' Response.write(strErrMsg) '' Response.end '' End If dim arrErrors() Redim arrErrors(2,0) End If '============================================================== Public Function GetRS2(myCommand) On Error GoTo 0 'objConn: local connection object 'objRS: local recordset object 'objComm: command object passed in to the function Dim objConn, objRS, blnErrorLogged, objComm 'Create the command object Set objComm = Server.CreateObject("ADODB.Command") Set objComm = myCommand 'Create the connection object Set objConn = Server.CreateObject("ADODB.Connection") 'Open the connection object objConn.Open "DSN=PostgreSQL30", "eere_news", "33reNews" 'Set the active connection objComm.ActiveConnection = objConn 'Create the recordset object Set objRS = Server.CreateObject("ADODB.Recordset") 'Set the cursor location for disconnected recordsets 'objRS.CursorLocation = adUseClient 'Turn on error handling for just a second ' On Error Resume Next 'Open the recordset 'objRS.Open SQL, objConn, adOpenStatic, adLockOptimistic Set objRS = objComm.Execute 'Response.Write "State = " & objRS.State & "
" 'objRS.MoveLast 'objRS.MoveFirst 'Response.Write "Count = " & objRS.RecordCount & "
" 'Response.End 'Check for an error ' If Err.Number <> 0 Then ' Response.Write "Database Error Occured

" ' Response.Write "Error #" & Err.Number & "
" ' Response.Write Err.Description & "

" ' Response.Write "SQL:
" ' Response.Write SQL ' Response.End ' End If 'Turn off error handling ' On Error GoTo 0 'Disconnect the recordset 'Set objComm.ActiveConnection = Nothing 'Close the connection 'objConn.Close 'Set the connection to Nothing 'Set objConn = Nothing 'Set the Command to Nothing 'Set objComm = Nothing 'Return the recordset Set GetRS2 = objRS On Error Resume Next End Function '=============================================================== Function GetRS(sSQL) 'Declarations dim rs 'Create Recordset Object set rs = Server.CreateObject("ADODB.Recordset") If blnConnectToDB Then 'Open Recordset based on SQL rs.Open sSQL, dbConn, 1, 3, 1 End If 'Return Recordset set GetRs = rs End Function '=============================================================== Function ExecSQL(sSQL) 'Open the Command Object dim lRecordsAffected dbConn.Execute sSQL, lRecordsAffected 'Return the Records Affected ExecSQL = lRecordsAffected End Function '======================================================================== Function sendEmail(strFrom,strTo,strSubject,strMessage) Dim sch ' Schema sch = "http://schemas.microsoft.com/cdo/configuration/" Set cdoConfig = CreateObject("CDO.Configuration") With cdoConfig.Fields .Item(sch & "sendusing") = 2 .Item(sch & "smtpserver") = "mxrelay.doe.gov" .update End With Set cdoMessage = CreateObject("CDO.Message") With cdoMessage Set .Configuration = cdoConfig .From = strFrom .To = strTo .Subject = strSubject .TextBody = strMessage .Send End With Set cdoMessage = Nothing Set cdoConfig = Nothing End Function Function removeBadChars(tmpString) tmpString = Replace(tmpString , "<", "") tmpString = Replace(tmpString , ">", "") tmpString = Replace(tmpString , "'", "") tmpString = Replace(tmpString , """", "") tmpString = Replace(tmpString , ";", "") tmpString = Replace(tmpString , "(", "") tmpString = Replace(tmpString , ")", "") removeBadChars = tmpString End Function %> <% 'If there is a mobile version of this site, check the user_agent, and forward to 'the mobile version of the site (unless cookie or querystring var is set) if "true" = "true" then tmpSeeFullPage = Mid(Request.Querystring("m"),1,1) if ((isMobile) and (tmpSeeFullPage <> "1")) then tmpMobileURL = Request.servervariables("HTTP_URL") tmpMobileFileName = mid(tmpMobileURL, InStrRev(tmpMobileURL, "/")+1) tmpMobileURL = Left(tmpMobileURL, InStrRev(tmpMobileURL, "/")) tmpMobileURL = tmpMobileURL & "m/" & tmpMobileFileName Response.Clear Response.Redirect(tmpMobileURL) end if end if %>

<% ''This code is strictly when a user clicks on a left nav and needs to be forwarded to another site/program/office if ("" <> "") then Response.Clear Response.Redirect ("") end if %>

Renewable Energy Project Assistance

Call for Projects
FEMP recently issued a notice of intent to release a Funding Opportunity Announcement (FOA) that will provide grants to develop renewable energy projects. Read the call for projects. See box below for information on project assistance for this upcoming FOA.

Request to Receive Project Assistance from FEMP
Federal agencies interested in receiving FEMP project assistance must complete the renewable energy project assistance request form and email it to Boyan Kovacic. Applications will be processed on a weekly basis. For technical assistance on the upcoming FEMP FOA "Assisting Federal Facilities with Energy Conservation Technologies" (AFFECT), agencies must submit a letter stating their need for assistance and their intent to apply for the FOA in addition to completing the renewable energy project assistance request form.

The Federal Energy Management Program (FEMP) provides ongoing renewable energy project assistance and expertise in project assessment and implementation areas to help Federal agencies identify and implement renewable energy technologies. 

Types of Project Assistance

FEMP provides renewable energy project assistance in the following areas:

  • Initial prescreening of cost-effective technologies for a given site based on high-level information, such as GIS maps of renewable energy resources and prevailing utility rates and incentives

  • Screenings and more detailed feasibility studies that identify and recommend the best opportunities at a site or sites

  • Early project development for large-scale and utility-scale projects

  • Technical review of requests for proposal, scopes of work, and proposals

  • Technical review of designs

  • Acceptance testing and commissioning

  • Drafting protocols for operations and maintenance and measurement and verification

  • Renewable energy support for high-performance green buildings

How Project Assistance is Funded

Equipment, hardware, or infrastructure are not funded through FEMP's renewable energy project assistance.

Successful applicants will not receive funding directly. Funding will be provided directly by the U.S. Department of Energy (DOE) to its national laboratories and contractors to provide project assistance.

Federal agencies can also access DOE national laboratory services directly through work for others (WFO) agreements. In a WFO agreement, an agency transfers funds to a lab for the provision of services. Labs can provide all services listed above with an emphasis on particular technologies and core expertise. Key lab staff can also be detailed to work within agencies for a limited duration (normally no more than 24 months). Read more about working with DOE national laboratories.

National laboratories do not compete with the private sector, but rather help Federal agencies get what they need from private sector sources. Federal agencies can purchase many of these technical services from private contractors through the General Services Administration Schedule.

Application Process

Federal agencies interested in receiving FEMP renewable energy project assistance must complete the renewable energy project assistance request form. The completed form should be emailed to Boyan Kovacic.

Applications are accepted on a first-come, first-serve basis. FEMP will review the request to first determine the most appropriate form of assistance. Prescreenings will be selected on a monthly basis while other types of assistance will be reviewed on a quarterly basis. FEMP is committed to funding most prescreening requests. The results of prescreenings will be reviewed on a quarterly basis, with the top prescreenings automatically considered for a screening or, in some cases, a feasibility study.

Applicants will receive an acknowledgement of their request and will receive further notice if their application has been approved. Non-selected projects will stay on a potential projects list for possible funding in the future.

Once the FEMP project assistance is completed, FEMP expects agencies to follow through with project implementation activities. FEMP will follow up to check on project status.

Selection Criteria

Applications are reviewed based on the following selection criteria. Incomplete or absent responses will likely impact the success of the application. Decisive factors include project funding, projects in locations with the strongest markets for a given technology, project champion(s), and cost-sharing of FEMP's renewable energy project assistance.

To help agencies meet Federal requirements given limited FEMP resources, FEMP will prioritize projects with the greatest likelihood of success. Projects that have direct appropriations to purchase equipment or other committed funding approaches (e.g., energy savings performance contracts, utility energy service contracts, or power purchase agreements), that are cost-effective, and that have agency champions are most likely to succeed.

Additional selection criteria include:

  • Project Description: Clearly and concisely describe the project and its anticipated impacts, including descriptions of the facilities and any major equipment that will be impacted. Additionally, a preliminary scope of work for the project assistance request should be provided, including the general tasks that the applicant would like FEMP to complete for the project.

  • Federal Goals and Mission Needs: Clearly describe how the project is consistent with current renewable energy legislation and goals for Federal agencies and how the project will meet agency mission needs.

  • Agency Support and Project Implementation Plan: Demonstrate a commitment to follow through with project implementation and that project success is significant to the agency/facility by providing a list of project team members (technical, management, and procurement staff) committed to making the project a success must be provided. A Federal letter of interest should also be included. A sample letter of interest is available.

  • Potential for Replication: Describe how the proposed project will be replicated in other facilities within the agency and will offer opportunities for other Federal agencies to learn from the experience (e.g., case studies, articles, and Web-based publications).

Reporting Requirements

Selected applicants are expected to cooperate with FEMP reporting requirements to assist with project tracking. A FEMP staff member or designee will contact selected agencies to check on the project status and to request information on the updated cost and savings realized in a project.


For more information about renewable energy project assistance or eligibility, contact:

Boyan Kovacic
Federal Energy Management Program

Tim Tetreault
National Renewable Energy Laboratory