Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

validating table schema - can I switch this off?

$
0
0

Hi guys,

I have an annoying issue with SQL in that when I try to reference a column in a table (that doesn't exist yet) I get an error in ssms prior to executing. Is there any way I can turn this off? Or a command that ignores it?

An example...

(i) I have a script that references [myTable].[myColumn]. This column does not exist in my table.
(ii) My sql script adds a new column to my table (i.e. the column in previous step), does some work and then deletes it again.
(iii) My sql errors on pre-execution stage.

Is there any way I can tell sql to trust my code(!) and delay/ignore validation of my column?

Thanks,

Joe



Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>