I'm trying to insert the same record into multiple databases on the same server, I've already done this with cursors but I need to do it without them, how can I do something like this?
Logic example (this isn't a correct example, just an example to explain myself):
INSERT INTO (SELECT name FROM sys.databases)
SELECT '1', 'asd', 'dsa'
What I don't understand is how can I change the database without the cursor.
Thanks in advance