Viewing 15 posts - 166 through 180 (of 717 total)
As a note there are a couple problems in your sample query:
* The aliases don't match "fr" vs. "uf"
* You have the logic backwards from what you title says "LEFT...
March 24, 2011 at 4:11 pm
No you can't break a single statement up with IFs.
You can do something like this, but I'm not sure it is optimal:
DECLARE @Flagged bit
SELECT
a.[ColumnA]
, a.[ColumnB]
FROM...
March 24, 2011 at 4:09 pm
Depending on your needs you might be better off going with a VARBINARY(MAX) field stored via FILESTREAM on a drive with 4 KB clusters so that you can turn the...
March 24, 2011 at 1:33 pm
First Unicode compression was added in SQL Server 2008 R2, so if you don't have R2 then you can't compress any NCHAR or NVARCHAR columns. Second, NVARCHAR(MAX) is never compressed...
March 24, 2011 at 1:25 pm
Jeff Moden (3/24/2011)
March 24, 2011 at 10:16 am
Can the third party backup tool be configured to make the backup in "copy only" mode? (That should prevent the LSN from being changed and breaking the backup chain.)
March 23, 2011 at 11:51 pm
That is an interesting use of the start position, but it looks to me like either the documentation in BOL is wrong, or the behavior is a bug. BOL says:...
March 23, 2011 at 11:34 pm
If you do have to do this in SQL Server you won't be able to do it in a view, as you can't dynamically change the columns a view returns....
March 23, 2011 at 11:22 pm
I'm surprised nobody has mentioned the most important thing. You need to identify the cause of the corruption. It not only corrupted your database, but your backup as well, and...
March 23, 2011 at 10:41 pm
John Roy Ellis (3/23/2011)
SQL 2008 Standard Runtime. I don't know how to slip-stream. So, the answer is no on the service packs.
Slipstreaming can not only prevent setup/upgrade problems...
March 23, 2011 at 10:00 am
Perry Whittle (3/9/2011)
JKG (3/8/2011)
I found this really helpful: http://www.mssqltips.com/tip.asp?tip=1687That guide's good, but mine's better 😉
Can you post your guide as an attachment so that we can all look at/use it?
March 23, 2011 at 1:51 am
For starters it helps if you provide DDL. For better, quicker answers on T-SQL questions, click on the following: http://www.sqlservercentral.com/articles/Best+Practices/61537/
But I think this should work for you: (There are multiple...
March 23, 2011 at 1:38 am
I assume because the staging tables can change over time, and they don't want to have to update and maintain the reset procedure. (Or they want to use the same...
March 23, 2011 at 1:27 am
Your welcome and thanks for letting us know it work for you.
March 23, 2011 at 1:24 am
Viewing 15 posts - 166 through 180 (of 717 total)