Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.databases.ms-sqlserver    |    Notorious Rube Goldberg contraption    |    19,505 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 18,244 of 19,505    |
|    Erland Sommarskog to Gene Wirchenko    |
|    Re: SSMS 2008: Confusing/Incorrect Error    |
|    15 Apr 11 23:33:59    |
      XPost: microsoft.public.sqlserver.programming       From: esquel@sommarskog.se              Gene Wirchenko (genew@ocis.net) writes:       > Drill down to Banking's Accounts table, right-click, and select       > Edit Top 200 Rows. Move to "Main Account" in the ACName column,       > replace it with "Main", and press down-arrow. The change should be       > accepted.       >       > Drill down to Banking's Subaccounts table, right-click, and       > select Edit Top 200 Rows. Move to "Pocket S/A" in the SAName column,       > replace it with "Pocket", and press down-arrow. BOOM! WHY?              It seems that you have already resolved the problem, so I am not       digging into it. But a comment on the script:              > create table Subaccounts       > (       > SAUK nvarchar(4) unique, -- arbitrary length       > SAOrd int,       > SAName nvarchar(40), -- arbitrary length       > SAInACUK nvarchar(4), -- arbitrary length       > foreign key (SAInACUK) references Accounts(ACUK)       > )                     I recommend that you always include an explicit NULL/NOT NULL definition.              --       Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se              Links for SQL Server Books Online:       SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx       SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca