Viewing 15 posts - 2,551 through 2,565 (of 3,008 total)
This works with 7.0, 2000, and 2005
if object_id('tempdb..#tables','U') is not null begin drop table #tables end
go
create table #tables ( TABLES_FULL sysname not null primary key clustered )
go
declare @sqlnvarchar(4000)
set @sql =
'use...
January 15, 2008 at 7:54 am
Any one have a way to read the following?
1. 800 BPI 9 track reel-to-reel tapes formatted to hold punch card images.
2. 8 inch floppy disks formatted for a Honeywell DPS-6...
January 14, 2008 at 4:09 pm
denimblue (1/14/2008)
from stutable1
(select '1/2/90' as dte UNION ALL
select '11/1/91' as dte UNION ALL
select '1/02/05' as dte UNION ALL
select '1/02/95' as dte UNION ALL
select '10/11/94' as dte UNION...
January 14, 2008 at 3:54 pm
Scott Clark (1/14/2008)
January 14, 2008 at 3:42 pm
Scott Clark (1/14/2008)
In a multiple data file per filegroup structure how do you keep indexes healthy as you can't see how fragmented each data file is within the file group...
January 14, 2008 at 3:31 pm
If the database was recovered, you have to do a restore.
January 14, 2008 at 3:24 pm
denimblue (1/14/2008)
I didn't try it, because the dates given were not real. I have many rows of different data in various formats. I would like them all...
January 14, 2008 at 3:20 pm
I normally just create one filegroup called DATA and make it the default filegroup. Then I create one data file for that filegroup on each array, assuming that they...
January 14, 2008 at 3:09 pm
I don’t see a good reason to do what you are planning.
The problem with having one filegroup for each array is they you do not know how much space each...
January 14, 2008 at 2:41 pm
Greg Snidow (1/14/2008)
You could also try something like...SELECT YourDateCol
WHERE DATENAME(m,YourDateCol) = 'February', or what ever month you want.
Greg
That is not a good way to do a date range query.
1....
January 14, 2008 at 2:07 pm
denimblue (1/14/2008)
How can an update work for changing just the two digit year to four without changing the month or day?
When you tried the posted code, did it work correctly?
January 14, 2008 at 1:45 pm
It is hard to give you an answer without knowing the reason you are planning to do this.
So what is the reason?
January 14, 2008 at 1:43 pm
If would be easier to help you with your query if you posted the code for it.
January 14, 2008 at 12:15 pm
The LIKE operator is meant for use with character data, not numbers. Also, float is a very poor choice to use as an identifier.
This would be the best way...
January 14, 2008 at 11:52 am
Try this code:
declare @handle1 binary(20)
declare @handle2 binary(20)
--select * from sysprocesses
declare @handle1 binary(20)
declare @handle2 binary(20)
selecttop 1
@handle1 = a.sql_handle,
@handle2 = b.sql_handle
from
master..sysprocesses a
join
master..sysprocesses b
on a.blocked = b.spid and a.spid <> b.spid
where
a.blocked <> 0
if...
January 11, 2008 at 11:51 am
Viewing 15 posts - 2,551 through 2,565 (of 3,008 total)