Course Solutions Uncategorized (Solved) : Following Code Throwing Following Error Message C Microsoft Visual Studio Help Wrong Code Q31931595 . . . .

(Solved) : Following Code Throwing Following Error Message C Microsoft Visual Studio Help Wrong Code Q31931595 . . . .

 

The following code is throwing the following error message (C#Microsoft Visual Studio). Any help with what I am doing wrong withthis code would be appreciated:

Error: UnsuccessfulSytem.Data.SqlClient.SqlException(0x80131904): Incorrect syntax near the keyword ‘ON’.

Code:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
using Acme.Data_Access_Layer;
using Acme.Business_Layer;

namespace Acme
{
public partial class frmSalesView : Form
{
public frmSalesView()
{
InitializeComponent();
}
private void DisplaySales()
{
string selectQuery;

selectQuery = “SELECT Sales.SalesID, Customers.CustomerID,Products.ProductID, Sales.Payable, “;
selectQuery = selectQuery + “Sales.StartDate “;
selectQuery = selectQuery + “FROM Sales INNER JOIN “;
selectQuery = selectQuery + “Customers ON Sales.CustomerID =Customer.CustomerID,”;
selectQuery = selectQuery + “Products ON Sales.ProductID =Products.ProductID”;
selectQuery = selectQuery + ” ” +GlobalVariables.salesSearchCriteria;

SqlConnection conn =ConnectionManager.DatabaseConnection();
SqlDataReader rdr = null;

try
{
conn.Open();
SqlCommand cmd =

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : 1 Asked Build One Network Based Course Registration 2 Department Publie Works Large Street Q32904456 . . . .(Solved) : 1 Asked Build One Network Based Course Registration 2 Department Publie Works Large Street Q32904456 . . . .

<p dir="ltr"><img src="https://media.cheggcdn.com/media%2F9e0%2F9e00f8ff-ecfd-405d-9af9-027f04befb64%2Fimage.png" alt="1) You have been asked to build one of the a, a network-based course registration 2) The department of publie works for a large street address, size