Home Forums SQL Server 2005 Business Intelligence SSIS - Assign value to a variable - Need ServerName from DestinationConnectionOLEDB as @Enviro from email RE: SSIS - Assign value to a variable - Need ServerName from DestinationConnectionOLEDB as @Enviro from email

  • There may be a better way to get the server name, but the way I do it is run an SQL task and query @@SERVERNAME, then store that into a package-level variable from the result-set.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon