Viewing 15 posts - 496 through 510 (of 1,315 total)
Deleting 5000 rows at a time, no matter how long it takes, is a vast improvement over failing and rolling back because the log completely fills the disk. The database is already...
May 8, 2007 at 5:00 pm
I also applaud Alain's detailed comments, but I have a quibble. This is a SQL 7, 2000 forum and the ALTER TABLE ... ALTER COLUMN IDENTITY() statement was introduced in SQL...
May 8, 2007 at 1:09 pm
This website is a good place to start. There are other websites, like http://www.sql-server-performance.com/
Microsoft has a lot of information and blogs. Books Online has a lot of good information. ...
May 6, 2007 at 8:18 am
I would rearrange your list and put DBCC DBREINDEX at the top. I generates a huge amount of log information, sometimes as large as the database itself. If you think...
May 4, 2007 at 10:26 am
You can look at the graphical execution plan in Query Analyzer (select SQL statement or statements and press Ctrl-L) to get some idea of what part of a query is the most...
May 2, 2007 at 9:45 am
Users and logins are two different things. Users are copied with the database when you restore or attach it to the QA server. Logins must be copied over by scripting,...
May 1, 2007 at 4:22 pm
The sp_MSforeachdb procedure does some bizarre things with global cursors, my guess would be there is some interaction between it and the sp_executesql or the backup commands. Rather than holding a...
April 27, 2007 at 9:34 am
You can get everything you need from the INFORMATION_SCHEMA views, if want to avoid using system tables that may be version-dependant.
SELECT k.*
FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE
April 27, 2007 at 8:28 am
If your tempdb log isn't alone on the disk, it's possible that something else ate all the free space without generating a message and you didn't realize it. Even if...
April 25, 2007 at 7:09 am
Maybe you missed this important aspect of SQL functions?
"User-defined functions cannot be used to perform actions that modify the database state."
There may be workarounds (I'm not talking), but you need...
April 24, 2007 at 7:10 am
If you are running .NET 2.0 and add the MultipleActiveResultSets=True attribute to the connection string, it should work. Your error message sounds like you were trying to re-open the open connection. ...
April 23, 2007 at 9:44 am
I have no problem getting SSIS packages to use config files from common folders. But SourceSafe doesn't maintain separate paths for each file in a project, if you bring the...
April 23, 2007 at 9:35 am
Assuming you opened a connection with the MARS=True attribute:
Using
cnn As New SqlConnection("Persist Security Info=False;Integrated Security=SSPI;server=xyz;database=abc;MultipleActiveResultSets=True")
April 23, 2007 at 9:00 am
The most significant disadvantage is that 32-bit SQL Server will not be able use as much memory. This may not be an issue if your server has 4GB or less...
April 23, 2007 at 8:37 am
A table exists in only one filegroup. The table and the clustered index are inseparable, so creating a clustered index on a different filegroup will move the entire table to...
April 20, 2007 at 9:27 am
Viewing 15 posts - 496 through 510 (of 1,315 total)