Viewing 15 posts - 1,696 through 1,710 (of 3,008 total)
KB (7/29/2009)
Hi,Which query executes faster in sql server 2005, if table has some 50k rows.
select count(id) from table --id being primary keyOR
select count(*) from table
how to check this?
Thanks,
KB
What is...
July 29, 2009 at 9:23 pm
This works OK for me.
select
datediff( m, CHARDATE, '20090630' ), *
from
dbo.ComputeScalarProblem
where
...
July 29, 2009 at 10:33 am
At a former job, I requested purchasing to find me a chair that was built to take a lot more abuse because I had managed to wear out 2 chairs...
July 29, 2009 at 9:37 am
You can use the ROBOCOPY command in a job to mirror the backup directory to another server.
ROBOCOPY is a command line tool available as part of the Windows Server 2003...
July 28, 2009 at 5:52 pm
It is possible to do a cursor loop with only a single fetch:
declare Cur_Cursor cursor local
for
select
MyData
from
...
July 28, 2009 at 8:15 am
Can you explain what you are trying to do? Are you trying to add leading zeros or remove leading zeros?
July 27, 2009 at 9:35 am
Just take the database offline before starting the restore:
use master
alter database MyDatabase set offline with rollback immediate
July 23, 2009 at 2:10 pm
Lynn Pettis (7/23/2009)
head_contusion (7/23/2009)
Second, when an issue is solved, how do I mark the issue as closed/solved?
You don't here on SSC. Many in this community believe that...
July 23, 2009 at 1:53 pm
Service_Tag like
'[0-9A-HJ-NP-Z][0-9A-HJ-NP-Z][0-9A-HJ-NP-Z][0-9A-HJ-NP-Z][0-9A-HJ-NP-Z][0-9A-HJ-NP-Z][0-9A-HJ-NP-Z]'
July 23, 2009 at 10:35 am
Run the script on the link below to see how much used and free space you have in each database file, and to see how much space is used by...
July 23, 2009 at 9:57 am
This is a farily simple method:
declare @files table (cmdout nvarchar(100) )
insert into @files ( cmdout )
-- Get filenames excluding directories
exec master.dbo.xp_cmdshell 'dir C:\ /b /a:-d'
select cmdout from @files where cmdout...
July 22, 2009 at 8:57 am
Lamprey13 (7/21/2009)
If you are looking for something better do a search for "sql fuzzy match" There are bunches of articles...
July 21, 2009 at 4:35 pm
What is the data type of the AMOUNT column?
Could it be a MONEY datatype that you are stripping the last 2 digits from to show with 2 decimal places?
July 20, 2009 at 5:24 pm
Do it this way to get the date in decending order within amount.
ORDER BY
AMOUNT DESC,
...
July 20, 2009 at 5:18 pm
Viewing 15 posts - 1,696 through 1,710 (of 3,008 total)