Click here to Skip to main content
15,899,314 members
Home / Discussions / Database
   

Database

 
AnswerRe: SQL DATABASE [modified] Pin
Eddy Vluggen26-Aug-10 8:41
professionalEddy Vluggen26-Aug-10 8:41 
GeneralRe: SQL DATABASE Pin
PIEBALDconsult27-Aug-10 3:16
mvePIEBALDconsult27-Aug-10 3:16 
GeneralRe: SQL DATABASE Pin
SilimSayo27-Aug-10 6:01
SilimSayo27-Aug-10 6:01 
GeneralRe: SQL DATABASE Pin
Eddy Vluggen27-Aug-10 7:13
professionalEddy Vluggen27-Aug-10 7:13 
GeneralRe: SQL DATABASE Pin
PIEBALDconsult27-Aug-10 14:47
mvePIEBALDconsult27-Aug-10 14:47 
GeneralRe: SQL DATABASE Pin
SilimSayo10-Sep-10 8:23
SilimSayo10-Sep-10 8:23 
QuestionVariants of SQL Server Pin
john john mackey26-Aug-10 6:14
john john mackey26-Aug-10 6:14 
AnswerRe: Variants of SQL Server Pin
Estys26-Aug-10 6:42
Estys26-Aug-10 6:42 
GeneralRe: Variants of SQL Server Pin
john john mackey26-Aug-10 7:12
john john mackey26-Aug-10 7:12 
GeneralRe: Variants of SQL Server Pin
Estys26-Aug-10 7:42
Estys26-Aug-10 7:42 
GeneralRe: Variants of SQL Server Pin
Mycroft Holmes26-Aug-10 13:19
professionalMycroft Holmes26-Aug-10 13:19 
GeneralRe: Variants of SQL Server Pin
PIEBALDconsult27-Aug-10 3:18
mvePIEBALDconsult27-Aug-10 3:18 
GeneralRe: Variants of SQL Server Pin
PIEBALDconsult27-Aug-10 3:21
mvePIEBALDconsult27-Aug-10 3:21 
AnswerRe: Variants of SQL Server Pin
Steve Maier26-Aug-10 7:39
professionalSteve Maier26-Aug-10 7:39 
GeneralRe: Variants of SQL Server Pin
john john mackey26-Aug-10 7:49
john john mackey26-Aug-10 7:49 
QuestionSQL Joins Help Pin
Jammer26-Aug-10 2:03
Jammer26-Aug-10 2:03 
AnswerRe: SQL Joins Help Pin
scottgp26-Aug-10 2:45
professionalscottgp26-Aug-10 2:45 
AnswerRe: SQL Joins Help Pin
Mycroft Holmes26-Aug-10 2:48
professionalMycroft Holmes26-Aug-10 2:48 
GeneralRe: SQL Joins Help Pin
Jammer26-Aug-10 3:40
Jammer26-Aug-10 3:40 
QuestionSet value of Excel cell to the result of a query [modified] Pin
anthasaurus25-Aug-10 23:12
anthasaurus25-Aug-10 23:12 
AnswerRe: Set value of Excel cell to the result of a query Pin
Eddy Vluggen26-Aug-10 7:20
professionalEddy Vluggen26-Aug-10 7:20 
QuestionBest way to merge/process commands on SQLCE Pin
Spawn@Melmac25-Aug-10 5:23
Spawn@Melmac25-Aug-10 5:23 
Greetings,

Apologies if this is a dumb question but I'm afraid my SQL knowledge is a little limited. Anyway I am using SQLCE as I don't need anything bigger at the moment but I have a problem when processing the following command

INSERT INTO [Contact]
           ([Name]
           ,[Tel]
           ,[Mobile]
           ,[Email])
     VALUES
           (N'Name'
           ,N'Tel'
           ,N'Mobile'
           ,N'Email');
SELECT @@IDENTITY AS ContactID


My problem is that although this functions correctly when issued by hand, my encapsulation of OLEDB only seems to permit a single command. Now this is the only occasion when I need to issue multiple commands so it seems a shame to have to mess up my existing code just for this instance.

So can anyone suggest how I might merge the above into a single command that INSERTs and gives me the ID of the inserted data?

Or is there a simple way with OLEDB & MFC that I can process multiple recordsets without adding too much overhead.

Any thoughts or suggestions would be appreciated.

Many thanks
Alan

AnswerRe: Best way to merge/process commands on SQLCE Pin
David Mujica25-Aug-10 5:39
David Mujica25-Aug-10 5:39 
AnswerRe: Best way to merge/process commands on SQLCE Pin
Eddy Vluggen25-Aug-10 7:54
professionalEddy Vluggen25-Aug-10 7:54 
GeneralRe: Best way to merge/process commands on SQLCE Pin
Spawn@Melmac25-Aug-10 14:22
Spawn@Melmac25-Aug-10 14:22 

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.