15,949,686 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 .NET 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 12962919 (Top 12 by date)
Member 12962919
10-Sep-18 0:49am
View
Can you tell where to add Tonumber. before sum or after sum. Because when add it after sum its gives error to many argument.
Member 12962919
2-Nov-17 0:52am
View
The query problem is solved but it add some additional columns in table like Table_catalog,table_schema,table type
Member 12962919
1-Nov-17 9:37am
View
I used this but this gives me error in query
here is code
OleDbConnection connection = null;
try
{
string excelConnectionString = string.Format("Provider=Microsoft.ACE.OLEDB.12.0;Data Source={0};Extended Properties='Excel 8.0;HDR=Yes'", path);
connection = new OleDbConnection();
connection.ConnectionString = excelConnectionString;
connection.Open();
DataTable table = new DataTable("Customers");
table = connection.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, null);
String[] excelSheets = new String[table.Rows.Count];
int i = 0;
// Add the sheet name to the string array.
foreach (DataRow row in table.Rows)
{
excelSheets[i] = row["TABLE_NAME"].ToString();
i++;
}
string Sheet = excelSheets[1];
string query = "select * from" + Sheet;
OleDbCommand command = new OleDbCommand(query, connection);
DbDataReader dr = command.ExecuteReader();
table.Load(dr);
Member 12962919
27-Oct-17 6:31am
View
thanks problem solved
Member 12962919
6-Oct-17 2:49am
View
but if i used ClosedXML then it should be necessary that excel is installed on client system like interop.
Member 12962919
5-Oct-17 6:31am
View
can you explain
Member 12962919
4-Oct-17 6:07am
View
i already tried something like this. if i add '' in value then it save as it is. e.g '05'
Member 12962919
22-Aug-17 2:47am
View
i already tried to replace & with & but its not work
Member 12962919
30-Jun-17 6:11am
View
can you check the Procedure or code is completely true or anything wrong in it
Member 12962919
30-Jun-17 5:50am
View
after executing its return 0 count in dr.
Member 12962919
10-Mar-17 7:10am
View
Thanks, but the problem is already solved
Member 12962919
9-Mar-17 3:58am
View
its not work
Msg 4104, Level 16, State 1, Line 6
The multi-part identifier "tblSMSSendData.SMSTEXT" could not be bound.
Show More