Click here to Skip to main content
15,897,273 members
Home / Discussions / Database
   

Database

 
GeneralRe: insert trigger Pin
Ashfield2-Jun-08 1:16
Ashfield2-Jun-08 1:16 
GeneralRe: insert trigger Pin
Mr.Kode2-Jun-08 2:49
Mr.Kode2-Jun-08 2:49 
Question[Message Deleted] Pin
snowblindzz1-Jun-08 20:55
snowblindzz1-Jun-08 20:55 
AnswerRe: MS SQL SERVER PERFORMANCE OPTIMIZATION Pin
Ashfield1-Jun-08 22:09
Ashfield1-Jun-08 22:09 
QuestionPermissions [modified] -- [update] Never mind, solved Pin
Mustafa Ismail Mustafa1-Jun-08 12:11
Mustafa Ismail Mustafa1-Jun-08 12:11 
AnswerRe: Permissions Pin
User 17164921-Jun-08 12:20
professionalUser 17164921-Jun-08 12:20 
GeneralRe: Permissions Pin
Mustafa Ismail Mustafa1-Jun-08 12:51
Mustafa Ismail Mustafa1-Jun-08 12:51 
QuestionUpdate+Increment else Insert Pin
Michael P. Scherer1-Jun-08 5:11
Michael P. Scherer1-Jun-08 5:11 
I'm not much of one with SQL, and I'm not sure if this is possible, but it seemed to me that it would be better to do it this way if it is than to split it into several queries.

I'm making a page usage site for my ASP.NET page, and I want to store statistics for what browser is being used, which OS, etc. So I have a table with 2 fields: BrowserName and Sessions. I want to make a query that if the BrowserName exists, then it increments Sessions, otherwise it adds the BrowserName and sets Sessions to 1. Switching between Update/Insert in particular has left me clueless.

Thanks in advance!


AnswerRe: Update+Increment else Insert Pin
Hesham Amin1-Jun-08 12:20
Hesham Amin1-Jun-08 12:20 
Questiondrop mergearticle Pin
am2h31-May-08 23:50
am2h31-May-08 23:50 
AnswerRe: drop mergearticle Pin
Alsvha1-Jun-08 0:33
Alsvha1-Jun-08 0:33 
QuestionRe: drop mergearticle Pin
am2h1-Jun-08 0:54
am2h1-Jun-08 0:54 
QuestionQuery for this pricing model Pin
ChrisFarrugia31-May-08 22:23
ChrisFarrugia31-May-08 22:23 
AnswerRe: Query for this pricing model Pin
Christian Graus1-Jun-08 4:14
protectorChristian Graus1-Jun-08 4:14 
Questionerror 26 in visual studio 2005 (sql application) Pin
bapu288931-May-08 7:23
bapu288931-May-08 7:23 
Question{"Incorrect syntax near the keyword 'TRIGGER'."} Pin
Member 400849230-May-08 22:19
Member 400849230-May-08 22:19 
AnswerRe: {"Incorrect syntax near the keyword 'TRIGGER'."} Pin
Colin Angus Mackay31-May-08 7:20
Colin Angus Mackay31-May-08 7:20 
Questionrow sum ? Pin
Mr.Kode30-May-08 20:57
Mr.Kode30-May-08 20:57 
AnswerRe: row sum ? Pin
www.Developerof.NET30-May-08 22:13
www.Developerof.NET30-May-08 22:13 
QuestionGetDefaultConnect() in CRecordset? Pin
Le@rner30-May-08 19:31
Le@rner30-May-08 19:31 
AnswerCP NOTE Pin
leckey31-May-08 16:41
leckey31-May-08 16:41 
QuestionQuestion Regarding .Load() Pin
Jammer30-May-08 14:25
Jammer30-May-08 14:25 
QuestionUpdate Pin
Bassam Saoud30-May-08 9:41
Bassam Saoud30-May-08 9:41 
AnswerRe: Update Pin
Blue_Boy30-May-08 11:35
Blue_Boy30-May-08 11:35 
AnswerRe: Update Pin
Alsvha30-May-08 20:26
Alsvha30-May-08 20:26 

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.