Viewing 15 posts - 151 through 165 (of 484 total)
This is an example of reading the registry
EXEC master.dbo.xp_regread N'HKEY_LOCAL_MACHINE', N'SOFTWARE\Microsoft\MSSQLServer\Setup', N'SQLDataRoot', @local_backup_Dir OUTPUT
Simon Sabin
Co-author of SQL Server 2000 XML Distilled
November 21, 2002 at 12:45 pm
You can use xp_regread to read the registry and BULK INSERT to import the delimited data.
Simon Sabin
Co-author of SQL Server 2000 XML Distilled
November 21, 2002 at 12:40 pm
You can use SET ANSI_NULLS OFF which will evaluate NULL = NULL as true.
You should also not that your query will not use any indexes, because it does not know...
November 21, 2002 at 12:39 pm
How is your data modifed i.e 10% inserts, 20% updates, 5% deletes?
How big are your tables, do you have fillfactors set?
Have you monitored for pagesplits, high values indicate you need...
November 21, 2002 at 12:34 pm
Not likely, what makes you think it is not correct.
Simon Sabin
Co-author of SQL Server 2000 XML Distilled
November 21, 2002 at 12:29 pm
An logon and logoff should only occur when the connection closes, I am suprised that you are finding this.
It is likely that after a while of no use the connection...
November 21, 2002 at 12:26 pm
Which country?
Simon Sabin
Co-author of SQL Server 2000 XML Distilled
November 21, 2002 at 12:24 pm
I don't know. Taking our jobs, and you can't even be bothered to come over here
Simon Sabin
Co-author of SQL Server 2000 XML Distilled
November 21, 2002 at 6:41 am
Use profiler to log logins and logouts. These can be logged to a table in your database.
Simon Sabin
Co-author of SQL Server 2000 XML Distilled
November 21, 2002 at 6:37 am
This is not dynamic sql so you do get caching. There is an issue where you have an SP and you pass it very different values for the same parameter....
November 21, 2002 at 3:44 am
Also be aware that col3 + 'x' will be NULL if col3 is NULL unlike in 6.5 where it would be 'x', you might want to include ISNULL(col3) + 'x'
Simon...
November 21, 2002 at 2:58 am
The simplest is to catch the reads, writes, cpu and duration from profiler.
If you added the correct indexes then these should all reduce. The smaller the numbers the better the...
November 21, 2002 at 2:56 am
I think you have it. Can't see any other reason why it would do it.
Simon Sabin
Co-author of SQL Server 2000 XML Distilled
November 20, 2002 at 3:02 pm
The one (dbcc reindex) actually reindexes the table, i.e physically moves the data around so that it is ordered correctly, a sort of de fragmenation.
Update stats does just that updates...
November 20, 2002 at 3:01 pm
Try reapplying the latest service pack.
Can you run
select * from ::fn_listextendedproperty(NULL, N'user', N'dbo', N'table', N'ByProductsData', NULL, NULL)
Simon Sabin
Co-author of SQL Server 2000 XML Distilled
November 20, 2002 at 2:44 pm
Viewing 15 posts - 151 through 165 (of 484 total)