Viewing 15 posts - 316 through 330 (of 369 total)
I had the same thought when I upgraded to SQL Server 2005.
I have a TVF to return just the "key" data in my hierarchical tree structure. It uses the...
January 15, 2008 at 8:37 am
Jeff Moden (1/8/2008)
JohnG (1/8/2008)
January 9, 2008 at 7:21 am
Tony Mungor (1/8/2008)
January 9, 2008 at 6:56 am
You'll also love the fact that "INT" and all the Numeric data types take up the same number of storage bytes no matter how big or small you define them...
January 8, 2008 at 8:37 am
It is REALLY REALLY unusual to find a TRUE EXPERT at both systems when each are as complex and feature-packed as SQL Server and Oracle.
Generally true. You pick your...
January 8, 2008 at 8:31 am
SQL Server does not have case sensitive names but will still name the object with any case used in the Create statement which is great for documentation and readability purposes
The...
January 7, 2008 at 9:30 am
Steve Jones - Editor (1/7/2008)
If so, then does it matter...
January 7, 2008 at 9:21 am
OK, now we're onto a religious debate.
Having worked since 1984 with relational databases (see bio) -- initially with IBM's DB2 when it first came out (early 1980s) then working with...
January 7, 2008 at 7:55 am
My 2-cents on this is that it is probably some unique "quirk" in SQL Server (version unspecified). What version? 7, 2000, 2005, 2008?
I've seen stuff like this before (in...
December 27, 2007 at 11:13 am
... and be limited to 4k bytes...
Jeff,
In SQL Server 2005, sp_executesql is NOT limited to 4K (NVARCHAR(4000)) characters. You can use NVARCHAR(MAX).
December 27, 2007 at 8:24 am
The other "unique" constraints are often called "Alternate Keys" (AK in the IDEF1X data modeling notation).
Consider the following simple example:
Countries, per the ISO 3166 specification can be identified by:
- Name...
December 27, 2007 at 7:46 am
Always select just the columns that you need.
I've seen more code/applications break due to SELECT * vs. SELECT column1, column2, etc.
The tables in application systems are never permanant. Changes...
December 27, 2007 at 7:32 am
I agree with Nebojsa.
Use a return (OUTPUT) parameter as it is a much cleaner solution. You're calling a procedure and not a function. In coding, procedures are not...
December 27, 2007 at 7:09 am
Use the built-in stored procedure sp_executesql vs. just plain EXECUTE. Then you can pass your variable as a parameter without having to cast it as a string.
Additional benefits:
- reusable...
December 27, 2007 at 6:52 am
Rather than casting/converting all of the WHERE clause values into the dynamic SQL query string you should be using the system stored procedure sp_executesql vs. just plain EXECUTE. The...
December 21, 2007 at 8:01 am
Viewing 15 posts - 316 through 330 (of 369 total)