Click here to Skip to main content
15,888,461 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to compare a sql server table field with a csv field and display what is not in the sql table. Pin
Norris Chappell25-Apr-15 16:15
Norris Chappell25-Apr-15 16:15 
GeneralRe: How to compare a sql server table field with a csv field and display what is not in the sql table. Pin
Norris Chappell25-Apr-15 16:18
Norris Chappell25-Apr-15 16:18 
GeneralRe: How to compare a sql server table field with a csv field and display what is not in the sql table. Pin
Norris Chappell25-Apr-15 16:21
Norris Chappell25-Apr-15 16:21 
GeneralRe: How to compare a sql server table field with a csv field and display what is not in the sql table. Pin
Sascha Lefèvre25-Apr-15 16:22
professionalSascha Lefèvre25-Apr-15 16:22 
GeneralRe: How to compare a sql server table field with a csv field and display what is not in the sql table. Pin
Sascha Lefèvre25-Apr-15 16:20
professionalSascha Lefèvre25-Apr-15 16:20 
GeneralRe: How to compare a sql server table field with a csv field and display what is not in the sql table. Pin
Norris Chappell25-Apr-15 16:26
Norris Chappell25-Apr-15 16:26 
GeneralRe: How to compare a sql server table field with a csv field and display what is not in the sql table. Pin
Norris Chappell25-Apr-15 16:27
Norris Chappell25-Apr-15 16:27 
GeneralRe: How to compare a sql server table field with a csv field and display what is not in the sql table. Pin
Sascha Lefèvre25-Apr-15 16:36
professionalSascha Lefèvre25-Apr-15 16:36 
Quote:
If that is the case why didn't I need to have it when I did the select on the "where not exists" query?
Sorry, I'm tired - now I think I understood what you meant: The DataAdapter on this line: dataAdapter.Fill(dataTable); opens the connection automatically if it isn't already, but cmd.ExecuteNonQuery(); doesn't, so after un-commenting that line it became neccessary to open the connection explicitly.

Quote:
One more thing My perm table is called TempTable maybe I should create the temp table with a different name?
I think you're tired too Wink | ;) Yes, you should have renamed or deleted the perm table. (I actually don't know if it would be a problem, I just told you to do that to avoid a potential error.)

Quote:
Okay didn't get the error. However, I don't see the table in SQL Server?
It's a temporary table. It exists only during the lifetime of the connection and is only visible to that connection.

Quote:
I tried to query it and got an error?
Always tell the exact error message when you're trying to get help Smile | :)
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

GeneralRe: How to compare a sql server table field with a csv field and display what is not in the sql table. Pin
Norris Chappell25-Apr-15 16:40
Norris Chappell25-Apr-15 16:40 
GeneralRe: How to compare a sql server table field with a csv field and display what is not in the sql table. Pin
Sascha Lefèvre25-Apr-15 16:46
professionalSascha Lefèvre25-Apr-15 16:46 
GeneralRe: How to compare a sql server table field with a csv field and display what is not in the sql table. Pin
Norris Chappell27-Apr-15 3:53
Norris Chappell27-Apr-15 3:53 
GeneralRe: How to compare a sql server table field with a csv field and display what is not in the sql table. Pin
Sascha Lefèvre27-Apr-15 5:08
professionalSascha Lefèvre27-Apr-15 5:08 
GeneralRe: How to compare a sql server table field with a csv field and display what is not in the sql table. Pin
Norris Chappell27-Apr-15 10:53
Norris Chappell27-Apr-15 10:53 
GeneralRe: How to compare a sql server table field with a csv field and display what is not in the sql table. Pin
Sascha Lefèvre27-Apr-15 11:16
professionalSascha Lefèvre27-Apr-15 11:16 
GeneralRe: How to compare a sql server table field with a csv field and display what is not in the sql table. Pin
Norris Chappell27-Apr-15 11:40
Norris Chappell27-Apr-15 11:40 
GeneralRe: How to compare a sql server table field with a csv field and display what is not in the sql table. Pin
Norris Chappell28-Apr-15 5:40
Norris Chappell28-Apr-15 5:40 
GeneralRe: How to compare a sql server table field with a csv field and display what is not in the sql table. Pin
Sascha Lefèvre28-Apr-15 7:27
professionalSascha Lefèvre28-Apr-15 7:27 
GeneralRe: How to compare a sql server table field with a csv field and display what is not in the sql table. Pin
Norris Chappell28-Apr-15 9:00
Norris Chappell28-Apr-15 9:00 
GeneralRe: How to compare a sql server table field with a csv field and display what is not in the sql table. Pin
Norris Chappell28-Apr-15 10:12
Norris Chappell28-Apr-15 10:12 
GeneralRe: How to compare a sql server table field with a csv field and display what is not in the sql table. Pin
Sascha Lefèvre28-Apr-15 10:16
professionalSascha Lefèvre28-Apr-15 10:16 
Questioninserire il dato nel database access (senza generare uno nuovo) Pin
Member 1161509923-Apr-15 3:22
Member 1161509923-Apr-15 3:22 
AnswerRe: inserire il dato nel database access (senza generare uno nuovo) Pin
Pete O'Hanlon23-Apr-15 3:24
mvePete O'Hanlon23-Apr-15 3:24 
GeneralRe: inserire il dato nel database access (senza generare uno nuovo) Pin
Member 1161509924-Apr-15 1:01
Member 1161509924-Apr-15 1:01 
AnswerRe: inserire il dato nel database access (senza generare uno nuovo) Pin
Richard Deeming23-Apr-15 9:32
mveRichard Deeming23-Apr-15 9:32 
QuestionUnable to load DLL "dllforvc.dll": The specified module could not be found. (Exception from HRESULT: 0x8007007E). Pin
Member 1159873923-Apr-15 1:27
Member 1159873923-Apr-15 1:27 

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.