I have been using the SQL Server Business Intelligence Development Studio to debug some stored procedures that I work with. It seems impossible to view the content of the temporary tables during debugging sessions. This fact limits the tool's usability severely for me :(
Why is it so difficult the get a confirmation of this limitation searching the internet??
Now I made the temporary tables permanent (removed the #) and manually drop them after each debugging session.
Showing posts with label SQL. Show all posts
Showing posts with label SQL. Show all posts
Wednesday, December 19, 2007
Monday, December 18, 2006
Limitation of foreign-key constraints in SQL Server 2005
I encountered a limitation to how you can set the on-delete and on-update constraints for foreign-keys in SQL Server 2005. I have a table with 5 foreign-keys, all targeting the same column. I wished to have on-delete and on-update "Cascade" for all of them, this however was not permitted. Only one of them could have the cascade property set, the others I left with "No action"
.
Thursday, December 14, 2006
Data will outlive programs
I got a small epiphany when reading an old entry by Chris Sells. It made me realize that the data in the database should be left as accessible as possible for future programs. The data will most likely outlive the program created to access it.
P.s.
Actually, the reason I ended up at Chris was because he had made available a nice tool to test regular expressions.
P.s.
Actually, the reason I ended up at Chris was because he had made available a nice tool to test regular expressions.
Thursday, March 02, 2006
SqlServer: indexes
Some points to remember about indexes in SqlServer 2000:
- Primary key is a clustered unique index, but can be changed to non-clustered.
- Clustered index: Data is physically sorted by the index. Important to keep the most selective column first in the index definition. Only one clustered index possible per table. If there is only one index on a table it should be clustered. Preferably the indexed column should contain a monotonically increasing value.
- Non-clustered index: Symbolic links. Useful for single row look-ups. Can be up to 250 non-clustered indexes on a given table.
- Select indexes based on perceived use of the table: what selects will be performed, what updates will be performed, etc.
Subscribe to:
Posts (Atom)