Closed GoogleCodeExporter closed 9 years ago
Vijay,
Would it be possible for you to attach an example SQL Script to show me this
behaviour please, i'm pretty busy fixing all sorts of stuff at the moment. If i
have
a clear example then i can fix it much faster.
Great error description though, almost perfect!
Original comment by dean.tho...@gmail.com
on 8 Apr 2010 at 5:01
Dean,
Actually there isn't any script for it. I added the New column from SSMS to a
table
having Primary key constraint (Note the newly added column isn't the member of
the
primary key).
And in the new object script, the following code was present which was absent
from
the old object script -
CONSTRAINT [PK_ConstraintName] PRIMARY KEY CLUSTERED
(
[PrimaryKeyColumnName] ASC
) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF,
IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
even though the primary isn't affected from adding the new column.
Hope, I have added some clarity to the problem statement.
Please feel free to get back to me in-case of any queries.
Original comment by vinaypug...@gmail.com
on 9 Apr 2010 at 4:25
Hi there,
Yes, i can see the problem now. Very strange, it's like the old script doesn't
think
the actual PK Field(s) is a primary key and therefore doesn't include the
script.
Thanks for that!
Original comment by dean.tho...@gmail.com
on 9 Apr 2010 at 11:25
And problem found, line 128 of Database.cs. It's not cloning everything, only
Assemblies, Tables, Proc's, Functions, Views. Not Constraints.
Original comment by dean.tho...@gmail.com
on 9 Apr 2010 at 11:46
Fixed in revision 32, are you able to check-out the latest version and try
yourself,
or do you need the binaries?
Original comment by dean.tho...@gmail.com
on 9 Apr 2010 at 1:51
I would need the binaries.
Original comment by vinaypug...@gmail.com
on 10 Apr 2010 at 4:59
Please see release 0.4 :)
Original comment by dean.tho...@gmail.com
on 16 Apr 2010 at 10:41
Original issue reported on code.google.com by
vinaypug...@gmail.com
on 25 Mar 2010 at 5:30