Viewing 15 posts - 856 through 870 (of 2,647 total)
Sean is assuming that these constraints are defined as such. If they are not, it just takes a lot of testing... One of my favorite things to do with an...
May 23, 2012 at 3:24 pm
SQL Kiwi (5/23/2012)
SQLKnowItAll (5/23/2012)
Also note that a unique column can contain 1 null...Unless the unique index is filtered to exclude NULLs 😀
Come on... That's like saying a column can accept...
May 23, 2012 at 3:21 pm
Looks like if the parameter is omitted the sp still runs and assumes an empty table. I would have the set pass a row with some indicators to detect...
May 23, 2012 at 3:19 pm
I have not worked with table valued parameters, but it seems easy enough to test by passing a null to the parameter or an empty set and see what happens.
May 23, 2012 at 3:12 pm
Also note that a unique column can contain 1 null:
USE test;
GO
CREATE TABLE pktest (id int primary key clustered, somestuff varchar(250) unique);
GO
INSERT INTO pktest (id, somestuff)
VALUES(NULL, '1 null is not okay...
May 23, 2012 at 2:39 pm
Was this backup the first one created by your maintenance plan? It is possible that compression is default on your server and this was created as a compressed backup whereas...
May 23, 2012 at 2:05 pm
Yes, by altering the partition function and splitting the range. http://msdn.microsoft.com/en-us/library/ms186307.aspx
May 23, 2012 at 1:52 pm
DiverKas (5/23/2012)
A clustered index should really be considered mandatory, and then supporting indexes as necessary by the...
May 23, 2012 at 1:10 pm
drew.georgopulos (5/23/2012)
My feeling is that GSquared's suggestion hits the nail...
May 23, 2012 at 10:53 am
I believe that partition elimination does not guarantee any performance enhancement. Sure, it "might," but it might not. What if the other partitions are empty? What if the amount...
May 23, 2012 at 10:46 am
Hmm... My guess, at this point, is that it has something to do with your view definition. Can you post DDL for the view and any tables referenced within...
May 23, 2012 at 10:35 am
In this case, you would have multiple files. Personally, I would then schedule another job or within the same job write code to delete old ones .
May 23, 2012 at 10:32 am
drew.georgopulos (5/23/2012)
How do you unambiguoulsy define your requirements, with language or diagrams?Are your DBAS masters of your business' business rules?
In my previous company, the DBA's were also the SQL developers...
May 23, 2012 at 10:09 am
Do something like this:
DECLARE @diskPath VARCHAR(150)
SET @diskPath = 'C:\TransactionLog\Production_Log'+ CAST(YEAR(GETDATE()) AS CHAR(4)) + CAST(MONTH(GETDATE()) AS VARCHAR(2)) + CAST(DAY(GETDATE()) AS VARCHAR(2)) + '.trn'
--PRINT @diskPath
BACKUP LOG production
TO DISK = @diskPath
WITH RETAINDAYS=1,
DESCRIPTION =...
May 23, 2012 at 9:27 am
andersg98 (5/23/2012)
...
May 23, 2012 at 8:55 am
Viewing 15 posts - 856 through 870 (of 2,647 total)