Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.databases.ms-sqlserver > #184
| From | Erland Sommarskog <esquel@sommarskog.se> |
|---|---|
| Newsgroups | comp.databases.ms-sqlserver, microsoft.public.sqlserver.programming |
| Subject | Re: SSMS 2008: Confusing/Incorrect Error Message Take 2 |
| Date | 2011-04-15 23:33 +0200 |
| Organization | Erland Sommarskog |
| Message-ID | <Xns9EC8EFBB71A9FYazorman@127.0.0.1> (permalink) |
| References | <emseq6t05kacde727krpm75une3e3u42ar@4ax.com> |
Cross-posted to 2 groups.
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
Back to comp.databases.ms-sqlserver | Previous | Next — Previous in thread | Next in thread | Find similar
SSMS 2008: Confusing/Incorrect Error Message Take 2 Gene Wirchenko <genew@ocis.net> - 2011-04-14 15:29 -0700
Re: SSMS 2008: Confusing/Incorrect Error Message Take 2 Gene Wirchenko <genew@ocis.net> - 2011-04-15 11:13 -0700
Re: SSMS 2008: Confusing/Incorrect Error Message Take 2 Erland Sommarskog <esquel@sommarskog.se> - 2011-04-15 23:33 +0200
Re: SSMS 2008: Confusing/Incorrect Error Message Take 2 Gene Wirchenko <genew@ocis.net> - 2011-04-16 21:18 -0700
csiph-web