AMREIN ENGINEERING SharePoint Web Parts   |   Office 365 Web Parts   |   Blog   |   Support   |   Search   |   About us   |   Home  

Sharepoint Web Parts  

2019/SE Modern Web Parts  

Digital Clock Webpart  

Alerts Webpart  

Event Manager Webpart  

Sitemap Webpart  

Stock Chart Webpart  

Stock Quotes Webpart  

Dilbert Webpart  

Mega Menu Webpart  

Quote of the Day Webpart  

Webpart Tabs Webpart  

"Spotlight On.." Webpart  

"Tip of the Day" Webpart  

Lightbox Webpart  

Page HeaderSolution  

Tabs & Accordion Webpart  

Weather Webpart  

Slideshow Webpart  

Currency Rates Webpart  

Media Player Webpart  

YouTube Player Webpart  

Map Chart Webpart  

Org Chart Webpart  

Tiles Webpart  

Chart Webpart  

Google Chart Webpart  

Hero Webpart  

News Tiles Webpart  

Cafeteria Webpart  

RSS Feed Ticker Webpart  

SQL Viewer Webpart  

Google Map Webpart  

Quick Poll Webpart  

Quick Survey Webpart  

Audio Player Webpart  

Geo Mapper Webpart  

SQL Chart Webpart  

Exchange Calendar Webpart  

Exchange Events Webpart  

Call to Action Webpart  

Quick Links Webpart  

Filter Webpart  

Image Rotator Webpart  

Navigator Webpart  

KPI Webpart  

Page Hits Webpart  

Picture Menu Webpart  

Timer Webpart  

Podcast Webpart  

SQL Bullet Graph Webpart  

User Spotlight Webpart  

List View Webpart  

Staff Directory Webpart  

Birthday Reminder Webpart  

News Carousel Webpart  

Team Members Webpart  

Christmas Webpart  

Classifieds Webpart  

Image Menu Carousel Webpart  

Timeline Webpart  

Banner Rotator Webpart  

AZ Index Webpart  

Blog Roll Up Webpart  

Discussion Roll Up Webpart  

Document Roll Up Webpart  

News Roll Up Webpart  

Task Roll Up Webpart  

Calendar Roll Up Webpart  

Quick Form Webpart  

Twitter Webpart  

Upcoming Events Webpart  

Welcome Webpart  

Color Calendar Webpart  

Image Carousel Webpart  

Metro Grid Webpart  

Goal Thermometer Webpart  

Swipe Gallery Webpart  

List Items Webpart  

List Rotator Webpart  

List Search Webpart  

Bullet Graph Webpart  

Accordion & Tabs Bundle  

Accordion List Webpart  

Tabs List Webpart  

Microblog/Chat Webpart  

Toast Notifications  

Vacation Planner Webpart  

Multilevel Tile Webpart  

Inspired Tiles Webpart  

Facebook Timeline Webpart  

File Explorer Webpart  

Zip Creator  


Web Part Bundle  

Web Parts by Category  

Microsoft Sharepoint Web Parts

SQL Chart SharePoint Web Part

The SQL Chart Web Part allows to chart data selected from the specified SQL Server database, OLE-DB or ODBC data source. The charts are created using Google's public Chart API (see official Google Documentation). The SQL Chart Web Part accepts Web Part connections for filtering.

Important Note:
please note that Google has disabled support for their Image Chart web service on March 14, 2019.
We thus published the new web part version 2.0.0 which uses the Google Visualization Charts web service.
Please thus re-download and then update the web part solution.

The Web Part can be used with Sharepoint 2010, Sharepoint 2013, Sharepoint 2016, Sharepoint 2019 and SharePoint Subscription Edition (both "classic" and "modern" pages).

The following parameters can be configured:

  • SQL query or Stored Procedure to select the data to be visualized
  • Chart Type:
    • Pie Chart
    • 3D Pie Chart
    • Horizontal Bar Chart
    • Horizontal Stacked Bar Chart
    • Vertical Bar Chart
    • Vertical Stacked Bar Chart
    • Line Chart
  • Chart dimensions
  • Chart Title
  • Chart background colors
  • Chart Color Palette
  • Chart Legend

SharePoint 2019/SE 'Modern' version »

Product Price
SQL Chart Web Part for SP 2007/WSS3.0 and SP 2010
30 day Evaluation Version
Free download..
SQL Chart Web Part for SharePoint 2013
30 day Evaluation Version
Free download..
SQL Chart Web Part for SharePoint 2016
30 day Evaluation Version
Free download..
SQL Chart Web Part for SharePoint 2019 and SE
30 day Evaluation Version
Free download..
SQL Chart Web Part for SP 2007, 2010 and 2013
SQL Chart Web Part per WFE Server License Key
USD 200.00
SQL Chart Web Part for SP 2016, SP 2019 and SE
SQL Chart Web Part per WFE Server License Key
USD 200.00
SQL Chart Web Part Installation Instructions download..
Deployment Instructions for SP 2010/2013/2016/2019/SE download..
Deployment Instructions for SP 2019 and SE "modern" pages download..

Installation Instructions:

  1. download and unpack the file.
  2. download the SQL Chart Web Part Installation Instructions (PDF file, see above) 
  3. either install the web part manually or deploy the feature to your server/farm as described in the instructions.
  4. Navigate to a page where you would like to place the webpart and choose "Site Actions/Edit Page"

  5. Add the web part to the appropriate zone. The web part is listed in the "Amrein Engineering" or "Miscellaneous" web part gallery section depending on the chosen installation procedure (Feature deployment or manual installation)

  6. Configure the following Web Part properties in the Web Part Editor "Miscellaneous" pane section as needed:

    • DB Connection String (SQL Server):
      • if you use SQL Server authentication, enter the connection string as follows:

        UID=uuu;Initial Catalog=database;Data Source=servername

        uuu = SQL Server User Account
        database = the database you want to connect to
        servername = the name of the SQL Server

        UID=sa;Initial Catalog=Northwind;Data Source=TestSQL;

        Please note that the password is entered in the Connection Password field for security reasons.
      • if you use Windows authentication, enter the connection string as follows:

        Initial Catalog=database;Data Source=servername;Integrated Security=SSPI;

        Initial Catalog=Northwind;Data Source=TestSQL;Integrated Security=SSPI;

    • DB Connection String (OLE-DB):
      either simply enter the physical file name of the data source file (MS Access, MS Excel, CSV files) as follows:


      or alternatively enter a fully qualified OLE-DB connection string as follows:

      Provider=OraOLEDB.Oracle;OLEDB.NET=true;PLSQLRSet=true;Password=[ppp];User ID=[uuu];Data Source=[ddd]
      Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\data\northwind.mdb
      Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\data\;Extended Properties='text;FMT=Delimited'

      You can look up nearly every database connection string at
    • DB Connection String (ODBC):
      either enter the ODBC Data Source name (as configured with the ODBC Data Source Administrator) as follows:


      or enter your fully qualified ODBC connection string as follows (Example):

      Driver={Microsoft Access Driver (*.mdb)};Dbq=C:\mydatabase.mdb;Uid=Admin;Pwd=;

    • Connection Password: if you use SQL Server authentication, enter the User account passord into this field. It will be automatically encrypted for security reasons.
      Leave this field empty if you use an OLE-DB connection.

    • SQL Query: Enter the desired SQL Select statement into this field.

      Example (using the Microsoft Northwind database):
      SELECT TOP 5 COUNT(*) AS Total, CustomerID FROM Orders GROUP BY CustomerID

      - Use the {1} placeholder to pass a Filter value to the query.
      - Range: {1} for Field Value connections, {1} - {12} for Filter Values connections
      - Use the {uid} placeholder to pass the current logged on user name
      - Use the {xxx} placeholder (where xxx is an URL query string parameter name) to pass URL parameters
        Example assuming that the URL parameter "id" is contained in the page URL:
        SELECT Lastname,Firstname,Title FROM Employees WHERE ID={id}

      Example using a dynamic placeholder to filter as provided by a connected Filter Web Part:

      SELECT CompanyName, City, Phone FROM Suppliers WHERE City LIKE '{1}%'

      Dynamic placeholder to filter as provided by a connected multivalue choice Filter Web Part:
      Configured query: SELECT CompanyName, City FROM Suppliers WHERE City IN ('{3}')
      Chosen in filter web part: Toronto, Chicago, Paris
      Resulting query: SELECT CompanyName, City FROM Suppliers WHERE City IN ('Toronto','Chicago','Paris')

      Stored Procedures:
      Enter the name of the Stored Procedure, followed by optional parameters.
      Add each parameter as a "name=value" pair and separate multiple parameters by semicolons.

      Example (refers to Microsoft Northwind sample database):

    • Data Series Column Name(s): enter the database table column name of the column(s) containing the data to be charted. You can specify multiple data series by entering multiple column names separated by commas (as eg. Sales 2008,Sales 2009)
    • Label Column Name: enter the database table column name of the column that contains the data labels to be used. You can append the data value to each label by adding the x placeholder to the column name (separated by a colon). The placeholder can be surrounded by other characters.
      Example: append the data value to the labels, surrounded by parentheses:


      If the labels consist of dates, you can append a date formatting string to the column name (separated by a colon):
      Example: TradeDate:MMM-dd

      The following formatting options are available:

      d - Numeric day of the month without a leading zero.
      dd - Numeric day of the month with a leading zero.
      ddd - Abbreviated name of the day of the week.
      dddd - Full name of the day of the week.

      h - 12 Hour clock, no leading zero.
      hh - 12 Hour clock with leading zero.
      H - 24 Hour clock, no leading zero.
      HH - 24 Hour clock with leading zero.

      m - Minutes with no leading zero.
      mm - Minutes with leading zero.

      M - Numeric month with no leading zero.
      MM - Numeric month with a leading zero.
      MMM - Abbreviated name of month.
      MMMM - Full month name.

      t - AM/PM but only the first letter.
      tt - AM/PM ( a.m. / p.m.)

      y - Year with out century and leading zero.
      yy - Year with out century, with leading zero.
      yyyy - Year with century.

      You can append the data value as a percentage to each label by adding the % placeholder to the "Label List Column Name" (separated by a colon). The placeholder can be surrounded by other characters.
      Example: append the data value as a percentage to the labels, surrounded by parentheses:



    • Chart Type: select the desired chart type:
      - Pie
      - Pie3D
      - Line
      - VerticalBar
      - HorizontalBar
      - VerticalStackedBar
      - HorizontalStackedBar
      - CombinedBarLine (combined vertical bar and line chart)

    • Chart Title: enter the desired Chart Title. You can optionally also specify the title color (as a 6 digit RRGGBB value) and the title font size (in points) by appending these 2 parameters separated by the pipe character.
      Customers by Country|FFCC66|24

    • Chart Caption: enter the optional Chart caption to be displayed at the bottom of the chart. You can also embed HTML tags in order to format the caption text.
    • Chart Width: enter the desired width of the Map Chart in pixels. The maximum chart width currently is 1000 pixels.
    • Chart Height: enter the desired height of the Map Chart in pixels. The maximum chart height currently is 1000 pixels.
    • Show every nth Label: allows to show only every nth chart data label (the default setting of "1" shows every data label)
    • Chart Color: enter the RGB Hex value of the desired data series color. Specify one value for each data series (the values are separated by commas).
      Pie Charts: enter two (or more) RRGGBB hexadecimal numbers (separated by a comma) to specify the extremes of a color gradient that is used to color the pie segments. To control the gradient further, specify more colors.
    • Chart Background Color: enter the RGB Hex value of the desired background color.
      The default value is FFFFFF (white).
      Specify colors with a 6-letter string of hexadecimal values in the format RRGGBB. For example:
      • FF0000 = red
      • 00FF00 = green
      • 0000FF = blue
      • 000000 = black
      • FFFFFF = white
    • Chart Legend Position: allows to control the placement of the chart legend if you display multiple data series (the chart legend is suppressed if only one data series is displayed)
    • Chart Axis Labels: allows to add optional x and y axis labels (Bar and Line chart only). Enter the 2 labels separated by a semicolon.
      Example: Product;Customers

    • Extra Google Chart Parameters: allows to append optional extra custom Google Chart API parameters (see official Google Documentation)
      Example: &chxt=x&chdlp=t

      The below example sets a horizontal red goal line at 60% (0.6) on the y-axis:


    • Search Filter(s): enter the desired data column name(s) to be used for interactive filtering.

      • enter the name(s) of the column(s) to be filtered.
      • enter multiple filters separated by semicolons.
      • If you place an "@" ampersand character on front of the filter name, a combo box is used (as opposed to a text input box) which is automatically populated with the available List values.
      • If you place an "#" character on front of the filter name, a date picker is used (as opposed to a text input box).
      • Each filter can optionally be preset by adding the preset value as follows:
      • If you would like to display a “friendly" search box label instead of the data column name please append it separated by the “|” pipe symbol.


      displays the following 3 filter boxes:

    • Search Filter Button: Enter the text of the Search Filter button (leave this field empty to suppress the button)
    • Search Filter Reset Button: Enter the text of the Search Filter Reset button (leave this field empty to suppress the button)

      Example: Clear Filter

    • Inspect SQL Query Data: this option dumps the data and labels as returned by your SQL query for inspection
    • Page Refresh Interval: enter the optional page refresh interval in minutes (0 = no page refresh)
    • License Key: enter your Product License Key (as supplied after purchase of the web part license).
      Leave this field empty if you are using the free evaluation version.

Please enter a comment below if you have problems with the installation, want to give feedback or have suggestions for improvements:

User Comments Post a Comment 

Rob Fahndrich  
9/18/2009 16:30 
ok, how can i make this query work with the webpart? my issue is with the label and data row.
ERROR: Column 'Data' does not belong to the table.
SELECT count ( roomnumber ), 'Mill Pond Point' FROM tblarmasterreferences WHERE roomnumber like '1%%%' and currentstatus = 'InHouse' UNION ALL SELECT count ( roomnumber ), 'Whispering Way' FROM tblarmasterreferences WHERE roomnumber like '2%%%' and currentstatus = 'InHouse' UNION ALL SELECT count ( roomnumber ), 'Cloverdale Lane' FROM tblarmasterreferences WHERE roomnumber like '3%%%' and currentstatus = 'InHouse' UNION ALL SELECT count ( roomnumber ), 'Sugarbush BLVD' FROM tblarmasterreferences WHERE roomnumber like '4%%%' and currentstatus = 'InHouse' UNION ALL SELECT count ( roomnumber ), 'Coldwater Creek Trail' FROM tblarmasterreferences WHERE roomnumber like '5%%%' and currentstatus = 'InHouse'
Rob Fahndrich  
9/18/2009 21:04 
ok, so i changed my query to something much BedCount, Neighborhood From label column is NEIGHBORHOOD and my data column is BedCount........ I am still getting this error....ERROR: Column 'Data' does not belong to the table.
9/23/2009 12:17 
Rob, we have found the cause for the “Column Data does not belong to table” error and have fixed it in the meantime. Please re-download the ZIP file, extract and then replace the DLL. Please also do an IIS reset if you deployed the web part to the GAC.
Jorge Besada  
9/25/2009 16:12 
when i use two or three data series, how can I specify what color to draw each line with? In my testing all lines are drawn in same color Thanks
Jorge Besada  
9/25/2009 16:15 
nevermind that last question... saw solution in documentation...
Gene Vangampelaere  
10/12/2009 09:50 
I'm having a problem when i configure the webpart: Error: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. Inner Error: Object reference not set to an instance of an object. Can you help me with this? I want to connect to a SQL database and I'm using the following connectionstring: Initial Catalog=mydbname;Data Source=servername;Integrated Security=SSPI;
12/30/2009 13:56 
Gene, the settings on your Sharepoint server do not allow to have this web part in the BIN folder. Please move it to the GAC instead (by dropping it into “c:\windows\assembly”). Please perform the move operation using Windows Explorer (not via a command prompt) either directly at the server or via RDP (not via a network share). Then delete the web part DLL in the BIN folder followed by an IISRESET to unload/reload the DLL from memory.
1/13/2010 15:34 
For SQL statements, can we use stored procedures?
1/14/2010 16:51 
Chetan, we have now updated the Web Part to also support Stored Procedures. (see updated description above).
Jack He  
1/16/2010 03:10 
First time user. After I configures databse and query string, the chart image only displays as an "x¡° icon, with these words next to it: "Simple Chart". No error message was given, though. Thanks for help.
1/18/2010 11:21 
Jack, can you send us the HTML source of the Sharepoint page for inspection ([email protected]) ?
2/18/2010 17:50 
I am getting same problem as Jack is there a solution for
2/18/2010 17:57 
Ray, something must be wrong with the way you select the data. Can you send us either the HTML source or the full URL of the broken image link (it contains quite a lot of parameters) for analysis ?
3/4/2010 08:32 
Hi Juerg, I've downloaded a number of your web parts to evaluate, but the only one I've gotten to work is the AESQL (SQL Query Viewer) webpart. All the other ones I get the standard error message when trying to add the web part: "Unable to add selected web parts". The web parts that I haven't been able to add are the following: SQL Chart, Google chart, EWS Calendar, Dilbert, Media player. When trying to preview the web parts in the web part gallery, "Cannot import the AE SQL Chart Web Part. " is displayed - except for the working SQL query viewer web part... All of the respective dll's are dropped in the GAC. The safecontrol lines have been added to the web.config file. The ULS log simpy displays the same error message, classed as eventID 6611 and critical. Trust level is WSS_medium. I am evaluating WSS as concept for my company, and as such is running WSS 3.0 on a Win 2003 machine on Windows Internal Database. Any ideas on resolution or how to trap the error? If all would have failed I would have assumed some general setting, but since the SQL query viewer works? Thanks in advance
3/4/2010 09:29 
Got it working, sorry to bother you. No IISreset had been performed after dropping the dll's into the GAC.
3/30/2010 15:26 
Interesting idea... could work well for me, but my site runs via SSL so I need to retrieve the charts via SSL as well to avoid some browser warnings. Google Charts API doesn't support SSL officially, but works. Is there any way of configuring the base URL used by this web part, or is it hard-coded?
3/30/2010 17:11 
Google actually does not support SSL for its Charts API.
The example is misleading since it only returns a “fake” chart (you cannot pass actual data series that way).
The only workaround would be to have the server fetch the image via http and then make it available locally (eg. acting as a proxy).
5/11/2010 12:54 
Hello I have just installed a trial of this web part and am trying to configure it. We are using windows authentication but keep getting the following error: Error: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. Inner Error: Object reference not set to an instance of an object. Please can someone advise me on this? Thanks Sarah
5/11/2010 16:38 
you most probably encountered the "double hop" problem: This is a problem that occurs if you are trying to access a database that is installed on a separate database server with the current user's credentials.
Windows is not able to pass the user's credentials from the SharePoint server to the SQL Server if you are using NTLM authentication.
You can use Kerberos to authenticate against your web application and turn on delegation. If you use delegation, the web application that you are running your web part from will delegate the user's credentials to the SQL Server. Because the credentials are delegated, the credentials will be passed to the SQL Server without a problem and you will get rid of the double hop issue.
Note that in order for your SharePoint web application to use Kerberos authentication you have to configure this on your web application: (see
You also could use SQL Authentication to authenticate against the database.
As you are passing SQL credentials in the connection string no double hop issue will occur. This would however require you to turn on SQL authentication on the SQL Server.
Andy Gallon  
6/14/2010 11:01 
Having the same problem as Jack (16th Jan 2010) - clearly an error in rendering the chart but don't know why. Data set is visible (and correct) if the Inspect Query Data option is ticked, but no chart. Any help appreciated.
6/15/2010 12:49 
Andy, can you send us the HTML source of your page with the "Inspect SQL Query Data" option turned on ?
6/23/2010 07:24 
Great webpart! Is there any way to sum or count the data for a pie chart, similar to the sharepoint list charting webpart that you have? I think it uses sum:columnname. The other question is if there is a way to include the percentage value of a pie chart?
6/23/2010 20:01 
since the web part gets it’s data via an SQL SELECT statement, you can actually use the SUM() and COUNT() operators in conjunction with the GROUP BY clause to return the sum (or count) of groups of data.
Example (based on the SQL Server Northwind database):
SELECT COUNT(*) AS Total, CustomerID FROM Orders GROUP BY CustomerID

Regarding the display of percentage values in a pie chart: This is a good suggestion and we will incorporate this feature in the next release.
6/23/2010 22:59 
Thanks for the reply! I adjusted my queries to accomodate the SUM and COUNT values. If we purchase the webpart are we eligible for free updates and if so, for how long? Secondly, is it possible to adjust the font size and color of the labels?
6/24/2010 12:38 

yes, you'll get free updates for the whole lifetime of the product.
You can adjust the axis label font size and color by appending a formatting string to the "Data Series Column Name(s)" setting:

eg. append a colon, followed by the axis index (0=X-axis,1=Y-axis), the font color (RGB value) and the font size (in points). Separate the 2 axes by a pipe symbol.

For pie charts please also append &chxt=x,y

eg. append a colon, followed by the axis index (0 for pie charts), the font color (RGB value) and the font size (in points).

6/25/2010 18:51 
Do you have an example of how to connect SQL Chart web part to Excel file stored in sharepoint site report library? Thanks!
6/25/2010 19:03 
to our knowledge you cannot create an OLE-DB connection using http, so the file needs to be on a local drive.
In this case use the following connection string for Excel:

Provider=Microsoft.ACE.OLEDB.12.0;Data Source=c:\test.xlsx;Extended Properties="Excel 12.0 Xml;HDR=YES"

The equivalent of a database table is a marked range in an Excel spreadsheed.
Thus you'll first need to set up a marked range (say "ProductRange") in your spreadsheet: 

SELECT * FROM ProductRange
6/25/2010 20:26 
Thank you Juerg. This will not work for me since all Excel files are stotred within sharepoint sites. Thank you again for your help!
6/28/2010 12:29 
Ben, you can try to use the Sharepoint UNC path to your Excel files in the connection string (as eg. \\yoursharepointserver\yoursite\yourlibrary\yourfile.xlsx )
7/10/2010 16:17 
Simple Question, How to get Query Sting value into the chart SQL query from Query sting filter? I have a SQL Query which contains, Where ID=@ID, I have a Query string web part on that page, How to link it with my chart Query? cheers
7/12/2010 12:06 
please use the {1} placeholder (as provided by a connected Filter Web Part):
Nancy Lavoie  
7/20/2010 19:39 
Hi, I need to know how to proceed to make a graphic in Sharepoint 2007 with Google SQL Chart Web Part. I would like to connect to an excel file as my data source (DB connect string). What is the Select Query? Do I have to do something in my excel file first? Thank you!
7/20/2010 19:50 
just use regular SQL Syntax, where “MyRange” (see example below) is a named range within a work sheet (just mark a block of cells and then assign a range name to it via the right mouse contect menu).
Include the Header row as the first row of your range.
You then refer to this range as follows (eg. the range takes the place of the DB table):

SELECT * FROM MyRange WHERE some condition...
Clement Chan  
10/6/2010 18:42 
I am having a problem when I try to chart from an excel spreadsheet. I put in "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=\\eoneis3\usb\Status Board Doc\Q2 WK12 broz edit.xls;Extended Properties="Excel 12.0 Xml;HDR=YES"" as my connection string. I created a range called usbstatus and used "SELECT * FROM USBStatus" as my SQL Query. The string in the data source is the Sharepoint UNC path. I also filled in the data series column names with the columns i want, but I get an error saying " Failure creating file" Please help! Thank you.
10/7/2010 14:12 
is the „WebClient“service running on your Sharepoint server machine ? This service is needed to access the Sharepoint Library via UNC.
You might also try to map the UNC path to a network drive on the server and then use the drive letter in the connection string instead of the UNC (I am not sure if the OleDB provider accepts UNC paths).
Travis Terlinden  
12/14/2010 19:14 
I downloaded the evaluation version and I'm trying to pull some data from an Excel sheet. The SQL syntax is fine, and when using Inspect SQL Query Data, it looks like the data itself is fetched correctly. The problem is I keep getting an error stating: Data column error:[Column Name]. Also, each piece data is being shown as "data(0) = " without incrementing as I assume it's supposed to, so I'm not sure if that's contributing. Any help would be greatly appreciated. Thank you.
12/14/2010 20:12 
Travis, can you send us your web part tool pane settings to [email protected] for analysis ?
1/26/2011 17:04 
How do I format currency to display with two decimals? The field is already formatted as a sum.
Michael McGuire  
2/3/2011 21:32 
I am trying to implement the webpart connecting to a SQL Server not on the same box. The "Source=" contains the dns and port number,111. I can not connect to the DB. There are firewalls on both boxes but the SP sever is in both. The error I get is: Error: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.) And suggestions or insight would be appreciated.
2/4/2011 10:54 
is your SQL Server configured to allow remote connections (see Microsoft Help article at
In the SQL Management Studio, right click the SQL server instance, choose “Properties”, and under “Select a Page list”, click “Connections”.
Now you should see a checkbox labelled "Allow Remote Connections to This Server". Make sure it is checked. That should take care of the remote connection issue.
2/18/2011 00:07 
Great tool! One question, I am using the VerticleBar Type and would like to set a maximum value for the Y-axis. Is this possible? I have been trying to use the "chxr" paramater, but have had no success. Thanks!
2/18/2011 13:35 
Kfer, do you want to cut off the bars at a specific value ?
Chris B.  
3/18/2011 16:22 
Would it be possible to inherit from a configured Amrein web part? My goal would be to do something like create a new web part using the Amrein web part, but have the configuration for it be pre-built into the new web part such that they can be added to pages easily by non-tech users. For example, if there is a need for a chart of Accounts by Industry. I would take my Amrein SQL chart, configure it with the data source, SQL statement, etc., then create a new web part from this so that the user could easily add it to their own personal dashboard page. The ultimate goal being that they have 10s or 100s of preconfigured KPIS, charts, etc. to choose from and be able to pick and choose. Thanks!
3/18/2011 17:15 
there are three options:
  1. Export the pre-configured web part(s) and tell the users to re-import the web part(s) as needed. Please see the following article:
  2. Upload the exported .webpart file into the top site’s web part gallery which makes it available in the web part gallery
  3. Pre-configure the web part via appSettings variables in the web.config file. When embedding a web part, it will use these values as its default configuration (which can be re-configured by the users).
5/20/2011 20:30 
Is there a way to embed a hyperlink to another web part/SharePoint Google SQL Chart? We would like to "drill-down" and pass a parameter or simply link to another chart which has more detailed information. thanks.
10/25/2011 18:59 
I wish this webpart was NOT using Google Public API. It requires companies to send their data to Google, which is a NONO for most (like mine). Is there any chance this could be avoided with another "local" 2d graphic api? That would be GREAT! Thanks
11/9/2011 17:55 
when i use multiple data series, how can I specify what color to draw each line with? In my testing all lines are drawn in same color Thanks
11/9/2011 18:40 
Anita, please use the "Chart Color" setting to specify a color for each data series in the following format (example is for 3 series):


(values are RGB hexadecimal)
11/16/2011 18:11 
Can I set a default value for the filters?
11/22/2011 15:35 
Anita, we have now added the filter preset feature as follows:
Each dropdown filter can optionally be preset by adding the preset value as follows:
12/13/2011 14:48 
The default value for the filters is not working. For example, if I enter @Year=2009, it shows this as the error message: Combo Fill Error: Column 'Year=2009' does not belong to table. The year 2009 is in the table...
12/13/2011 17:32 
we just recently added this feature with version 1.1.27.
Can you quickly check the web part’s version number by opening the web part’s tool pane and looking it up at the top ?
If you have an older version, please re-download the updated Zip file from our web site, extract and then replace the DLL, followed by an “iisreset” command if you placed the DLL in c:\windows\assembly.
12/16/2011 17:11 
For the default filter, I am continuing to have an issue with it. In the Edit Form of the web part, under the Search Filter(s) field, I entered: Yr@=2011 I am trying to have the default dropdown show 2011. However, when I enter the above in the Search Filter(s) field, on the actual graph, it shows Yr=2011: [Dropdown box] Is there a problem with this or does it need to be fixed? Thanks
12/16/2011 18:19 
there is indeed a bug which displays the default value also in the search field label.
You can actually fix this by adding a friendly search box label as follows (by adding a pipe character followed by the desired label name):


We have fixed the bug in the meantime, so you also could re-download and re-install the solution.
1/6/2012 22:17 
Is there any plan to include Gannt charts?
1/9/2012 07:13 
When i trying to make a graph base on an excel file, I get this Connection error: The Microsoft Access database engine could not find the object 'RangeA'. Make sure the object exists and that you spell its name and the path name correctly. If 'RangeA' is not a local object, check your network connection or contact the server administrator.Error: Cannot find column 0. My connection string is Provider=Microsoft.ACE.OLEDB.12.0;Data Source=c:\Book5.xlsx;Extended Properties="Excel 12.0 Xml;HDR=YES" and the SQL Query is SELECT * FROM RangeA RangeA is defined name is the excel file and it is including the column name.
1/9/2012 16:30 
your connection string looks OK.
You can alternatively specify your SQL query as follows:

Example 1:
Treat the selected worksheet as the data table:
SELECT * FROM [Products$]
(where “Products” is the name of the worksheet, followed by an “$”)

Example 2:
Treat the defined range in the selected worksheet as the data table:
SELECT * FROM [Products$A1:D10]
(where “Products” is the name of the worksheet, followed by an “$” and the cell range)
1/10/2012 18:23 
there are currently no such plans, partly due to the fact that it would be somewhat non-trivial to define an SQL query which would define the tasks, milestones and the task dependencies (say a task might only start after another one has been completed etc.).
You might consider to use an “external” List (assuming you are running SP 2010) connected to your SQL Server and then use the Sharepoint “Gantt View” view format to display the List as a Gantt chart.
3/26/2012 15:11 
Do you have plans to allow the web part to accept multiple filter inputs, so we could use {1} and {2} for example?
4/24/2012 22:04 
in the property "Extra Google Chart Parameters" to draw the graphic, the data are sent to gogle or anything else is optienen graphs without sending query data
4/25/2012 17:11 
yes, the raw data is transmitted to the Google Chart web service via https (SSL) to render the chart. Google warrants that the transferred data are not stored or used for any purpose by Google.
We will also switch to the new Google Visualization Chart API for the next major version of the web part (where no data will need to be transferred anymore).
4/25/2012 17:14 
we now expanded the number of filter web part connections to 12 which you can insert as placeholders {1} … {12} into your SQL query/command.
Anita B  
6/28/2012 17:54 
We recently installed the webpart on Sharepoint. When I configure my chart I get the error "Inner Error: Object Reference not set to an instance of an object". We are setyo wuth a SQL Server DB Conection string - not sure what other information you might need.
7/18/2012 19:57 
I was having the same problem as ANITA B. I am getting a "Inner Error: Object reference not set to an instance of an object." Please help.
7/19/2012 17:19 
can you turn on the web part's "Inspect SQL Data" setting and send us the additional output generated by the web part to [email protected]
7/30/2012 15:06 
For some reason, my SQL Chart Web Part will not expand to the 1000 pixel height. I can have it expand 1000 pixel width but not height. The max I can go for the height is 300 without the chart not showing up on the web page.

I have the lastest update of the web part too so I'm not sure what is causing this issue. Any thoughts?
7/30/2012 15:11 
the chart width and height is indeed limited to 1000 pixels and the product of these two values cannot exceed 300,000.
So if you for example choose 900px as the width, your maximum height will be 300,000/900=333px.
Simon Evans  
9/20/2012 14:06 
Help! I have the SQL chart working to produce a multi bar bar chart and am passing data to the y axis that represents percentage completion, however I have found that if one of the data elements doesn't contain an entry of 100% the y axis doesn't actually go up to 100%. I have tried using some of the google parameters to fix the y axis top and bottom values, but when I apply them although it fixes the y axis issue it creates a new problem in that my bar labels (values returned from within the SQL query) disappear.

Any help on how I might resolve this appreciated?
10/19/2012 15:39 
you can define the axis numbers absolutely, but then you must also define the range and the scale absolutely and you have to be sure, that the values don't exceed minimum and maximum. Otherwise the chart is wrong. E.g. you set the minimum to 40 and the maximum to 90. Add into the field "Extra Google Chart Parameters":



Range numbers: &chxr=0,40,90,10
Explanation: 0: Axis 0 | 40: First number | 90: Last number | 10: step

Grid: &chg=20, 8.333
Explanation: 20: Axis 0, 100/20=5 grid lines | 8.333: Axis 1, 100/8.333=12 grid lines

Scale max., min.: &chds=40,90
Explanation: 40: min. value | 90: max. value

Find more information here.
11/7/2012 15:14 
Is there a way for the charts to summarise the data they show? I am returning a dataset that has object name, progress status and a count value for each combination. In the chart I only want to see the record counts by progress status with the ability to filter whether I am looking at the entire record set or for a specific object. In the chart I currently have I get repeating values for the progress status for each object name?
11/15/2012 20:22 
1) Is there a way to make the charts with a % width rather than a set pixel size, so they will auto size to the screen?
2) Also, we have set up a filter, but the preset value simply does not work. Is there a bug in the current version? I have tried @timePeriod=Week as well as timePeriod=Week and it will not prefill the filter either way.
11/16/2012 10:57 

1) We added this feature to the actual version 1.1.34 downloadable at the top of this page. Optional you can enter 6 or 7 digits into the miscellaneous configuration field "Chart width (px)". The first 2 or 3 digits set the width percentage, the remaining 4 digits are for the size in pixels which is mandatory. E.g. 100% img width and 800px chart width: "Chart width (px)" = 1000800 or e.g. 75% img width and 1200px chart width: "Chart width (px)" = 751200

2) Sometimes the filter presetting doesn't work when the web part’s tool pane is open at the same time. Leave the page and navigate again to it. Check " Inspect SQL Query Data" in the miscellaneous configuration to examine what happens. Look for "Filter Preset=".
11/16/2012 11:15 
there is no such feature. But a solution could be:
You define an additional column in the sql query:
Use DataStatus as new “Label Column Name”. This way you don’t get any more repeating labels.
11/19/2012 21:31 
We have 2 charts next to each other, one with a filter, one without. Is there a way to specify some text for the one with out the filter, so the grey filter section shows up with just that text present.
Because without it, the charts don't line up well, and look bad.
11/20/2012 16:25 
it's not possible to handle that this way. But you can go in page edit mode / HTML / "Edit HTML source" and insert the grey bar as HTML code at the top of the web part which has no filter bar, to align both web parts. In the HTML source there are placeholder paragraphs for each web part.
11/26/2012 23:06 
We are coming across the issue where our labels are long, and the charts become too large because of it. Could you possibly build in an option to hide the labels, and show them on mouse over?
11/28/2012 11:04 
because the applied Google API returns a HTML image (img tag) it's not possible to show labels on mouse over. But it can often help if you use e.g. horizontal instead of vertical bars. If it isn't necessary to show all labels then you can use the web part option "Show every nth Label".
5/27/2013 11:21 
Is drilling down pie chart possible? If yes, how can i do it?
5/27/2013 19:29 
this is currently not possible.
Would you be able to click on a pie slice to drill down ?
If yes, would you then want to be able to show another chart where the data is filtered via SQL by the selected pie slice ?
Chip Chabot  
6/12/2013 21:29 
We are currently using SQL Chart Viewer web part and are interested in upgrading it (we are on version 1.1.8). What is needed to upgrade the software to the current version?

Thanks in advance!
6/13/2013 18:41 
please re-download the updated Zip file, extract the WSP file and then update the web part as follows:
Place the extracted WSP file in the c:\ root folder on your Sharepoint web front end server.
Then use the following Sharepoint PowerShell cmdlet (run as Administrator):

Update-SPSolution -Identity AESQLChartWebpart.wsp -LiteralPath C:\AESQLChartWebpart.wsp -GACDeployment
8/8/2013 12:28 
Hi! Why AESQLChart does not render in SharePoint Designer (SPD) design window? It works perfectly in Explorer. Best, G
8/14/2013 17:48 
the chart itself is created by the Google Chart API and is fetched as an image from the Google Chart API web site. It seems that the SPD design view is not able to reach out to the internet to fetch some content.
10/11/2013 17:06 
Hi Juerg,
We are having a lot of trouble configuring our charts. Is there an example that shows the webpart settings for a bar chart with bar groupings? For example, we are trying to chart our Giving each week for 3 years: this year, last year, and 2 years ago, with each having its own color. Do you have an example of one like this that we can use to help us set ours up?
10/14/2013 18:34 
can you outline how your data is organized (eg. how you select the data to be grouped by year) ? Is each “Giving” a column in your database table (having a “date” and an “amount” column) ?
10/16/2013 19:39 
Hi Juerg,
I apologize for that crazy select statement I sent you, we have since scratched it and started a new one. But, I just wanted to know if you could help us set up a vertical stacked chart. We also need to do a multi-bar chart. Are there are webpart setting examples you can screen capture for us so we can see how to configure them?
10/21/2013 12:42 
to display multiple data series (as for example in a stacked bar chart), please make sure to select the column that represent the labels (x-axis) and the columns representing the data series (y-axis):

Example for 2 data series:
SELECT labels, sales2012, sales2013 FROM table

Please then enter the label column name into the “Label Column Name” setting and the data series columns into the “Data Series Column Names” setting (each column name separated by a comma:

You then can either choose “VerticalBar” or “VerticalStackedBar” from the “Chart Type” setting to create either a side-by-side bar chart or a stacked bar chart.
Aaron MacGillivary  
8/27/2014 14:00 
The link to the Extra Google Chart Parameters is broken. I think it should point to
8/27/2014 14:20 
thanks for pointing this out!
We have now fixed the link to the Google Chart documentation which now is at
Simon Evans  
1/26/2015 19:00 

Fantastic webpart!

We have an enterprise licence for this web part though the version we have deployed is v1.1.31. How do we obtain the most recent version?


1/26/2015 20:48 
just download the most recent version from this page, extract the WSP solution file and then update the web part solution.
2/14/2015 12:38 

I am using this webpart to produce a chart where the number of data points (based on past number of days) is determined dynamically by a filter webpart. I have got it working but I am not keen on the pop up window with radio button options the filter webpart produces. I have tried unsuccessfully to use a form filter webpart configured for a dropdown instead but when I try to come nnect the webparts I don't get the 'send to filter' option, which appears when connecting other filter types - only the 'send to field' connections. The later appears to create a variable with a name rather than a number and although I can get a chart the to ended when using the variable name it has no data points.

Also as the data points vary dependent on the filet selection (last 7 days, last 30 days, last 365 days, etc.) the display every nth label parameter causes a problem as I'd like every 1 label for a 7 day chart, every 7 label for a month chart, etc. is there a way to dynamically set this parameter for different data point volumes?

Many thanks.
2/16/2015 19:59 
you actually could use our free „Filter“ web part (see /apps/page.asp?Q=5835) which allows to send the selected value(s) to the SQL Chart web part where you can inject the transmitted values directly into the SQL query.
However, it is currently not possible to dynamically select the “Show every n ticks” depending on a filter setting.
Jeff Henslee  
12/4/2015 19:00 
Is it possible to display the value(s) of the datapoints being displayed.
For example if my data is total sales by plant and the total sales for plant 1 is $50, I would like to have a data label associated to my datapoint on my graph showing both the plant number (Plant 1) and my total sales dollars ($50).

Is this possible?

Please advise.
12/5/2015 15:24 
you can show the value numbers directly in or on the bars by entering the below into “Extra Google Chart Parameters” web part setting,
as e.g. for two data columns:


For each Data Series you need a:


where 0 is the column enumeration starting at 0. The divider is |.
11 is the font size in pixels
000000 is the font color (RRGGBB).

Sean Cowherd  
1/29/2016 16:58 
Could it be possible to add a date selector for a filter field? Being able to select a date from a calendar might be a better option that typing a date value in for our use.

1/30/2016 16:43 
we have now added the option to configure a search filter as a date picker control by prefixing the date column in the “Search Filters” setting with an “#” character as for example:


Please re-download the updated Zip file, extract the WSP file and then update the web part solution.
Sean Cowherd  
2/4/2016 16:27 
Again for the filter section: For those filters that use a text input box, can you possibly add an execute button for a user to click? Something that can have a custom label might be preferred. Sometimes users aren't sure to hit return on the keyboard to process the filter.

2/7/2016 16:12 
we have now added then new „Search Filter Button” web part setting which allows to (optionally) add a search button.

Please re-download the updated Zip file, extract the WSP file and then update the web part solution.
mitu kumari  
4/15/2016 08:57 
can we create a donut chart using this web part?
4/15/2016 11:25 
this is currently not possible.
We plan to switch to the more recent “Google Visualization” API which will make this option available. However, the new web part release is still a few months away.
7/20/2016 10:01 
When displaying a stacked bar chart, horizontal or vertical, is it possible to display the total quantity/value of the bar next to the label? It seems as though using Label:(x) displays the value of the last of the Data Series columns, rather than the sum of all Data Series for that Label.
7/20/2016 12:29 
you cannot display the sum of all data series, but you can display the vaule of each data series as shown below:

In this case please add the below to the web part’s „Extra Google Chart Parameters” setting (example given for 2 data series):

3/3/2024 10:44 
Hi, here is my setup in modern web part against Oracle database:
Connection is good (working)
query=select title, cat from pie_data
dataseries=title, cat
title=sql chart

All I can see is white screen

Could you please advise?

3/4/2024 13:52 
can you temporarily add the below line to the "Configuration" setting and then indicate the extra information displayed by the web part ?


  RSS Feed   
The web parts added functionality that made our intranet the way we wanted it to be.  The Amrein team is very responsive to customer requirements and will even make modifications to their web parts very quickly.

Tebo Seema, Botswana Bureau of Standards

This web part is available for:
SharePoint 2010
SharePoint 2013
SharePoint 2016
SharePoint 2019
SharePoint SE
SharePoint 2019 'modern'
SharePoint SE 'modern'
Office 365

Related Web Parts

The SQL Query Viewer Web Part allows to query external SQL Server databases and displays the result as a pageable list without having to resort to Sharepoint Designer. It supports OLE-DB data sources and allows to create Web Part connections.