Using MS SQL 2000 it was possible to have a query such as:
SELECT (Code + ' = ' + EdiNumber + ',') AS MyResult FROM tblCountry
Which would give you a list of results like:
MyResult
========
ZW = 263,
ZA = 27,
...
However, in MS SQL 2008 that query returns:
-1 records affected
Does anyone know a) Why? and b) How to get the SQL 2000 result from SQL 2008?
UPDATE
Im just using a standard ASP.NET connection string to connect to the database using a console to post the query:
Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\MyDB.mdf;Integrated Security=True;User Instance=True; Database=MyDB