Viewing 15 posts - 2,566 through 2,580 (of 3,011 total)
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
Sometimes you just have to step up and tell them you have a better plan. Most bosses would be grateful to have someone that keeps them from making a...
January 11, 2008 at 9:39 am
Another approach is to setup a new server, move the databases to that, and rename the new server to the old server name when you are ready. By restoring the...
January 11, 2008 at 9:14 am
I would recommend just adding another array to the system, create an new partition and format it, and then create new database files in the existing filegroups on the new...
January 11, 2008 at 9:06 am
This is really a hardware question about your particular hardware, not a SQL Server question.
That said, I have my doubts about it, and I wouldn’t want to try it on...
January 11, 2008 at 8:52 am
You can create a stored procedure with EXECUTE AS 'user' that creates the view, and grant them execute permission on the stored procedure. It would not be necessary to...
January 11, 2008 at 8:35 am
As Jeff said, you can guess, but the amount of time it takes is also dependant on the other activity on the system, especially activity on the table you are...
January 11, 2008 at 8:24 am
select
Replaced = replace(Mycol,'%','')
from
(
Select MyCol = 'XXX%BB%KKK'union all
Select MyCol = '%zzzKKK'union all
Select MyCol = 'XXXDDDBBKKK'
) a
where
a.MyCol like '%^%%' escape '^'
Results:
Replaced
----------------------
XXXBBKKK
zzzKKK
(2 row(s) affected)
January 10, 2008 at 3:49 pm
Jeff Moden (1/10/2008)
Heh... you didn't read the OP's request... he wants the total disk size as well. xp_FixedDrives does not provide that information. 😉
Not to mention that the OP...
January 10, 2008 at 3:42 pm
In your SQL Statement, did you specify the database where the stored procedure is located?
If not, it will execute in the context to your default database, which is usually master.
January 10, 2008 at 3:38 pm
Did you set the database context correctly?
January 10, 2008 at 3:20 pm
Jim Russell (1/10/2008)
"Each new query window creates it's own connection or "session" to the database."
From a...
January 10, 2008 at 2:05 pm
Viewing 15 posts - 2,566 through 2,580 (of 3,011 total)