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
Macrovision Setup will not run proprly
where are emails stored?
Appliying registry settings to current users profiles.
Winword.exe
Attach DB from storage drive
powershell Get-Acl to Set-Acl system date variable and output to file
Unable to connect to printer in Vista/XP peer-to-peer network
Firefox and sudden shutdown
VB6 application failed at MS Vista Help Please
The desktop you are trying to open is currently available only to administrators