15,899,679 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Somesh Dhal (Top 11 by date)
Somesh Dhal
19-Aug-15 6:47am
View
Can you provide any links that explains how to create a windows service in c++?
Somesh Dhal
18-Aug-15 8:04am
View
I just have a C++ RPC project...I dont have any start or stop methods there because I just have a rpc client and server and use sp create to create a service.(not writing code to create services)
Somesh Dhal
18-Aug-15 8:03am
View
I just have a C++ RPC project...I dont have any start or stop methods there because I just have a rpc client and server and use sp create to create a service.(not writing code to create services)
Somesh Dhal
11-Aug-15 5:49am
View
when i compile the function it is reporting an error showing "Type mismatch in function"
Somesh Dhal
7-Aug-15 5:12am
View
thanks for your response.But Second.obj i snot there.but the strange thing is i am able to find the CLSID of the dll in the registry but no second.obj..any thoughts?
Somesh Dhal
15-Mar-15 7:57am
View
both are in my database
Somesh Dhal
15-Mar-15 7:49am
View
int count;
string myScalarQuery = "SHOW TABLES LIKE 'table1';";
MySqlCommand myCommand = new MySqlCommand(myScalarQuery, conn);
conn.Open();
count = (int)myCommand.ExecuteNonQuery();
conn.Close();
if (count == 0)
Response.Write("no such table exists");
else
Response.Write(" "+ count );
even this gives the same result "no such table exists" even if it exists...
Somesh Dhal
15-Mar-15 7:35am
View
i changed the code to following...
int count;
string myScalarQuery = "SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = 'test' AND table_name = 'login';";
MySqlCommand myCommand = new MySqlCommand(myScalarQuery, conn);
conn.Open();
count = (int)myCommand.ExecuteNonQuery();
conn.Close();
if (count == 0)
Response.Write("no such table exists");
else
Response.Write(" "+ count );
still i i always get the error saying no such table exists even if the table 'login' exists..what to do?
Somesh Dhal
15-Mar-15 5:33am
View
i wanna see if it results any rows so that i can i can check whether a table with the same name already exists..how to solve this?
Somesh Dhal
10-Mar-15 2:58am
View
Thank You....it solved my problem...i was confused between the ' and `...
Somesh Dhal
10-Mar-15 0:06am
View
I HAVE DONE As u said bt same error saying ..
"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''btechstudent_academics' set Tenth=@Tenth Where Regd_no=@Regd_no' at line 1"
the code-
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MySql.Data.MySqlClient;
using System.IO;
public partial class BtechSrtudentUpdate : System.Web.UI.Page
{
MySqlConnection conn1 = new MySqlConnection("Server=localhost;Database=test;Uid=root;Pwd=1234");
string r=" ";
protected void Page_Load(object sender, EventArgs e)
{
TextBoxtRegd.Text = Request.QueryString["regd"];
TextBoxTenth.Text = Request.QueryString["Tenth"];
}
protected void Button1_Click(object sender, EventArgs e)
{
string Regd_no;
Double Tenth;
Regd_no = TextBoxtRegd.Text;
Tenth = Convert.ToDouble(TextBoxTenth.Text);
conn1.Open();
string sql2 = "UPDATE 'btechstudent_academics' set Tenth=@Tenth" + " Where Regd_no=@Regd_no;";
MySqlCommand cmd2 = new MySqlCommand(sql2, conn1);
MySqlParameter param = new MySqlParameter("@Tenth",MySqlDbType.Double );
param.Value = Tenth;
cmd2.Parameters.Add(param );
MySqlParameter param1 = new MySqlParameter("@Regd_no", MySqlDbType.VarChar,10);
param.Value = Regd_no ;
cmd2.Parameters.Add(param1);
try
{
Response.Write("HI");
cmd2.ExecuteNonQuery();
Response.Write("HI2");
}
catch (Exception x)
{ Label1.Text = " " + x.Message; }
finally
{
conn1.Close();
}
}
protected void TextBox1_TextChanged(object sender, EventArgs e)
{
}
protected void TextBoxBacklog_TextChanged(object sender, EventArgs e)
{
}
protected void TextBoxTenth_TextChanged(object sender, EventArgs e)
{
}
protected void TextBox9_TextChanged(object sender, EventArgs e)
{
}
}
Show More