TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Malathi
NA
20
7.8k
Visual Studio 2012 c# asp.net Report viewer
Jun 29 2015 6:54 AM
How to connect a rdlc report to Oracle database
table using Web.config connection string
in Visual Studio 2012 c# asp.net.
The database connection is
NOT THROUGH Server Explorer Data Connection [gives Error
ORA-12154
OR
ORA-6413
OR
ERROR[IM014] [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application.
]
.
try
{
conn.Open();
OracleCommand cmd = conn.CreateCommand();
cmd.CommandText = "SELECT * FROM Employee ORDER BY ID ASC";
cmd.Connection = conn;
OracleDataReader rs = cmd.ExecuteReader();
if (rs.Read()) // C#
{
ReportViewer1.Enabled = true;
ReportViewer1.DataBind();
}
}
finally
{
conn.Close();
conn.Dispose();
}
Thanks in advance.
Reply
Answers (
1
)
Write 15 lines above and below from where the exception
search records on child winform not on parent winform c# sql