Viewing 15 posts - 1,201 through 1,215 (of 2,647 total)
A quick look by using SET STATISTICS IO ON may give you some information. A more in depth look would be looking at the Actual Execution Plan. Can you post...
April 5, 2012 at 6:43 pm
Jeff Moden (4/5/2012)
SQLKnowItAll (4/5/2012)
GilaMonster (4/5/2012)
April 5, 2012 at 5:18 pm
GilaMonster (4/5/2012)
April 5, 2012 at 3:13 pm
As Lowell mentioned... If they are ALL accessing the db through an application server, you will not be able to delineate it. The host is the application server, not the...
April 5, 2012 at 2:39 pm
sharky (4/5/2012)
the TOP 1 1 returns just the first record
No, SELECT TOP 1 1 will return 1 if there is at least 1 record. I think that is...
April 5, 2012 at 2:17 pm
You sure can. Best to put it in a stored proc and call the proc from Excel or SSRS. Also, I just did a blog post on window functions (rank(),...
April 5, 2012 at 1:46 pm
tobinare (4/5/2012)
USE Master
GO
CREATE DATABASE JoinTest;
GO
USE JoinTest;
GO
CREATE TABLE Customers
(
CustomerName varchar(50),
Addr varchar(50),
City varchar(50)
);
CREATE TABLE Products
(
ProductName varchar(50),
Descr varchar(50),
Price money
);
CREATE TABLE Sales
(
SaleDate datetime,
ProductName varchar(50),
CustomerName varchar(50),
Quantity int
);
GO
INSERT INTO Customers VALUES ('Ken', '123...
April 5, 2012 at 12:37 pm
Best to tell us what changed between the 2 servers:
CPU change?
Memory change?
SQL Version change?
Windows Version change?
IO Subsystem change?
Activity higher?
More databases?
Server settings change?
SQL Server settings change?
Network change?
Then... What changed between the...
April 5, 2012 at 11:59 am
You would want a CTE to sum up quantuty and price when grouped by customer, product. Then sum up the price grouped by customer.
April 5, 2012 at 10:31 am
anthony.green (4/5/2012)
From BOL
file_name
Is an expression that contains the name of the file associated with the...
April 5, 2012 at 7:40 am
sqlnaive (4/5/2012)
USE DB1
SELECT * FROM DB1.dbo.Table1
and
USE DB2
SELECT * FROM DB1.dbo.Table1
gives same result [as they both refer to smae table in DB1]. Same way the...
April 5, 2012 at 7:28 am
sqlnaive (4/5/2012)
SQLKnowItAll (4/4/2012)
April 5, 2012 at 5:22 am
Check this out for info on mirroring: http://www.sqlmag.com/projectplans/migratingtosqlserver2008r2/detail/tabid/4568/catpath/sql-server/topic/Database-Mirroring-in-SQL-Server-2008-and-SQL-Server-2008-R2. Lynn summed it up though on what you can do in Standard for mirroring.
April 4, 2012 at 2:05 pm
allen.mceuin (4/4/2012)
SQLKnowItAll (4/4/2012)
SQLKnowItAll (4/4/2012)
April 4, 2012 at 1:52 pm
Viewing 15 posts - 1,201 through 1,215 (of 2,647 total)