getting error "The system cannot find the path specified." using xp_cmdshell
Hi,I am getting error "The system cannot find the path specified." using xp_cmdshell, tyring to copy file from one folder to another. Following is code i execute:DECLARE @fn char(6), @cmd...
View ArticleJob failed
MSSQL2k job that runs ActiveX Script to cleanup / delete backup files older than 7 days. Had been running without any issue and seems like a hiccup last night. Job failed with following:Executed as...
View ArticleLoading Trace Files To A Table
Hello,We run profiler traces for auditing logins and i am using server side tracing and everything works great.I just want to automate loading of trace files into a table without stopping trace..i know...
View ArticleQuery is consuming hoge transaction log
The following script is takeing hrs to complete and consuming 100GB of Transaction log in Dev environment,DECLARE @THIS_CALENDAR_YR_START_DT INT SET @THIS_CALENDAR_YR_START_DT = (SELECT...
View Articlexp_sendmail not sending @message text
xp_sendmail will send out the email with correct to address, correct subject line but the message text is blank. This has been working.We were just migrated to Exchange 2010. We have ran xp_stopmail,...
View ArticleAnyway to write VB/C#/C++ scripts in SQL 2000? Need financial calculations...
I'm working on a SQL 2000 database server (I know .. but it is what it is unfortunately), and I need some way to run financial calculations like NPV, IRR, etc. In SQL 2005 and 2008 I use a custom CLR...
View ArticleSQL Year and Week numbers
Hi does anyone know how to create a query in SQL 2000 or 2005 to get the year and week number together for a date i.e. the 01/01/2008 would be 200801. I know how to get them seperately using datepart...
View ArticleDifferential backup without full backup
I don't remember when was last time we had a full backup. We turned off the full backup after we decided to use a third party backup program. I found out this morning that the differential back up has...
View ArticleTable Refresh
MSSQL 2000I'm not sure where to post this question; so please forgive me if I have post this in the wrong place.I am trying to figure out what is the best practice for table(s) refresh from one server...
View Articlehow much time re-indexing of non-clustered index would take in sql server...
hi one of our client is still using sql server 2000 . server has 4Gb ram and is using sql server 2000 with sp4.yesturday the had problem with one of their tables anf for that i had to reindex their...
View ArticleShrinking the model db logfile in sql server 2000
i have a long-neglected sql server 2000 instance and the logfile for the model database has grow out of control.the model db was in full recovery mode for who knows how long with no transaction log...
View ArticleChanges to subscriber db after publishing
Hi,Have published a db and several subscription have been made. Now I want to alter a table of all subscriber along with publishing database. But I dont want to republish and resubscribe as it takes...
View ArticleFull tempdb Log
My tempdb log file fills up where the Log Free Space is 4%, Log Used is 95%. If I restart the server it will clear out tempdb, thats not an option since it has to be up 24/7 (mostly). Is my only option...
View ArticleError log reports database log is truncated right before differential backup
I've got a SQL Server 2000 system that has many databases in Full recovery with full, diff, and tlog backups. I'm seeing an unusual error that says "Database log truncated". It only shows as an error...
View ArticleEmail notification problem in sql server 2000
I am getting error below error:Error :22022 Sql server Agent error: The sql server agent mail is not running; Check the mail profile and/or the sql server agent service startup account sql server agent...
View ArticleDTS Package
TestServer: SQL Server 2000ProdServer: SQL Server 2000Client on my machine: Sql Server Management Studio 2008.[b]Goal[/b]: Move DTS Package from Test to Prod.[u]Here's what I did[/u] per Step 5 of...
View ArticleBCP produces garbled output
Hello,I have created a stored procedure that produces output for specific tables in our database. The output for one of the files is garbled. I have to have it fixed.The strategy I'm employing is to...
View ArticleSQL SERVER services get stopped
Hi, Everyday we notice SQL SERVER services get stopped and we have to manually then start both services and agent.We have checked event logs but didn't get any clue.Is there any way to find out who...
View ArticleSleeping Processes
I have a question about "sleeping" processes. We have an application that access our SQL Server. I just took a look at the Current Activity and I saw 18 processes from the same person that all had a...
View Article