Click here to Skip to main content
15,889,403 members
Home / Discussions / Database
   

Database

 
QuestionUsing DataTable.Select in the slickest way possible Pin
jesarg5-Dec-08 6:55
jesarg5-Dec-08 6:55 
AnswerRe: Using DataTable.Select in the slickest way possible Pin
Wendelius5-Dec-08 7:16
mentorWendelius5-Dec-08 7:16 
QuestionUgly group by problem Pin
gantww5-Dec-08 5:40
gantww5-Dec-08 5:40 
AnswerRe: Ugly group by problem Pin
Ben Fair5-Dec-08 5:54
Ben Fair5-Dec-08 5:54 
Questionretrieve from 3 table Pin
benjamin yap5-Dec-08 4:38
benjamin yap5-Dec-08 4:38 
AnswerRe: retrieve from 3 table Pin
Ben Fair5-Dec-08 5:38
Ben Fair5-Dec-08 5:38 
QuestionHow can I insert a record into a table in SQLCE? Pin
JUNEYT5-Dec-08 0:10
JUNEYT5-Dec-08 0:10 
AnswerRe: How can I insert a record into a table in SQLCE? Pin
Wendelius5-Dec-08 7:38
mentorWendelius5-Dec-08 7:38 
With a quick look I didn't notice anything wrong in your code (except that you don't use parameters in the insert statement, as stated many times in this forum, no no no and no Smile | :) ). So what I suggest is that after executing the insert, fetch the inserted record in your code to see if it's in the db.

I'm suggesting this because you didn't mention how you discover that the insertion wasn't done. One possibility is that from Visual Studio you fetch data in design time from a different database than what you use at run time. This could be because n some cases the database file is copied under bin/debug folder at compile time and that database is used at runtime. In design time the original source of the copy is used so you wouldn't actually see any changes

The need to optimize rises from a bad design.My articles[^]

Questionsql server 2008 Filestream Pin
lambo4-Dec-08 21:19
lambo4-Dec-08 21:19 
AnswerRe: sql server 2008 Filestream Pin
Mycroft Holmes4-Dec-08 21:32
professionalMycroft Holmes4-Dec-08 21:32 
GeneralRe: sql server 2008 Filestream Pin
Paddy Boyd5-Dec-08 0:42
Paddy Boyd5-Dec-08 0:42 
QuestionVLDB optimization Pin
sujithkumarsl4-Dec-08 20:00
sujithkumarsl4-Dec-08 20:00 
AnswerRe: VLDB optimization Pin
Ashfield4-Dec-08 21:02
Ashfield4-Dec-08 21:02 
GeneralRe: VLDB optimization Pin
sujithkumarsl4-Dec-08 21:05
sujithkumarsl4-Dec-08 21:05 
GeneralRe: VLDB optimization Pin
Ashfield5-Dec-08 1:14
Ashfield5-Dec-08 1:14 
AnswerRe: VLDB optimization Pin
Mycroft Holmes4-Dec-08 21:39
professionalMycroft Holmes4-Dec-08 21:39 
AnswerRe: VLDB optimization Pin
Wendelius5-Dec-08 7:31
mentorWendelius5-Dec-08 7:31 
GeneralRe: VLDB optimization Pin
sujithkumarsl8-Dec-08 17:29
sujithkumarsl8-Dec-08 17:29 
GeneralRe: VLDB optimization Pin
Wendelius9-Dec-08 7:40
mentorWendelius9-Dec-08 7:40 
GeneralRe: VLDB optimization Pin
sujithkumarsl9-Dec-08 16:51
sujithkumarsl9-Dec-08 16:51 
GeneralRe: VLDB optimization Pin
Wendelius10-Dec-08 4:41
mentorWendelius10-Dec-08 4:41 
QuestionHow can I optimize this SQL Query? Pin
Rafferty Uy4-Dec-08 17:52
Rafferty Uy4-Dec-08 17:52 
AnswerRe: How can I optimize this SQL Query? Pin
Wendelius4-Dec-08 19:38
mentorWendelius4-Dec-08 19:38 
GeneralRe: How can I optimize this SQL Query? Pin
Rafferty Uy4-Dec-08 20:10
Rafferty Uy4-Dec-08 20:10 
GeneralRe: How can I optimize this SQL Query? Pin
Mycroft Holmes4-Dec-08 21:41
professionalMycroft Holmes4-Dec-08 21:41 

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.