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
Different Replication Advantages and disadvantages
How to display multiple rows from a record horizontally.
ADO connection string
Exchange vs. POP3
Which Ghost can take image on RAID/SATA/SCSI disk?
How do I shutdown (using shutdown.exe) windows xp and not display UI?
Can I unlink DOCVARIABLES without unlinking other fields, or will my DOCVARIABLE values survive if I don't update and unlink
REGEXP Search
auto-restart of perfmons on reboot?
HTTP 401 Authentication Failed