Cannot Kill Process stays in KILLED/ROLLBACK status
Hi I have killed one spid bu its still showing this KILLED/ROLLBACK statusSugest me to resolve this with out restating the server please.....[Foun a link here but it's not resolved my issue...
View ArticleCould not find database ID 8. Database may not be activated yet or may be in...
9:00 AMI have two SQL 2000 boxes.SQL job runs on the Box 1 (SP3)and uses a linked server to Box 2 (SP4).Yesterday the databases on Box 2 referenced in that jobwere backed up and restored.The job ran OK...
View ArticleSQL 2000 @@REMSERVER problem
I am having a problem on a SQL 2000 machine (Yes I know it is really old :-D) When using the @@REMSERVER on 4 of 5 servers it returns the machine value. When I do it on the 5th machine it sends back a...
View ArticleWaitresource - Find Exact Key
I am trying to interpret deadlock trace information. This is what I see in the waitresourcewaitresource=KEY: 9:72057594065256448 (f20077ea2259)Can someone help me decipher this? Thanks!
View ArticleError 15023: “User already exists in current database”
I've had to create a new test database using a restore of a live database. The people who will be doing the testing already exist as logins on this server but when I tried to give them access to the...
View Articlegetting 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 ArticleSQL DBA new trend
Hi all, I have a general question to askI'm a production DBA, Looking at the job market, I saw lots of jobs require SSIS exp, Is this a new trend that DBA need to know SSIS package development ?Please...
View ArticleEventID - 833
Hi,We have Sql server 2005. User databases are in one drive and system databases are in C:/ drive.We are gettting alerts about Event ID: 833 from both user databases and system databases?Is surely...
View ArticleI need to Copy/refresh the "data only" to Test from prod
I need to Copy/refresh the "data only" to Test from prod without making changes to users/permissions. Please advice on the best approach to follow through with carrying out this ask
View Articlebcp_init error
Would anyone know how to fix this error?Function: bcp_initSQLSTATE: HY000Native Error: 0Diagnostic: [Microsoft][ODBC SQL Server Driver]Unable to open BCP error-fileI checked the microsoft website and...
View Articledbcc opentran - SPID (server process ID): 74s
SPID (server process ID): 74sI did n't c this type of Id previously ,I cannot found this SPId in sysprocessesCan u pls help me ?Actually I checked with "dbcc opentran" , so that I found spId : 74 , so...
View Articleshrinkdatabase taking looooong time
I have a db that has one 58 gig data file. The server it was housed on finally ran out of disk space due to this app. I moved stuff off for several years to attempt to keep the app running. The end...
View ArticleFinding out Total Disk Space in TSQL
anyone know any workaround in TSQL who can give this result set?[b]Drive letter | Total Disk Space (MB) | Free Disk Space (MB)----------------------------------------------------------- C 150000 100000...
View ArticleCan I kill DBCC Shrinkfile???
Is it safe to kill DBCC Shrinkfile? The process has been running for 30 minutes on an 11GB database. I have no idea how much more time it will take to shrink the database and would like to kill it,...
View ArticleQuestion about disk space report
I ran disk usage report on a db and it shows that the total space reserved is lower than Data file space reserved.Exemple: Total space reserved: 1 gig Data Files Space Reserved: 2 gig Transaction log...
View ArticleLock timeout request period exceeded error while trying to execute stored...
Hi All,I am trying to execute stored procedure which populates data into the table. It was working fine for few days and not it just throws Lock timeout request period exceeded error 1222 every morning...
View ArticleMsforeachtable
Is there a way to insert the output from the sp_msforeachtable proc in to a table.the query i am trying to run is :sp_MSforeachtable 'sp_spaceused ''?'''I tried the different variations of the insert...
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 ArticleUse sp_MSforeachtable to gen COUNT(*) for each table in MyDBname
I'm trying to dynamically COUNT the # rows per table in a DB using sp_MSforeachtable. The following syntax executes DBCC CHECKTABLE for each table in my DB. HOW can I modify the following SQL to...
View ArticlePros/Cons between Default vs Named Instances
My situation is that our network admin has come up with a new, much more complex naming convention for our company's servers. They contain dashes and the names are sometimes quite long. I am flexable...
View Article