Microsoft
Software
Hardware
Network
Question : SQL Insert
I have a sql INSERT statement where I just copy another row of data. The problem is, I do not want to copy the datetimereceived field. I want it to insert the current date and time and then copy the other fields. Does anyone know how to do that, using the GetDate() feature? This is my current stored procedure:
Begin
INSERT INTO Orders (DateTimeReceived, FirstName, LastName) SELECT DateTimeReceived, FirstName, LastName FROM Orders WHERE Variable = @Variable
End
Answer : SQL Insert
Begin
INSERT INTO Orders (DateTimeReceived, FirstName, LastName) SELECT GETDATE(), FirstName, LastName FROM Orders WHERE Variable = @Variable
End
Random Solutions
Left click turns into right click intermittently
ADODB Recordset Requery
Special character not showing when using AJAX
can i delete softwaredistribution folder on dc
ATI TV tuner and Vista
Extracting a list of Mailbox Sizes
Snap to guides in Illustrator 9?
Lotus Notes: "NSD is running" error
Disable most MS Desktop Search features except for Outlook 07 integration
how can I convert number to string using variable thousand or decimal separators (comma vs period) ?