I have a list of ISO2 country codes that I want to use in the request. Something like that:
select cou, 128,13, 1 from ('AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', [snip]) as cou
But I work.
I remember how this was done in the past, but I canโt find anything else. This is a one-time request, so I am not opposed to performance, coding practices or maintainability.
Any ideas?
UPDATE
As Pax noted, itโs actually better to use this data in my database for all good reasons. I understand his opinion, because I would answer the same thing. However, this data is already in another table, in another database, on another server, on a different network.
To check my queries, I need some quick shot values โโin a table in this new database. I do not want to configure networks, cross-server requests, etc., Just to check my requests for some real data. Hope this explains why I am going upstream for this shot.
sql-server-2005
Boris Callens
source share