Viewing 15 posts - 7,696 through 7,710 (of 9,641 total)
You can replace the CASE statements with the NULLIF() function. You would do:
NullIF(@variable, '')
August 28, 2008 at 10:59 am
There are a lot of articles and blog posts out there about this topic. My gut is telling me that this database was not originally in SIMPLE mode and...
August 28, 2008 at 8:46 am
If you have the commands in separate steps the second step should not start until the first step completes. Unless there is a bug because of multiple processors...
August 28, 2008 at 8:36 am
The SIMPLE recovery model does the truncate log on checkpoint. Truncate Log on Checkpoint was removed in 2000 and replaced by the SIMPLE recovery model. So you would...
August 28, 2008 at 8:32 am
If you look at the execution plan you can see that in the query using ORDER BY 1 the SORT takes place AFTER the Compute Scalar operation, which I assume...
August 28, 2008 at 7:49 am
There is no way in SQL Server to enforce that a non-null value is passed to parameter. You would need to verify the values within the stored procedure or...
August 28, 2008 at 7:39 am
Here's one way to do it:
[font="Courier New"]IF EXISTS(SELECT * FROM dbo.orders WHERE order_id = @order_id)
BEGIN
INSERT INTO DuplicateOrders
SELECT
VALUES
END
ELSE
BEGIN
IF EXISTS(SELECT * FROM dbo.representatives WHERE representative_id...
August 28, 2008 at 7:35 am
nkm has the right idea. The other thing you need to consider is that you have a "bad" value in the text file. Something like 20080631, as there...
August 28, 2008 at 7:28 am
Your first point is valid and your second point is valid, but a bit nit-picky as the second ";" does no harm and because most SQL Server developers are not...
August 28, 2008 at 7:26 am
You should be able to as long as the smtp server will allow anonymous connections.
August 28, 2008 at 7:04 am
Check out this article, http://www.sqlservercentral.com/articles/TSQL/62867/. It contains a great method for parsing a string in the Stepping through Characters section about halfway down.
August 28, 2008 at 6:59 am
I'm assuming you mean my rationale for lower case with "_" (I have to hit shift for the "_").
As I said since I use a case insensitive collation...
August 28, 2008 at 6:54 am
You should definitely backup your system database (master, model, msdb).
August 28, 2008 at 6:46 am
The closest thing you will get is to not use spaces or reserved words in table and column names. My personal opinion is to that table names should be...
August 28, 2008 at 6:43 am
Viewing 15 posts - 7,696 through 7,710 (of 9,641 total)