Click here to Skip to main content
15,921,279 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: My service move my file Location but doesn't upload the data in sql server... here is my code Pin
Nathan Minier21-Sep-17 1:43
professionalNathan Minier21-Sep-17 1:43 
Man, I'm just trying to help you out, but if you really want me to address your passive-aggressive BS:

Member 12863453 wrote:
string excelConnectionString = @"Microsoft.Jet.OLEDB.4.0;Data Source=" + path +";Extended Properties=Excel 8.0;HDR =YES;Persist Security Info=False";


That's a hard-set connection string, not being pulled from AppConfig. The only part being set in appConfig is the machine path for the directory where the files are stored. You can set a connectionString in AppConfig all day and it literally doesn't matter if you don't use it.

Member 12863453 wrote:
OleDbConnection excelConnection = new OleDbConnection(excelConnectionString);


That's a class that uses the OLEDB provider to connect. That's meant for Office products, not SQL Server. It MIGHT work with SQL Server if the Client Tools Connectivity pack is installed on said server instance, but there's literally no point in using it when you have the native driver available (namely, SqlConnection).
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli

GeneralRe: My service move my file Location but doesn't upload the data in sql server... here is my code Pin
Member 1286345322-Sep-17 23:44
professionalMember 1286345322-Sep-17 23:44 
AnswerRe: My service move my file Location but doesn't upload the data in sql server... here is my code Pin
Richard MacCutchan20-Sep-17 21:38
mveRichard MacCutchan20-Sep-17 21:38 
GeneralRe: My service move my file Location but doesn't upload the data in sql server... here is my code Pin
Member 1286345320-Sep-17 21:52
professionalMember 1286345320-Sep-17 21:52 
GeneralRe: My service move my file Location but doesn't upload the data in sql server... here is my code Pin
Richard MacCutchan20-Sep-17 22:16
mveRichard MacCutchan20-Sep-17 22:16 
GeneralRe: My service move my file Location but doesn't upload the data in sql server... here is my code Pin
Member 1286345320-Sep-17 22:33
professionalMember 1286345320-Sep-17 22:33 
GeneralRe: My service move my file Location but doesn't upload the data in sql server... here is my code Pin
Richard MacCutchan20-Sep-17 22:53
mveRichard MacCutchan20-Sep-17 22:53 
GeneralRe: My service move my file Location but doesn't upload the data in sql server... here is my code Pin
Member 1286345320-Sep-17 22:56
professionalMember 1286345320-Sep-17 22:56 
GeneralRe: My service move my file Location but doesn't upload the data in sql server... here is my code Pin
Member 1286345322-Sep-17 23:46
professionalMember 1286345322-Sep-17 23:46 
QuestionUnable to cast object of type 'System.DBNull' to type 'System.String'. Pin
samflex19-Sep-17 5:35
samflex19-Sep-17 5:35 
AnswerRe: Unable to cast object of type 'System.DBNull' to type 'System.String'. Pin
Richard Deeming19-Sep-17 6:04
mveRichard Deeming19-Sep-17 6:04 
GeneralRe: Unable to cast object of type 'System.DBNull' to type 'System.String'. Pin
samflex19-Sep-17 9:17
samflex19-Sep-17 9:17 
QuestionDot Net Core 1.1 Static files(css,fonts,js) are not getting loaded when I am deploying my site in a Sub Domain Pin
IncodeSolutions18-Sep-17 19:58
IncodeSolutions18-Sep-17 19:58 
QuestionNeed a article on repository and data access code unit testing Pin
Mou_kol17-Sep-17 22:54
Mou_kol17-Sep-17 22:54 
AnswerRe: Need a article on repository and data access code unit testing Pin
F-ES Sitecore18-Sep-17 0:07
professionalF-ES Sitecore18-Sep-17 0:07 
PraiseRe: Need a article on repository and data access code unit testing Pin
Mou_kol19-Sep-17 23:56
Mou_kol19-Sep-17 23:56 
Questionvb.net 2010 web form app point to correct .net framework Pin
dcof15-Sep-17 14:49
dcof15-Sep-17 14:49 
QuestionAdding API's to website Pin
Member 1271965814-Sep-17 10:35
Member 1271965814-Sep-17 10:35 
QuestionHow do I handle nulls in RadioButtonList in Repeater? Pin
samflex13-Sep-17 9:50
samflex13-Sep-17 9:50 
AnswerRe: How do I handle nulls in RadioButtonList in Repeater? Pin
Kornfeld Eliyahu Peter13-Sep-17 10:29
professionalKornfeld Eliyahu Peter13-Sep-17 10:29 
GeneralRe: How do I handle nulls in RadioButtonList in Repeater? Pin
samflex13-Sep-17 11:04
samflex13-Sep-17 11:04 
AnswerRe: How do I handle nulls in RadioButtonList in Repeater? Pin
Richard Deeming14-Sep-17 1:51
mveRichard Deeming14-Sep-17 1:51 
GeneralRe: How do I handle nulls in RadioButtonList in Repeater? Pin
samflex14-Sep-17 3:58
samflex14-Sep-17 3:58 
QuestionAny utilities for replicating Web Site files through intermediary drop into web site testing location. Pin
Blake Miller6-Sep-17 12:27
Blake Miller6-Sep-17 12:27 
Questionusing asp.net c# Pin
Member 133738734-Sep-17 18:58
Member 133738734-Sep-17 18:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.