Quantcast
Channel: SQLServerCentral » SQL Server 2005 » Administering » Latest topics
Viewing all 2335 articles
Browse latest View live

Stored Procedures called during a Job Run

$
0
0
I would like to kown how to determine which stored procedures run during a specific SQL server Job run.One major constraint is that I have extremely low bandwidth and very high DISK IO on the production box already so I am not allowed to run SQL Profiler either on my work station or on the actual server.I have information on jobs, schedules and procedures from the sysjobs, sysschedules and procedures system views respectively. I would like to know how do I relate them together.Thank you,In anticipation.Rohit

SSPI Handshake Error

$
0
0
Hi All,I am getting the below error regarding sspi error can you please someone advice on this.SSPI handshake failed with error code 0x80090311, state 14 while establishing a connection with integrated security; the connection has been closed. Reason: AcceptSecurityContext failed. The Windows error code indicates the cause of failure. [CLIENT: 10.46.0.83].Thanks,Santosh

OLE DB provider "SQLNCLI10" for linked server "XXX" returned message "The partner transaction manager has disabled its support for remote/network transactions.".

$
0
0
Hi,I have two SQL Servers Server A and Server B. ServerA has SQL Server 2008 and ServerB has SQL Server 2005.I need to fetch data from server B to server A and insert it into a table on server A.For this purpose, I have created a stored proc on server B and for calling that SP I have added server B as linked server on server A.When I execute this SP from server A using server B, it returns data without any issue.However when I try to insert this data to a local table on server A, I am getting following error:OLE DB provider "SQLNCLI10" for linked server "ServerB" returned message "The partner transaction manager has disabled its support for remote/network transactions.".Msg 7391, Level 16, State 2, Line 12The operation could not be performed because OLE DB provider "SQLNCLI10" for linked server "ServerB" was unable to begin a distributed transaction.Note that I have not started any transaction in both the calling and called procs. I am not getting why it is trying to begin a distributed transaction. And how to resolve this issue.I am using linked server for the first time. Please help.Thanks,Garima

The semaphore timeout period has expired

$
0
0
Hi to all,Just moving over to a new firm I was asked to find out the reason why most of the clustered servers where prompting "SEMAPHORE TIMEOUT" every now and than so I digged in.This message occurs when using all kinds of I/O to the subsystem (which resides on the SAN).The exact error message is;[b]Executed as user: . TCP Provider: The semaphore timeout period has expired. [SQLSTATE 08S01] (Error 121) Communication link failure [SQLSTATE 08S01] (Error 121). The step failed.[/b]Hardly any info is to be found in the Internet so I need your help guys!!As far as I found out this is an OS error which is written in the SQL server 2005 logs just before losing contact with one of the parts of the subsystems. This can be Hardware response timeout or an Autodetect setting on cluster network interface card. Others say this could be a Memory issue on windows 2003 SP1 cluster node with sql 2005 Ent. 64 bits SP1 or this is a bug/failure to properly release the cached memory. . . . .Who delt with this issue before and /or can help me out on this?Regards,GKramerThe Netherlands

Default Index Fill Factor

$
0
0
So me and my counter part (him being around this game much longer than I) have noticed and read in BOL that the system default for a server's index fill factor is 0 which is fine. We now know we need to change this when creating a new server. But both him and I remember hearing and reading and even being taught in classes that the default index fill factor is 80%. I am wondering if this changed at some point in time and we missed it? I know that a lot of people recommend a default of around 80% depending on table usage. but we know have a lot of indexes that have a fill factor of 0 going back almost 10 years because it was thought that the default was 80% not 100%. We looked at BOL and it says that 0 is 100 going back to SQL Server 2000. We cannot remember the material that we read and learned this from (it has been a while). Anyone in the same boat as us?

things only for sysadmin server role

$
0
0
HI AllAre there any things which only a sysadmin role login can do and can't be done by granting other roles? like changing memory setting??thanks

A nonrecoverable I/O error occurred on file

$
0
0
Hi AllPlease assist me regarding this problem.One database does not want to backup it shows a strange error.please assist A.S.A.P im in trouble,Executing the query "BACKUP DATABASE [DBName] TO DISK = N'C:\\Prog..." failed with the following error: "A nonrecoverable I/O error occurred on file "C:\\Program Files\\Microsoft SQL Server\\MSSQL10.MSSQLSERVER\\MSSQL\\Backup\\DBName\\DBName_backup_2010_12_12_202529_5620562.bak:" 112(failed to retrieve text for this error. Reason: 15100).BACKUP DATABASE is terminating abnormally.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly

Log full due to 'ACTIVE_TRANSACTION'

$
0
0
Hi,I am receiving the errorThe transaction log for database 'ITT' is full due to 'ACTIVE_TRANSACTION'. when executing a procedure

ODBC Error Code 126

$
0
0
Can anyone help?I am trying to setup a system DSN (on SQL2K SP4) to setup a linked server to a Domino backend.I am trying to setup the SQLNotes ODBC as a System DSN but I get the error message:Microsoft ODBC Administrator'The setup routines for the Lotus NotesSQL Driver (*.nsf) ODBC driver could not be loaded due to system error code 126'I can set this up as a file DSN no problem but as far as I can tell, you cannot setup a linked server to a File DSN.If anyone can tell me anything useful, I will be grateful.Wyatt.anderson@nwmhp.nhs.uk

why i can't shrink tempdb data file

$
0
0
Hi,my tempdb database is 30GB(datafile).i try to shrink it with all those options but no luck.use tempdbgoDBCC SHRINKFILE (tempdev,5000)goDBCC SHRINKFILE (tempdev,truncateonly)goDBCC SHRINKDATABASE (tempdb,5000)--answerDBCC SHRINKDATABASE: File ID 1 of database ID 2 was skipped because the file does not have enough free space to reclaim.DBCC execution completed. If DBCC printed error messages, contact your system administrator.sp_spaceused--answertempdb 29971.25 MB 29219.77 MBDBCC OPENTRAN--answerNo active open transactions.DBCC execution completed. If DBCC printed error messages, contact your system administrator.i run this as well with no luckDBCC FREEPROCCACHEGODBCC DROPCLEANBUFFERSgoDBCC FREESYSTEMCACHE ('ALL')GODBCC FREESESSIONCACHEGOdbcc shrinkfile (tempdev,5000)gohow i can shrink the file without restart the sql server services?THX

Failed DBMail actually sending

$
0
0
Hi All, this is my first post here, so please excuse if I missed a topic about this issue (I did search but couldn't find any).I have a very weird issue, I use DBMail to send mail via various sp's every morning. Sometimes some of them fails and then I have to resend them manually.So I wrote a script to show me what failed in order to resend, but then I discovered that even though it shows up in my msdb as "failed" it actually did send.Why will this happen ?I use SQL 2005 on Windows 2003 R2 SP2Thanks

Cumulative Updates and Security Patches

$
0
0
Hello FolksI have a requirement to apply the latest patches to our SQL Server environments, from SQL Server 2000 to SQL Server 2014. I have a doubt regarding SQL Server 2005, the latest service pack is SP4, followed by CU3, but there are also several fixes and security patches after CU3, my question is, do I need to install SP4, then CU3 and finally the latest fix/security patch? or just SP4 and then latest fix/ security patch? :doze:Thank you for your help!

Database Stuck in Restore Mode

$
0
0
I have a database that appears to be stuck in a restore mode. I've looked at the activity and job monitor and that database doesn't appear. How do I stop or cancel this?Please...

SQL server slowdown by increasing processors?

$
0
0
Hello,We have been having problems with some of our reports timing out. looking at utilization we saw high CPU utilization, so we increased the number of processors. Although the reports are running fine now, they are running about 30% of the speed we were running previously. We also tried increasing cores instead with the same results. CPU utilization is about 50% other stats don't seem out of line. Any suggestions are greatly appreciated.Regards,Aaron

Drop users from database

$
0
0
Hi,I am trying to drop users from a specific database and getting the error below . Please help.TITLE: Microsoft SQL Server Management Studio------------------------------Drop failed for User 'User1'. (Microsoft.SqlServer.Smo)For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=11.0.5058.0+((SQL11_PCU_Main).140514-1820+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Drop+User&LinkId=20476------------------------------ADDITIONAL INFORMATION:An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)------------------------------The database principal owns a schema in the database, and cannot be dropped. (Microsoft SQL Server, Error: 15138)

How to get the LiteSpeed Version?

$
0
0
Can anybody please suggest me the query to find the "LiteSpeed" version installed on the server?I tried to use: 'xp_litespeed_version', seems this is not valid.

How to Create Linked Server for a MySQL database using SQL Server Management Studio

$
0
0
It took me about a day to figure this out, so I thought I'd try to save someone else the pain...Creating a Linked Server in SSMS for a MySQL database1. Download the MySQL ODBC driver from mysql.com2. Install MySQL ODBC driver on Server where SQL Server resides -Double Click Windows Installer file and follow directions.3. Create a DSN using the MySQL ODBC driverStart-> Settings -> Control Panel -> Administrative Tools -> Data Sources (ODBC) -Click on the System DSN tab -Click Add -Select the MySQL ODBC Driver -Click FinishOn the Login Tab: -Type a descriptive name for your DSN. -Type the server name or IP Address into the Server text box. -Type the username needed to connect to the MySQL database into the user text box. -Type the password needed to connect to the MySQL database into the password text box. -Select the database you'd like to start in.On the Advance Tab:Under Flags 1: -Check Don't Optimize column width. -Check Return Matching Rows -Check Allow Big Results -Check Use Compressed protocol -Check BIGINT columns to INT -Check SafeUnder Flags 2: -Check Don't Prompt Upon Connect -Check Ignore # in Table NameUnder Flags 3: -Check Return Table Names for SQLDescribeCol -Check Disable TransactionsNow Test your DSN by Clicking the Test button4. Create a Linked Server in SSMS for the MySQL databaseSSMS (SQL Server Management Studio -> Expand Server Objects -Right Click Linked Servers -> Select New Linked ServerOn the General Page: -Linked Server: Type the Name for your Linked Server -Server Type: Select Other Data Source -Provider: Select Microsoft OLE DB Provider for ODBC Drivers -Product name: Type MySQLDatabase -Data Source: Type the name of the DSN you createdOn The Security Page -Map a login to the Remote User and provide the Remote Users Password -Click Add under Local server login to remote server login mappings: -Select a Local Login From the drop down box -Type the name of the Remote User -Type the password for the Remote User5. Change the Properties of the Provider MSDASQLExpand Providers -> Right Click MSDASQL -> Select Properties -Enable Nested queries -Enable Level zero only (this one's the kicker) -Enable Allow inprocess -Enable Supports 'Like' operator6. Change settings in SQL Server Surface Area Configuration for Features -Enable OPENROWSET and OPENDATASOURCE support.7. Change settings in SQL Server Surface Area Configuration for Services and Connections -Enable Local and Remote connections via TCP/IP and named pipes8. Stop SQL Server and SQL Server Agent9. Start SQL Server and SQL Server Agent

Creating a Check Constraint

$
0
0
Hello. I am obviously very new to SQL Server 2005 Express. I am an Access developer and I am giving a try to SQL Server Express. Maybe my question will be answered faster this way 8)I am going through a book (... In 24 Hours series) and every time I try to complete a simple exercise about creating a (seems like a) Check Constraint I get an error. Here's what I am doing:The field is [b]State[/b]: Char (2) and we want to apply the constraint where only the following values are accepted: CA, UT, AZ WY, and a few others.My steps:I click the selected to the left of the [b]State [/b]field and click [b]Manage Check Constraints[/b].In the Check Constraint dialog I click [b]Add [/b]and the constraint CK_Table_1* appears. The name is simply CK_Table_1.I name the constraint ckState (like in the book)In the [b]Expression [/b]I type @State In('CA', 'UT', 'AZ', 'WY') and as soon as I hit Enter a message appears that there is an error in the constraint and ask me if I want to Edit it.I am at loss here because this matches the screen shot in the book.Can anyone help?I hope I provided enough information.

Quick question about databases integrity errors

$
0
0
This is regarding a database for the company I used to work for.They had a power outage over the weekend and when they brought SQL Server back up the most important database was throwing this error, The operating system returned error 21(The device is not ready.) to SQL Server during a read at offset <some memory address> in file <db file>And it advised to run DBCC CHECKDB(), well we couldn't even get into the DB to run that as it would just return the above error. So I restarted the SQL Service and I was able to get in and run CHECKDB(), they were also able to restart the applications that connected to the DB and those worked. However CHECKDB() returned some errors advising me to run UPDATEUSAGE(). After running that I ran CHECKDB() and everything cleared up.Just wondering what happened and if it might be a problem? Fortunately this is no longer my DB :-)

The client was unable to reuse a session with SPID XX, which had been reset for connection pooling.

$
0
0
Hi Guys,Need your help! We are receiving the below errors more frequently now. When ever we get this error, application gets timeout errors of Server not responding (System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding). Here is the configuration of Production server :Window server 2008 R2 Enterprise X64 bit; RAM:32 GB; Processors: 2 ( 16 Core each); SQL Server : SQL Server 2008 R2 Enterprise CU4; Memory 1GB-29GB (max); MDOP=1 (OLTP Server);I am getting this below error almost every day and it causing failure in the application. [b] Error :[/b]2012-02-29 09:00:52.350 Logon Login failed for user 'XXX'. Reason: Failed to open the database configured in the login object while revalidating the login on the connection. [CLIENT: IP]2012-02-29 09:00:52.350 spid74 Error: 18056, Severity: 20, State: 46.2012-02-29 09:00:52.350 spid74 [b]The client was unable to reuse a session with SPID 74, which had been reset for connection pooling. The failure ID is 46. This error may have been caused by an earlier operation failing. Check the error logs for failed operations immediately before this error.[/b]I have researched on the Error a lot, did not find any particular solutions to it. I have found this link where this [b]has been reported as bug to Microsoft[/b], but no resolutions were posted. http://connect.microsoft.com/SQLServer/feedback/details/540092/sql-server-2008-sp1-cu6-periodically-does-not-accept-connectionsSo is this bug fixed or not ? Can you guys please help me to find the solution. do I need make any changes to setting in SQL Server. Please help me!!!!Thanks
Viewing all 2335 articles
Browse latest View live