Viewing 15 posts - 1,846 through 1,860 (of 2,647 total)
Thanks Paul! I'll take a closer look tomorrow morning.
January 25, 2012 at 9:10 pm
The problem is you are saying that that column gets updated frequently. So every time you update that value, it has to move the data. That may be to another...
January 25, 2012 at 3:45 pm
LGDBA (1/25/2012)
January 25, 2012 at 3:22 pm
I think the first question is "does having the primary key and clustered index on an identity column and the partitioned column of datetime eliminate page splits when new data...
January 25, 2012 at 3:17 pm
To the OP; the point is you cannot shrink a database smaller than the size of the data it contains. DBCC SHRINKFILE doesn't magically shrink the file while keeping all...
January 25, 2012 at 3:06 pm
The only rationale that I can come up with is that you had highlighted everything up to, but not including, the WHERE clause and then executed the query. When you...
January 25, 2012 at 1:25 pm
Can you please post the DDL for the PEOPLE_PROJECT table?
January 25, 2012 at 1:11 pm
I see... So the query was being run in SQL Server Management Studio, not Visual Studio? Was the query typed in or was it copied and pasted? Do you have...
January 25, 2012 at 12:59 pm
Laura_SqlNovice (1/25/2012)
The database is actually sql 2000 but using SQL 2008 R2 visual studio in the laptop.
So, you are running this query in which part of Visual Studio? Is this...
January 25, 2012 at 12:53 pm
fahey.jonathan (1/24/2012)
January 25, 2012 at 12:18 pm
Yes. Change this:
(CONVERT(char(10), a2.timestamp, 120) = @date)
to this:
timestamp > = @date AND timestamp < DATEADD(dd,1, @date)
EDIT: Grr... No matter what I do I cannot change the > to >...
January 25, 2012 at 10:43 am
Brandie Tarvin (1/25/2012)
Andrew Collins (1/25/2012)
it will initially be used as a development BI reporting accessing data from live, when dev is complete we will change to enterprise
Andrew,
I hate to break...
January 25, 2012 at 10:24 am
mbrady5 (1/25/2012)
Thank you all for your responses! I used the query that "sqlknowitall" reworked for me and it is much more efficient. Thanks to all that responded.
Great! However, don't discount...
January 25, 2012 at 10:08 am
Brandie Tarvin (1/25/2012)
mean that replication is an acceptable DRS.
For my own understanding... I assume you mean database DR, as I can see this being an acceptable solution for site outage;...
January 25, 2012 at 10:05 am
Try starting with this:
SELECT a1.timestamp, a1.Computer_Name, a1.Packet_Type, a1.User_Name, a1.Client_IP_Address,
CASE
WHEN a2.Packet_Type = 2 THEN 'Pass'
WHEN a2.Packet_Type = 3 THEN 'Fail'
END AS Status
FROM accounting_data_BU AS a1
INNER JOIN accounting_data AS a2
ON a1.timestamp =...
January 25, 2012 at 9:34 am
Viewing 15 posts - 1,846 through 1,860 (of 2,647 total)