I would recommend using a registy condition insead of a target condition.
You could easily find out what version of SQL is installed and the computer
name via this method.
- Peace be with you in the name of Him who died on the cross; Jesus Christ
Rashad Rivera
"slh" <slh (AT) discussions (DOT) microsoft.com> wrote
Quote:
I'd like to have the same MSBuild script run .sql scripts for me on a
machine
with SQL Server 2000 or a different machine with SQL Server 2005. I have
the
ISQL and SQLCMD statements working for both environments. Can anyone
recommend a target Condition I can use to distinguish between these two
environments? The script will be shared on several machines so I can't
depend on machine name or SQL installation path.
Thanks in advance for your help! |