Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding more rows to a select
Message
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
00554214
Message ID:
00554215
Views:
11
This message has been marked as the solution to the initial question of the thread.
You can use union
SELECT dtDate FROM timesheets
UNION ALL
SELECT GETDATE()
>In a stored procedure, is there a way to add more rows to the result of a select statement?
>
>Something like this..
>SELECT dtDate FROM timesheets
>INSERT INTO ????? (dtDate) VALUES(GETDATE())
>
>The purpuse of this result set is to get a list of dates for read only purposes.
>
>Thanks,
>
>Chris
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform