myLittleTools Community Forum

Welcome Guest Search | Active Topics | Members | Log In | Register

Diabled control script Options · View
giubel1976
Posted: Wednesday, December 22, 2010 1:25:26 PM
Rank: Newbie
Groups: Member

Joined: 12/22/2010
Posts: 1
Points: -94
Hi,
when I try to execute a script conditionally, i have the following error:

Code:
if 1=2 begin
select 1;
ALTER TABLE Color ADD Value bit NULL ;
end
else
begin
select 2;
end

Msg 2705, Level 16, State 4, Line number 3
Column names in each table must be unique. Column name 'Value' in table 'Color' is specified more than once.

but the script is never executed.

How do I disable the control?
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

Theme created by myLittleTools
Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.