Click here to Skip to main content
15,921,694 members
Home / Discussions / C#
   

C#

 
GeneralProperly disconnecting and shutting down a socket. [modified] Pin
Jordanwb23-Apr-08 10:26
Jordanwb23-Apr-08 10:26 
GeneralRe: Properly disconnecting and shutting down a socket. Pin
Gareth H23-Apr-08 12:55
Gareth H23-Apr-08 12:55 
GeneralRe: Properly disconnecting and shutting down a socket. Pin
Jordanwb25-Apr-08 9:11
Jordanwb25-Apr-08 9:11 
GeneralImporting a csv Pin
BraveKnightFSJ23-Apr-08 10:07
BraveKnightFSJ23-Apr-08 10:07 
GeneralRe: Importing a csv Pin
Christian Graus23-Apr-08 10:25
protectorChristian Graus23-Apr-08 10:25 
GeneralRe: Importing a csv Pin
BraveKnightFSJ23-Apr-08 12:29
BraveKnightFSJ23-Apr-08 12:29 
GeneralRe: Importing a csv Pin
Christian Graus23-Apr-08 12:38
protectorChristian Graus23-Apr-08 12:38 
GeneralRe: Importing a csv Pin
BraveKnightFSJ24-Apr-08 10:17
BraveKnightFSJ24-Apr-08 10:17 
Just wanted to give everyone an update. I have figured out how to get a file to import if the file name has a single quote in the name. The way to do this is to put [] around the file name

string test = String.Format("Select * from [{0}]", System.IO.Path.GetFileName(FileName));

However having a period in the name is still breaking the code. I am still working at figuring out that and having the muliple quotes on the csv.


here is an example of the file

1234, "Bar, Energy", 2
1457, """Bar, Candy""", 1.50

the first line in the table would look like column a 1234, column b Bar, Energy, column c 2.00

but the second line should be column a 1457, column b "Bar, Candy", 1.50


But it is crashing the import saying Syntax error in from clause
QuestionSQL Server Authentication Pin
aecordoba23-Apr-08 9:33
aecordoba23-Apr-08 9:33 
GeneralRe: SQL Server Authentication Pin
Sam Xavier24-Apr-08 21:05
Sam Xavier24-Apr-08 21:05 
GeneralRe: SQL Server Authentication Pin
aecordoba25-Apr-08 3:47
aecordoba25-Apr-08 3:47 
GeneralRe: SQL Server Authentication Pin
Sam Xavier28-Apr-08 20:07
Sam Xavier28-Apr-08 20:07 
GeneralXML file resturctued with XSL style sheet Pin
zaboboa23-Apr-08 9:26
zaboboa23-Apr-08 9:26 
GeneralRe: XML file resturctued with XSL style sheet Pin
led mike23-Apr-08 9:33
led mike23-Apr-08 9:33 
GeneralRe: XML file resturctued with XSL style sheet Pin
zaboboa23-Apr-08 10:10
zaboboa23-Apr-08 10:10 
GeneralRe: XML file resturctued with XSL style sheet Pin
zaboboa23-Apr-08 10:11
zaboboa23-Apr-08 10:11 
QuestionIVR System Pin
KBM7323-Apr-08 7:08
KBM7323-Apr-08 7:08 
NewsRe: IVR System Pin
carbon_golem23-Apr-08 8:11
carbon_golem23-Apr-08 8:11 
GeneralRe: IVR System Pin
MumbleB23-Apr-08 8:37
MumbleB23-Apr-08 8:37 
Questionexception handling for another program, is it possible in c#? Pin
Cptkli23-Apr-08 6:46
Cptkli23-Apr-08 6:46 
AnswerRe: exception handling for another program, is it possible in c#? Pin
Dave Kreskowiak23-Apr-08 10:05
mveDave Kreskowiak23-Apr-08 10:05 
GeneralRe: exception handling for another program, is it possible in c#? Pin
Cptkli23-Apr-08 11:34
Cptkli23-Apr-08 11:34 
GeneralText Encoding Pin
ayaxian23-Apr-08 5:29
ayaxian23-Apr-08 5:29 
GeneralRe: Text Encoding Pin
Anthony Mushrow23-Apr-08 6:58
professionalAnthony Mushrow23-Apr-08 6:58 
Generalc# and File.copy() function Pin
menelik23-Apr-08 5:10
menelik23-Apr-08 5:10 

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.