Viewing 15 posts - 27,226 through 27,240 (of 59,101 total)
BWAAA-HAAA!!!! opc.three and a lot of others are going to hate me for this.
This is an easy task in T-SQL using xp_CmdShell, dynamic SQL to build "BCP out" commands...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 14, 2013 at 11:24 pm
clintonG (3/14/2013)
--Jeff Moden
Change is inevitable... Change for the better is not.
March 14, 2013 at 11:18 pm
foxxo (3/14/2013)
Sign up to the petition to keep it:
https://www.change.org/petitions/google-inc-please-do-not-shut-down-google-reader
I use it daily to keep track of several SQL blogs and it keeps RSS feeds synchronised between my phone, desktop, laptop,...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 14, 2013 at 10:44 pm
Dineshbabu (3/12/2013)
One easiest way to avoid this confusion is .. don't use SELECT * INTO.Always prefer CREATE TABLE..
Ah, not so fast there. SELECT/INTO is, depending on what your needs...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 14, 2013 at 10:36 pm
Alan.B (3/7/2013)
For tables you would do this:
EXEC sp_MSforeachtable'SELECT TOP 1 * FROM...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 14, 2013 at 10:17 pm
If you have bad code, partitioning won't help performance at all and it won't help much even if you have good code. If you have bad code, archiving data...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 14, 2013 at 10:13 pm
cljolly (3/14/2013)
--Jeff Moden
Change is inevitable... Change for the better is not.
March 14, 2013 at 9:23 pm
asita (3/14/2013)
so by adding like this does help any way data retrival,
also one more doubt is, in this table (where i want to add primary key),...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 14, 2013 at 9:12 pm
Here's a different take on it. The absence of aggregates makes it pretty easy to manipulate the output just about any way that you'd like and you'll never have...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 14, 2013 at 8:43 pm
Lowell (3/14/2013)
With TheCheapestAS
(
SELECT MIN(Price) as Cheapest, ProductID, SupplierID, BaseSupplierID
FROM test1
GROUP By ProductID, SupplierID, BaseSupplierID
) ,
BaseSupplierPrices AS
(
SELECT ...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 14, 2013 at 8:23 pm
ScottPletcher (3/14/2013)
SELECT
ProductID, BaseSupplierID,
MIN(CASE WHEN SupplierID <> BaseSupplierID THEN Price END) AS LowestPrice,
MIN(CASE WHEN...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 14, 2013 at 7:50 pm
Sorry... made a mistake on the requirements. Post withdrawn.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 14, 2013 at 7:43 pm
romah (3/14/2013)
When I checked the compatibility_level of our database, it's 80.
SELECT compatibility_level
FROM sys.databases WHERE...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 14, 2013 at 7:19 pm
allmhuran (3/14/2013)I'm not sure what happened to this forum, the level of courtesy and respect seems to have dropped off. Perhaps it has become too cliquey.
Nah... don't let a couple...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 14, 2013 at 6:45 pm
What is the domain of all possible numbers for the "Number column"?
--Jeff Moden
Change is inevitable... Change for the better is not.
March 14, 2013 at 6:24 pm
Viewing 15 posts - 27,226 through 27,240 (of 59,101 total)