This will list stored procedures, views, etc. that uses a given table column:
Credits for this tip to SQLServerCentral.
/Emil
You won't need them very often but it might be good to know that they're there. Here's an example of how to use a bitwise AND in a where clause:
In this example, 'applikationer' is a column containing several combined flags and we want to check the setting on the flag in the lowest bit.
The bitwise operators are:
Tired of your old Windows XP theme? Can't decide which color scheme is the least ugly (blue, olive green or silver)?
Then why not try the Zune Desktop Theme for Windows XP? It's designed to resemble the look of the Zune player, so I suppose its purpose is to inspire an interest in that device. Still, it looks quite good if you ask me:

If you're interested, download the theme here:
Have you ever had a need to create temporary database tables in a SQL Server session or procedure? Are you used to creating them by hand like this:
Depending on what you need the table for, then there might be an easier way. Have a look at this short session:
The first line creates a new temporary table based on the result set of a SELECT query, and stores the result set in the table. The query can be more complex than in the example, with JOINs, WHERE clauses etc. Incredibly useful when mangling and transforming data!
This is how to generate a new GUID in SQL Server T-SQL:
Result:
Getting a lot of garbage when compiling web deployment projects? Don't worry, there's an easy remedy!
This is how to do it (using Visual Studio):
Good luck deploying!
Update: The double asterisks means that the path matching is done recursively in the file system. For example, to exclude everything from the "obj\" folder we have to use "obj\**\*.*" since "obj\*.*" only matches files placed directly in the folder. Files in sub-folders would not be excluded if we used that pattern.
/Emil
[powered by WordPress.]
jour·nal n. A personal record of occurrences, experiences, and reflections kept on a regular basis; a diary.
35 queries. 0.453 seconds