Viewing 15 posts - 25,591 through 25,605 (of 59,099 total)
sqlserver12345 (10/20/2013)
I do not want to use reverse function.please check the code I posted and correct what wrong I did.thanks
I'm curious... please explain why you don't want to use "REVERSE".
--Jeff Moden
Change is inevitable... Change for the better is not.
October 20, 2013 at 11:43 am
jonysuise (10/20/2013)
To delete a large number of rows switch the recovery model of your database (in your development environment) to bulk-log, run...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 20, 2013 at 11:34 am
homebrew01 (10/20/2013)
We were allowed to store CC numbers, but had to have various safeguards in place to be PCI compliant.
When you say you "were allowed to store CC numbers", do...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 20, 2013 at 10:53 am
ken def (10/19/2013)
I need to clean up a database. Main reason: datafiles have grossly disparate sizes. I'd like to export entire database (or some other meaningful method), resize...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 19, 2013 at 10:55 pm
I don't use SSIS, so no help there. I just thought I'd mention that this would be incredibly easy and simple to do with a little Dynamic SQL.
--Jeff Moden
Change is inevitable... Change for the better is not.
October 19, 2013 at 10:47 pm
To help us help you, rather than posting a picture of the data, please see the first link under "Helpful Links" in my signature line below and post your data...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 19, 2013 at 10:41 pm
- Win (10/11/2013)
Thanks for your replies...I will consider all of the posts and replies..
I can only hope that's true.
Tell your company that it's no longer lawful to embed SSN's in...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 19, 2013 at 10:25 pm
born2achieve (10/19/2013)
http://sqlfiddle.com. Somethign wrong with the declaration. could you please...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 19, 2013 at 10:22 pm
born2achieve (10/19/2013)
SELECT @fromYear='1913-01-01', @toYear='1998-01-01'
I don't want...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 19, 2013 at 10:18 pm
If the audit strings won't ever be longer than 8K, here's one way. It's quite generic so it won't necessarily be the fastest method but will still perform quite...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 19, 2013 at 9:35 pm
AmarettoSlim (10/19/2013)
DECLARE @fromYear DATETIME, @toYear DATETIME
SELECT @fromYear='1913-01-01', @toYear='1998-01-01'
...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 19, 2013 at 5:35 pm
It should handle foreign key constraints okay since the Truncate does not check them but I make no promises !
You can't truncate a table that has foreign keys...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 19, 2013 at 5:23 pm
Sean Lange (10/18/2013)
Jeff Moden (10/17/2013)
mister.magoo (10/17/2013)
...Time Of Day is not something you can average...
Gosh... I have to disagree with that statement that you and Sean made. What if the...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 19, 2013 at 5:12 pm
jonysuise (10/19/2013)
Jeff Moden (10/18/2013)
jonysuise (10/18/2013)
Hi asranantha, 😀I would use COALESCE AND CASE, because it's SQL standard.
I would use just ISNULL AND NULLIF (like Sean did) because you don't have...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 19, 2013 at 5:03 pm
jonysuise (10/18/2013)
Hi asranantha, 😀I would use COALESCE AND CASE, because it's SQL standard.
I would use just ISNULL AND NULLIF (like Sean did) because you don't have unexpected datatype precedence...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 18, 2013 at 3:56 pm
Viewing 15 posts - 25,591 through 25,605 (of 59,099 total)