I create a table in sql server 2k5, the script is look like this:
CREATE TABLE [dbo].[tb1PmtD](
[PmtDLU] [int] NOT NULL,
[PmtDInvLU] [int] NOT NULL,
[PmtDAmount] [money] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[tb1PmtD] WITH NOCHECK ADD CONSTRAINT [tb1Pmttb1PmtD] FOREIGN KEY([PmtDLU])
REFERENCES [dbo].[tb1Pmt] ([PmtID])
ON UPDATE CASCADE
GO
ALTER TABLE [dbo].[tb1PmtD] CHECK CONSTRAINT [tb1Pmttb1PmtD]
When i open this table in ms access data project, recordset in this table is marked as read-only...can't add records or delete. Please help me, what's wrong with my code.
Software/Hardware used:
ASKED:
September 9, 2008 9:08 PM
UPDATED:
September 10, 2008 4:38 PM
Check out my SQL Server blog “SQL Server with Mr Denny” for more SQL Server information.
Thanks, i got the point. Table in sql server must have an index and unique. I need to restructuring my table now.