Viewing 15 posts - 46,381 through 46,395 (of 49,571 total)
Are you familiar with the group by clause and the aggregation functions in a sql statement?
The aggregations (in this case SUM) get the columns you're trying to aggregate as a...
May 27, 2008 at 1:22 pm
The inside SQL Server 2000 book and the Inside SQL Server 2005 series are excellent. Kalen Delaney, Itzik Ben-Gan and others
May 27, 2008 at 11:28 am
May 27, 2008 at 11:22 am
A primary key is the row's unique 'identifier'. A clustered index defines the physical order of the data. The are unrelated.
By default, when you create a primary key, it's enforced...
May 27, 2008 at 8:05 am
Try building up your strings and placing them in variables then passing those variables to sp_executesql. I seem to recall that concatenating bits of string in the call to a...
May 27, 2008 at 6:46 am
If I may suggest - remove the extract from a wrox book as it is probably (at best) borderline copyright infringement - posting copyrighted works on a public forum.
May 27, 2008 at 6:40 am
Jeff Moden (5/27/2008)
Must be the language barrier, huh?
I would hope so. Though I have a feeling some people think we work for SSC and get paid to answer...
May 27, 2008 at 6:18 am
Check the remote server. You may very well find an access violation/stack dump.
May 27, 2008 at 6:01 am
niranjankumar_k (5/27/2008)
do u say is it correct way to create unique index for all select list column ????
No. I said that was a solution to the small query you...
May 27, 2008 at 5:57 am
This should work.
SELECT original_login(), local_net_address, text
FROM sys.dm_exec_requests er
INNER JOIN sys.dm_exec_connections ec on er.session_id = ec.session_id
CROSS APPLY sys.dm_exec_sql_text (er.sql_handle)
where er.session_id = @@SPID
May 27, 2008 at 5:36 am
The simple query you posted has a simple index fix, and Barry gave it to you on page 1 of this thread
http://www.sqlservercentral.com/Forums/FindPost506666.aspx
Other queries, especially if they have lots of columns...
May 27, 2008 at 5:32 am
If you could give us the table definitions, the index definitions and the query, it would really help.
Also, copy the entire execution plan to excel (not just the 1st column...
May 27, 2008 at 4:35 am
eddy (5/27/2008)
if i then also take a full backup using sqlserver on a certain point will the log chain not be broken eg, possible restore with red gates sqlbackup.?
A...
May 27, 2008 at 3:28 am
Viewing 15 posts - 46,381 through 46,395 (of 49,571 total)