Not quite sure what might have changed since, but 20 years ago I was doing on-site work in New York, but my primary residence was still in Texas (I flew in every Sunday night, stayed in a hotel, and back every Friday) and still didn't owe any New York state taxes because I didn't actually reside there.