Viewing 15 posts - 811 through 825 (of 7,614 total)
Thank you for your reply.
I took a look at your spreadsheet and immediately found a pretty nasty issue... about 2/3rds of the rows have duplicated Ticket Numbers.
Scott...
June 20, 2022 at 3:10 pm
Ticket response - can you have more than one response per ticket?
If Yes then its PK should be TicketResponseID and the Ticket Number should be a FK to Ticket
No,...
June 20, 2022 at 4:35 am
You can. That's the two choices for a code column: use a view to encode/decode and/or use a separate lookup table. A lookup table is technically a better design, but...
June 20, 2022 at 4:29 am
June 20, 2022 at 4:27 am
In the distribution db, query view dbo.syssubscriptions
June 17, 2022 at 9:57 pm
Hi Scott. Thanks for your reply. I understood most of what you said. I'd kindly like to ask for some clarification on some parts. But here is what I...
June 17, 2022 at 8:18 pm
In general I agree, although in a truly normalized design the number of tables can get truly overwhelming (like SAP!).
Certain simple things do not need tables. Instead, you can use...
June 17, 2022 at 6:48 pm
There are two main approaches:
(1) use a generic number for all codes, typically generated automatically by an identity column
So, type code = 1 might be 'Issue', = 2 might be...
June 17, 2022 at 6:17 pm
Be careful! The problems with a generic lookup table, structured like this:
( table_id smallint NOT NULL, data_code varchar(50) NOT NULL, description varchar(1000) NULL )
are:
(1) the data_code (key) must be made...
June 17, 2022 at 4:57 pm
This link gives a few reasons for choosing shorter varchar lengths.
In terms of storage, CHAR(n) columns are always n characters long.
VARCHAR(n) columns are anything between 2 and (n...
June 17, 2022 at 2:06 pm
I use a start up procedure to send me an email whenever the SQL instance starts up. If someone failed it over, it will start up on another node. Of...
June 17, 2022 at 2:04 pm
A large table, even a very large table, should not necessarily be slow.
You need to review the clustering key(s) on those tables. The clustered index key selection is the single...
June 17, 2022 at 1:52 pm
Disk speeds on systems vary greatly. But you can always cancel the restore after (almost) 4 more hours. Cancelling a restore shouldn't take long at all, so you can wait...
June 16, 2022 at 6:46 pm
No. 236GB is not bad for a 2.4TB db. Once the log has been preformatted, you'll be back to the regular restore of the data.
The only way to make the...
June 16, 2022 at 5:31 pm
How large is the log file? SQL must restore the log file too, and, worse, it must preformat the entire log file before it restores to it. In essence, the...
June 16, 2022 at 5:09 pm
Viewing 15 posts - 811 through 825 (of 7,614 total)