Viewing 15 posts - 1,636 through 1,650 (of 1,995 total)
is the login a member of builtin/administrators?
if the service is failed over on node 1 where your user login is a member of local admins, but not a member of...
May 12, 2006 at 7:47 am
depends on the table structure
but normally for the 1st 100
select top 100 * from mytable order by dateadded
then for the second 100
select top 100 * from mytable where...
May 12, 2006 at 7:42 am
I have to say that i think i agree with your developers.
this seems to be very open to interpretation, but i think that if you have table values that are...
May 12, 2006 at 7:35 am
which hotfixes?
i think 2162 was withdrawn for a few months and then replaced because it was faulty.
May 12, 2006 at 2:40 am
exactly right.
always always enforce referential integrity through the db. if your app fails because of DRI then its not a good app
mostly developers don't use foreign keys and constraints because...
May 5, 2006 at 5:36 am
yes you can
but it will usually end in someone crying
the sql server will also protect it from executing endlessley and will stop it at the nesting level set...
May 5, 2006 at 5:22 am
i just tested it as i've not seen these scripts before and have no problems at all - no x required.
are you using the revised version posted most recently?
other than...
May 3, 2006 at 3:40 am
select * from table1 where field1 like N'% %'
you could also do something like
select * from mytable where field1ltrim(rtrim(field1)
but this would be very bad against large tables
also
select * from...
May 3, 2006 at 3:31 am
create proc myproc @unit nvarchar(10)=NULL,@invdate datetime=NULL,@invno nvarchar(10)=NULL
as
declare @strsql nvarchar(1000)
set @strsql='select * from mytable where 1=1 '
if @unit is not null
begin
set @strsql=@strsql+' and unit='''+@unit+''''
end
if @invno is not null
begin
...
May 3, 2006 at 3:25 am
i do agree with the other guys here - set based is always best but sometimes you don't have a choice
the only way i can see you doing this is...
May 3, 2006 at 3:06 am
you might be able to find a lot of this information (and more) by downloading sqldiagnostic manager from idera.com
there's a 28 day free trial and it's about £600 ($1000) per...
May 3, 2006 at 2:12 am
use mydatabase
go
dbcc updateusage(mydatabase)
go
sp_msforeachtable @command1= 'sp_spaceused ''?'''
go
May 2, 2006 at 10:15 am
with the restore it could be one of a few things. more than likely it's the I/O speed when trying to create the files (how big is your database?)
or perhaps...
May 2, 2006 at 10:11 am
not sure this is exactly what you're looking for but how about
select amountid,count(*) from amount group by amountid where amountid>0
this should then have the same values in the resultset
select amountid,count(*)...
May 2, 2006 at 10:00 am
redgate and imceda both provide backup compression tools to do this
imceda's sql litespeed is particularly good, but they've been bought out by quest, so the prices have gone up
April 19, 2006 at 3:54 am
Viewing 15 posts - 1,636 through 1,650 (of 1,995 total)