Click here to Skip to main content
15,892,005 members
Home / Discussions / C#
   

C#

 
QuestionManaged c++ dll struct members not visible in c# Pin
bonosa23-Mar-13 11:19
bonosa23-Mar-13 11:19 
AnswerRe: Managed c++ dll struct members not visible in c# Pin
jschell23-Mar-13 12:47
jschell23-Mar-13 12:47 
Questionmy namespace is noise but my database name noise2 .there are two table . i want to connect with noise2 but get some error like the name"lbltxtname" does not exist in current context. what can do now ?? Pin
mmmickyyy22-Mar-13 0:49
mmmickyyy22-Mar-13 0:49 
AnswerRe: my namespace is noise but my database name noise2 .there are two table . i want to connect with noise2 but get some error like the name"lbltxtname" does not exist in current context. what can do now ?? Pin
Eddy Vluggen22-Mar-13 1:07
professionalEddy Vluggen22-Mar-13 1:07 
GeneralRe: my namespace is noise but my database name noise2 .there are two table . i want to connect with noise2 but get some error like the name"lbltxtname" does not exist in current context. what can do now ?? Pin
mmmickyyy22-Mar-13 1:42
mmmickyyy22-Mar-13 1:42 
AnswerRe: my namespace is noise but my database name noise2 .there are two table . i want to connect with noise2 but get some error like the name"lbltxtname" does not exist in current context. what can do now ?? Pin
Abhinav S22-Mar-13 16:42
Abhinav S22-Mar-13 16:42 
Questionwhat is this ?? Pin
mmmickyyy22-Mar-13 0:04
mmmickyyy22-Mar-13 0:04 
AnswerRe: what is this ?? Pin
Pete O'Hanlon22-Mar-13 0:21
mvePete O'Hanlon22-Mar-13 0:21 
It's two SQL queries. The first updates the maxValue record, and then the second one selects this value out of the table. I suspect that you are running this inside a single transaction because this is a common technique when you need to manually generate a key. Effectively, what this does is lock the record on the update so that you can then select the value you just updated, rather than getting a random value out based on the selection of a maximum value in a multi-user system.

Now, some things you need to know about posting here on Code Project.


  1. You need to pick the right forum to post a question in. This question has nothing to do with C# - it's a database query, so it should be asked in the database forum.
  2. You need to pick meaningful titles. The title you put down here is worse than useless.
  3. When you present code, wrap them in pre blocks. Once you've typed your code in, highlight it and then press the code button above the textbox. This allows you to select the language you want to use.
  4. Don't double post questions.
  5. Finally, you'll find you get on better if you take the opportunity to say please and thank you.

I was brought up to respect my elders. I don't respect many people nowadays.

CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

GeneralRe: what is this ?? Pin
harold aptroot22-Mar-13 0:47
harold aptroot22-Mar-13 0:47 
Questiontask in c# Pin
leosang21-Mar-13 23:52
leosang21-Mar-13 23:52 
AnswerRe: task in c# Pin
Nicholas Marty22-Mar-13 1:00
professionalNicholas Marty22-Mar-13 1:00 
GeneralRe: task in c# Pin
leosang22-Mar-13 1:31
leosang22-Mar-13 1:31 
GeneralRe: task in c# Pin
Nicholas Marty22-Mar-13 1:45
professionalNicholas Marty22-Mar-13 1:45 
GeneralRe: task in c# Pin
leosang22-Mar-13 1:53
leosang22-Mar-13 1:53 
Questionwhat is the problem ?? Pin
mmmickyyy21-Mar-13 23:16
mmmickyyy21-Mar-13 23:16 
AnswerRe: what is the problem ?? Pin
Nicholas Marty21-Mar-13 23:49
professionalNicholas Marty21-Mar-13 23:49 
SuggestionRe: what is the problem ?? Pin
Matt T Heffron22-Mar-13 7:29
professionalMatt T Heffron22-Mar-13 7:29 
QuestionObject reference not set to an instance of an object. Pin
mmmickyyy21-Mar-13 23:01
mmmickyyy21-Mar-13 23:01 
AnswerRe: Object reference not set to an instance of an object. Pin
Simon_Whale21-Mar-13 23:09
Simon_Whale21-Mar-13 23:09 
GeneralRe: Object reference not set to an instance of an object. Pin
mmmickyyy21-Mar-13 23:16
mmmickyyy21-Mar-13 23:16 
GeneralRe: Object reference not set to an instance of an object. Pin
~~Atul~~21-Mar-13 23:23
~~Atul~~21-Mar-13 23:23 
GeneralRe: Object reference not set to an instance of an object. Pin
Pete O'Hanlon21-Mar-13 23:23
mvePete O'Hanlon21-Mar-13 23:23 
AnswerRe: Object reference not set to an instance of an object. Pin
dusty_dex22-Mar-13 0:17
dusty_dex22-Mar-13 0:17 
GeneralRe: Object reference not set to an instance of an object. Pin
Pete O'Hanlon22-Mar-13 0:40
mvePete O'Hanlon22-Mar-13 0:40 
GeneralRe: Object reference not set to an instance of an object. Pin
dusty_dex22-Mar-13 1:34
dusty_dex22-Mar-13 1:34 

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.