Viewing 15 posts - 226 through 240 (of 663 total)
sp_tableoption N'MyTable', 'text in row', 'ON'
August 27, 2003 at 1:12 am
hbkdba, Kalen Delaney's book "Inside Microsoft SQL Server 2000", chapter 8 may help a bit.
Lastly, although not ask for, you can rearrange your query to
insert...
August 27, 2003 at 12:44 am
I guess it will be a cursor, if one look at the stored procedure sp_MSforeachtable internals. Thanks for the reference!
August 26, 2003 at 5:35 am
Interesting idea.
Article at http://www.sqlmag.com/Articles/Index.cfm?ArticleID=38812 where Itzik Ben-Gan discuss idea of using array sets for performance gains.
Basically, use a varbinary(?) as an array to store 4 digit numbers. Still needs a...
August 26, 2003 at 5:13 am
In principal yes, if the quotes are handled correctly
Select count(*)
from sysobjects
where name like 's%'
go
Exec ('Select count(*)
from sysobjects
where name like...
August 26, 2003 at 4:59 am
-- List of all user tables, one at a time
Set NoCount On
Declare @id Int
Select @id=Min(Id)
From SysObjects
Where OBJECTPROPERTY(ID,'IsUserTable')=1
While @id Is Not Null
Begin
-- Do some more...
August 25, 2003 at 11:14 pm
No flames please but you are on the same box same database
Did happens once, many moons ago many servers and many dbs after lots of coffee, etc.
August 25, 2003 at 5:33 pm
Question, you have mentioned you are using asp pages, can you post the code how you get SQL to execute the sp. What I am getting at is any middle...
August 25, 2003 at 3:49 pm
Did you run
DBCC UPDATEUSAGE (DB_NAME(),'TableName') WITH COUNT_ROWS
EM is getting it from SysIndexes.
-- sp_MStablespace
SELECT @rows = convert(int, rowcnt)
FROM dbo.sysindexes
WHERE indid <...
August 25, 2003 at 2:29 pm
If possible, can you do a select from the same table with the same WHERE clause.
Maybe the parameter values passed in different to what you expect, example funny characters.
If a...
August 25, 2003 at 2:13 pm
Agree will also update statistics.
Plan B run a DBCC UPDATEUSAGE.
Can you post the QA code
August 25, 2003 at 1:51 pm
Bonus of virtual money
Frank, it seems this name change thing is taking you to new heights
Have to reconsider myself.
They realize they are not paying...
August 24, 2003 at 11:23 pm
Viewing 15 posts - 226 through 240 (of 663 total)