Clustered index and random inserts
Hi All,I know, there were threads on this subject before, however I want to put my specific question here.I am (still) on SQL 2000.There is a table with around 20M records and growing. There is a...
View Articlesysdatabases - list all databases without sysadmin
Is there any way to have Master.dbo.sysdatabases return all databases on the instance without being a sysadmin? I've tried granting view any database but that doesn't work. It just returns master,...
View ArticleTest/Prod. Create Login With SID. Is it a good idea?
Hello everybody,I have 3 environments Prod/Test/Dev where I (and other database developers) periodically need to transfer databases from Prod to Test or from Test to Dev (using backup/restore)....
View ArticleBackup/Restore Schemas (through file groups)
I would like to be able to backup and restore a schema, my database will have amulti-tenant scenario where each schema will have the same objects like tables etc...and I would like to be able to...
View ArticleRecovering 1TB of unallocated space?
Please read the post well. I posted somewhere and most of the posters assumed that the 1TB table is there. It's not. Also, the size of the MDF is 1.75TB, the HDD has 1.83TB used and 65.8GB is free.So...
View ArticlePowershell to import csv file
Hello all,Running sql 2008 sp1New to PowerShell. Can someone please check the syntax and tell me if something doesn't look right.Trying to load a csv file into a tableThe csv file is comma delimited...
View ArticleFind the user name who is restoring or backup the Database?
How can we find the which user name is restoring/bakcup the datbase?--Ron.
View ArticleODBC connection
Hi,Client is installing Crystal Reports on his computer. He needs access to one of database on SQL Server 2008. What is required to establish connection from crystal reports odbc connection to sql...
View ArticleSQL Server Monitoring Script
Hi,I am looking for daily database server monitoring scripts. I want to run script from one server and generate Excel sheet that contains data for all other database servers:1. Disk space used/free2....
View ArticleSimple question on moving SQL2005 master database
Hi,I need to move the master database on an SQL2005 server from one location to another. I have read numerous articles/questions on this and...
View ArticleQuestion on database replication
SQL Version: sql server 2008 r2 SE OS: windows server 2008 R2 SEWe are implementing a new architecture for one our modules. There are 100 tables in the database and out of which 45 tables are using...
View Articlesp_send_dbmail won't take @query SQL 2005 64bit
I am trying to send query results via email. The command works fine without the @query parameter but gets the following error with it. No query works, I tried several as well as a select, all result in...
View ArticleWhat is the Impact of these type memory settings
I m seeing in of our server, The "Min server memory"has been setter to 6 GB, Max Memory 9 GB and the memory utilizing is 95%. The toatal server memory is 12GB.Is any thind bad by setting Min Server...
View ArticleHow to check the size of SQL Error Log
The task is to check if the SQL error log and SQL agent error log size reach x MB, then cycle the logs. This is done programmatically and automatically, not using SSMS or other manual methods.I know...
View ArticleIn Access 2007, Converting Access accdb to a database of SQL Server 2012...
Hi all,My Computer Team just installed a brand new "Microsoft SQL Server 2012 Express"/Microsoft SQL 2012 Management Studio (SSMS) in my "Windows 7" PC that is part of our "Windows" Computer System....
View ArticleHow to find current statement start time.
If a batch which consists of multiple statements is being executed I can find out the start time for the batch from exec_requests (SELECT start_time FROM sys.dm_exec_requests WHERE session_id = @SPID)...
View Article"EXEC sp_configure 'fill factor', 100" Does not take affect
The current fillfactor of the server is set to 95, I have been trying to change it back to default 100 but the sp_configure commands is not taken into affect. Below is the script I run and the result...
View Articlecombining DBs from multiple SQL servers
Hello,I need a suggestion for optimizing SQL infrastructure.Current situation:about 20 Applicaton servers with local SQL servers:SQL 2005 on Server 2003SQL 2008 on Server 2008Different level of SPs....
View ArticleTransactional Replication Issue
Hi , We are setting up a new Sql Server for our testing environment and migrated the data from Old Server to the New one by Attaching the .Mdf Files.The Old server was already having replication...
View ArticleHow remove defunct file in sql server 2005
Hi all,i want to remove defunct file from my database.well i make one of file offline with out backup.then i remove filegroup so my file becomes defunct.there is no data..even i dont want that file.i...
View Article