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

Database

 
Generalserver registration problem Pin
Anonymous26-Jun-05 2:50
Anonymous26-Jun-05 2:50 
GeneralRe: server registration problem Pin
Anonymous26-Jun-05 9:33
Anonymous26-Jun-05 9:33 
GeneralInsert problem Pin
Blue_Skye25-Jun-05 17:08
Blue_Skye25-Jun-05 17:08 
GeneralRe: Insert problem Pin
Luis Alonso Ramos25-Jun-05 17:20
Luis Alonso Ramos25-Jun-05 17:20 
GeneralRe: Insert problem Pin
Blue_Skye26-Jun-05 1:44
Blue_Skye26-Jun-05 1:44 
GeneralRe: Insert problem Pin
Luis Alonso Ramos26-Jun-05 5:31
Luis Alonso Ramos26-Jun-05 5:31 
GeneralRe: Insert problem Pin
toxcct26-Jun-05 7:33
toxcct26-Jun-05 7:33 
GeneralRe: Insert problem Pin
Luis Alonso Ramos26-Jun-05 9:12
Luis Alonso Ramos26-Jun-05 9:12 
Yes, it works. I've used the following statement in a stored procedure:
INSERT INTO Shutters(ID_pedido, Fabricado, Precio, Descripcion, Tipo, Madera, Color, Acabado)
    (
        SELECT @ID_pedido, 0, Precio, Descripcion, Tipo, Madera, Color, Acabado
            FROM Cotizacion_Shutters
            WHERE ID_pedido = @ID
    )</code>
and it works as expected, copying some records from one table to another with most columns the same, and changing only the values of one column (Fabricado, set to 0).

-- LuisR



Luis Alonso Ramos
Intelectix - Chihuahua, Mexico

Not much here: My CP Blog!

GeneralRe: Insert problem Pin
Blue_Skye26-Jun-05 20:13
Blue_Skye26-Jun-05 20:13 
GeneralRe: Insert problem Pin
Luis Alonso Ramos27-Jun-05 5:15
Luis Alonso Ramos27-Jun-05 5:15 
GeneralRe: Insert problem Pin
Blue_Skye26-Jun-05 7:40
Blue_Skye26-Jun-05 7:40 
GeneralRe: Insert problem Pin
Luis Alonso Ramos26-Jun-05 9:13
Luis Alonso Ramos26-Jun-05 9:13 
Generalupdating a database Pin
steve_rm25-Jun-05 2:01
steve_rm25-Jun-05 2:01 
Generalvariable queries for vb.net Pin
WetRivrRat24-Jun-05 22:37
WetRivrRat24-Jun-05 22:37 
GeneralRe: variable queries for vb.net Pin
Colin Angus Mackay25-Jun-05 2:38
Colin Angus Mackay25-Jun-05 2:38 
GeneralRe: variable queries for vb.net Pin
WetRivrRat27-Jun-05 2:40
WetRivrRat27-Jun-05 2:40 
Generalhello,sqldatabase registering error Pin
Anonymous24-Jun-05 10:53
Anonymous24-Jun-05 10:53 
GeneralRe: hello,sqldatabase registering error Pin
NeverHeardOfMe24-Jun-05 12:25
NeverHeardOfMe24-Jun-05 12:25 
GeneralRe: hello,sqldatabase registering error Pin
Anonymous24-Jun-05 21:33
Anonymous24-Jun-05 21:33 
Questionbind parameter in a datagrid's column ? Pin
newprog24-Jun-05 2:30
newprog24-Jun-05 2:30 
GeneralSQL Datetime - Independent Format Pin
Seraphin24-Jun-05 0:38
Seraphin24-Jun-05 0:38 
GeneralRe: SQL Datetime - Independent Format Pin
Colin Angus Mackay24-Jun-05 3:42
Colin Angus Mackay24-Jun-05 3:42 
GeneralRe: SQL Datetime - Independent Format Pin
Seraphin25-Jun-05 3:44
Seraphin25-Jun-05 3:44 
GeneralDateTime datatype Pin
Blue_Skye23-Jun-05 18:09
Blue_Skye23-Jun-05 18:09 
GeneralRe: DateTime datatype Pin
Colin Angus Mackay23-Jun-05 21:06
Colin Angus Mackay23-Jun-05 21:06 

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.