15,919,613 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 Member 10794814 (Top 28 by date)
Member 10794814
23-May-14 10:14am
View
thank you
Member 10794814
20-May-14 7:31am
View
insertCommand.ExecuteNonQuery(); its there..!!!
Member 10794814
20-May-14 3:56am
View
same error incorrect syntax near 'from'.
Member 10794814
20-May-14 3:01am
View
using (SqlCommand cmd = new SqlCommand("select from" + coursetype + "where UID = @UID", con)
if cource type is junior it retrieve data from junior else from degree
string insertQuery = "DELETE FROM" + coursetype + "WHERE UID = '@UID'";<br>
and this query does not delete data from table
Member 10794814
19-May-14 0:06am
View
@syed shanu
Sir Actually there are 3 tables, and it retrieve student info from junior or degree table.
I give only UID to the application and click on search button then the application will retrieve value from junior or degree table. IF ITS A JUNIOR STUDENT IT RETRIEVE FROM FROM JUNIOR OR VICE VERSA.
This both table has Column name as A "UID".
And application will retrieve payment info from payment table but it has column name as a "STUD_UID".
Sir help me out how can i do this ?
Member 10794814
18-May-14 11:14am
View
Deleted
private void button3_Click(object sender, EventArgs e)<br>
{<br>
try<br>
{<br>
using (SqlConnection con = new SqlConnection("Data Source=ROHIT-PC\\SQLEXPRESS;Initial Catalog=FMS;Integrated Security=True"))<br>
using (SqlCommand cmd = new SqlCommand("select * from DEGREE_STUDENT UNION select * from JUNIOR_STUDENT where UID UNION select * from PAYMENT where STUD_UID =@UID",con))<br>
{<br>
cmd.Parameters.AddWithValue("@UId", txtUid.Text);<br>
con.Open();<br>
using (SqlDataReader reader = cmd.ExecuteReader())<br>
{<br>
if (reader.Read())<br>
{<br>
txtUid.Text = reader["UID"].ToString();<br>
txtName.Text = reader["STUDENT_NAME"].ToString();<br>
txtRoll.Text = reader["ROLL_NO"].ToString();<br>
txtGender.Text = reader["GENDER"].ToString();<br>
cbxYearname.Text = reader["YEAR_ID"].ToString();<br>
txtRemarks.Text = reader["REMARKS"].ToString();<br>
txtAcademicYear.Text = reader["ACADEMIC_YEAR"].ToString();<br>
txtAdmissiontype.Text = reader["ADMISSION_TYPE"].ToString();<br>
cbxCategory.Text = reader["CATEGORY_ID"].ToString();<br>
txtSubcategory.Text = reader["SUB_CATEGORY"].ToString();<br>
courseName.Text = reader["CLASS_ID"].ToString();<br>
mbxChequeno.Text = reader["CHEQUE_NO"].ToString();<br>
txtBankname.Text = reader["BANK_NAME"].ToString();<br>
textAmtpaid.Text = reader["AMOUNT_PAID"].ToString();<br>
<br>
} reader.Close();<br>
con.Close();<br>
}<br>
}<br>
}<br>
catch (Exception er)<br>
{<br>
MessageBox.Show("There was an Error : " + er, "BFMS CRITICAL ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);<br>
<br>
}<br>
}<br>
<br>
this code not retrieve value from database
Member 10794814
18-May-14 9:50am
View
sir i tried for one table.and it retrieve value from one table but i m not tried for multiple tables
Member 10794814
18-May-14 7:56am
View
form
Member 10794814
18-May-14 2:04am
View
Error 8 'System.Windows.Forms.TextBox' does not contain a definition for 'Attributes' and no extension method 'Attributes' accepting a first argument of type 'System.Windows.Forms.TextBox' could be found (are you missing a using directive or an assembly reference?)
Member 10794814
14-May-14 4:05am
View
thank you Prasad Sir
Member 10794814
14-May-14 3:20am
View
sir its Fee Management System..
Member 10794814
14-May-14 3:20am
View
sir i am using SQL Server Management studio 2008 r2
Member 10794814
14-May-14 0:09am
View
sorry sir...
Member 10794814
14-May-14 0:08am
View
it retrieve data from first table but it fail to retrieve data from second table..
Member 10794814
13-May-14 12:35pm
View
THANK YOU SO MUCH..SIR...
Member 10794814
13-May-14 12:21pm
View
Index out of range exception was unhandled
NAME
Member 10794814
13-May-14 2:11am
View
but it show me another error
stored procedure not find..
any solution for this ??
Member 10794814
13-May-14 2:10am
View
yes..
Member 10794814
13-May-14 1:51am
View
{SqlDataReader reader = cmd.ExecuteReader();}
Could not find stored procedure 'select * from JUNIOR_STUDENT where UID=@123'' new
error on this line !!!!!!
Member 10794814
11-May-14 1:25am
View
thank you
Member 10794814
6-May-14 0:31am
View
@ Jose Amilcar Ferreira Cassimiro
yes it is... it has some value
Member 10794814
6-May-14 0:31am
View
its show nothing when i click on search button ,the value is not display in respective textbox.
any suggestion ???
Member 10794814
6-May-14 0:28am
View
Deleted
@ Jose Amilcar Ferreira Cassimiro
yes it is... it has some value
Member 10794814
5-May-14 12:32pm
View
Sir then what is solution for this ??
Member 10794814
5-May-14 6:56am
View
the method or operation is not implemented
Member 10794814
5-May-14 2:11am
View
Deleted
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BhavansFMS.Cancel_ReportTableAdapters;
namespace BhavansFMS
{
public partial class Cancel_Admission_Report : Form
{
public Cancel_Admission_Report()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Cancel_Admission_Report car = new Cancel_Admission_Report();
Cancel_Report ds = new Cancel_Report();
CANCEL_STUDENT_RECORDSTableAdapter ctr = new CANCEL_STUDENT_RECORDSTableAdapter();
ctr.Fill(ds.CANCEL_STUDENT_RECORDS);
car.SetDataSource(ds);
crystalReportViewer1.ReportSource = car;
}
private void SetDataSource(Cancel_Report ds)
{
throw new NotImplementedException();(The method or operation is not implemented.)
}
}
}
Member 10794814
5-May-14 2:00am
View
can you explain me how to create a crystal report for windows form where database is make using SQL Server Management studio 2008r2.
Member 10794814
5-May-14 1:51am
View
thank you sir..
Show More