Auditing failed login attempts
For reading audit files for reporting Failed login attempts . Need the connection event info including instance_name, database_name, client IP etc, store in table . as the audit logs are going to be...
View ArticleManually Manage Service Master Key possible?
Hi All,Is it possible to manually Manage the Service Master Key rather than use an expensive HSM? We create a backup of the keys but want to remove the Service Master Key and still leave in place all...
View ArticleError on Performance Counters disabled after adjusting Service accts permissions
Our SQL service account was incorrectly a Domain admin account. As per best practices and give only the minimum rights I followed Microsoft Article 283811 'How to change the SQL Server or SQL Server...
View ArticleSQL Server Agent won't start up
Hi, did anyone get this ... SQL Server Agent won't start up when using SQL Server Configuration Manager but will using Windows Services ... My maintenance plan didn't want to execute and had an error...
View ArticleHow to change SQL Server Collation
Hello, this message was previously posted in the General Discussion and got no answer. Perhaps this is the correct place... I was trying to install Visual Studio Team Foundation Server but the final...
View ArticleCannot find the symmetric key , because it does not exist or you do not have...
Hi guys, We are facing some problems in Sqlserver 2005 standard edition,while opening the symmetric key (certificate decryption) on sa login.The key and certificate are created under normal user"xxxx"....
View ArticleGenerate Update statements for an existing table
[b]Requirement:[/b] A SQL Script that can be used to generate the 'Update' Statements for a Table which has data I found a superb piece of code @...
View ArticleSQL Sever Scheduled Jobs
Hi,I'm trying to set up a scheduled job that runs daily and sends out an email to me when a job cancels, retries or fails and I would want to come out in this format(See attached image):
View Articletwo databases...same name...same instance...is it psbl?
just to give bckgrnd about my process...we are inserting data into different environments with the same db...so we need to have multiple instances with same db name....i am looking is there a way where...
View ArticleHow to change the database server for case sensitive
hi, In my database I created one table and add one column. column name is : column1 .. when i used select query select . select COLUMN1 FROM table .. it showing data.. how can i change the database to...
View ArticleCan a SQL 2005 instance be renamed?
Can a SQL 2005 instance be renamed? and if so, how? I need to know for instances on both stand alone servers and active/passive clusters.
View ArticleDatabase stuck in single user mode
Hi, Suppose you had a database stuck in single user mode that is in a busy OLTP environment. Given that: 1. The connection that originally put the database into single user mode is gone. 2. The DAC has...
View Articledatabase mail failing
hi i have database mail set up in my server with the same smtp configurations i have in other servers which are working fine. But with this server i keep getting this error: The mail could not be sent...
View ArticleError: 2802, Severity: 10, State: 1. (Params:)
Hi All,User is running SSIS package which consits multiple transactions, 4-5 connections to one single table, there are multiple such operations happening sequentially where SELECT data from source and...
View ArticleHow to kill Rollback process
Is there any way to kill rollback process. It's running for hours.
View Articlegetting DATABASE name from DDL trigger?
i'm looking for a way to extrapolate the DATABASE name from the EVENTDATA function in a DDL trigger and I've tried to get it with substring & charindex, but using the 2 together is throwing me off....
View ArticlePage Life Expectancy - dmv counters give occasional massive spikes
THIS SHOULD REALLY BY IN SQL2008 FORUM - DON'T KNOW HOW I POSTED IT HERE! Darn. I'm collecting performance stats on one of our servers using sys.dm_os_performance_counters. The output is then being...
View ArticleSQL performance counter shows 0 as values
Environment: sql server 2005 enterprise edition on windows server 2003. Perfmon counters fro sql was working before and recently stopped working. The only change I am aware of is our sys admin...
View ArticleScript to Change Collation of User Database
Hello, Is their is any Script to change collation of user database ? The process Which I know; First Backup the User database 1.creation of new database with required collation (create database..with...
View ArticleCACHESTORE_SQLCP consuming all memory in an instance
[font="Courier New"]I've been having issues with one instance where it reports multiple occurrences of: "There is insufficient system memory to run this query." This is a 2005 x64 SP3 instance with a...
View ArticleDecrypting program name from sysprocesses for agent job
Hey all, Are there any known ways to decrypt the hex shown in sysprocesses on program name when the process is a sql agent job? For example, I have a job running now and it shows up as: [i]SQLAgent -...
View ArticleHow many clustered indexes can a table have?
The obvious answer is one, but there is something more fundamental in this. This question is even discussed at PASS and many important SQL Server interviews. I am humble enough to accept I dont know...
View ArticleAlter Sql-Login Default Language
Hi there I use this statement to alter Sql-Login default language but getting this error ALTER LOGIN XXX WITH DEFAULT_LANGUAGE = 'British English' Error: Msg 102, Level 15, State 1, Line 1 Incorrect...
View Articlehow to validate if an Index has been disabled?
while looking over my indexes... (after which i have already disabled) i couldn't find a way to see if they were disabled or not. how do you validate if an index has been disabled? any ideas would be...
View ArticleHow to Schedule a SQL Trace ?
[b][/b]All, I need to schedule a sql trace on Profiler.I see a stop time but no start time.Accordin to msdn I can schedule a Trace by the SQL Profiler GUI or as a job via SQL Server Agent.How do I do...
View ArticleThe client was unable to reuse a session with SPID XX, which had been reset...
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...
View ArticleLinked server for Oracle
Hi, I am having this weird problem with Oracle linked server on SQL 2005 x64. I have installed Oracle client and 64bit oracle odbc drivers. If I run the below query with Windows authentication it is...
View ArticleI can't figure out how a user is logging in!
I have a 2005 server with several Windows individuals and group logins. One user in particular who is NOT listed with a login and is NOT part of the Windows groups is logged in and running queries on...
View ArticleTypes of DBA's ???
Can any of you gentlemen tell me totally how many types of DBA's exists for an organization or overall Administrative DBA Development DBA Architect DBA Data Warehouse DBA OLAP DBA Are above mentioned...
View ArticleTransaction Log File size not reducing after transaction log backups
Hi all, I've seen this topic discussed a million times in various blog posts and forum posts, but I still can't figure out why it's happening. Here is what my backup plan is currently configured as,...
View Articlehow to connect mssql with php
Hii friends i am getting an error [b]Warning: mssql_connect() [function.mssql-connect]: message: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. (severity 14) in...
View Articlesql express 2005 database has dissapeared after restore.
This is live, old I know, but I really need advice.So I had a corrupt db. Backups all screwed. So we decided to repair if poss.set the db to single_userbacked up.dbcc checkdb (db, repair_rebuild) -...
View ArticleHow can I export all table names plus column names from sql?
Hi, I have to list all the tables in my database, plus the column names in each, and how they all link together, for a data mapping exercise. I can get the table names out but is there an easy way to...
View ArticleSSIS - How to Set Output column width to varchar(max)
I have an SSIS project that works fine on files smaller than 8k. When i use a file larger than 8k, it fails due to a truncation error. I have tracked the issue to the 'set column width' which is...
View ArticleCannot attach a database that was being restored.
I am trying to restore a database from copies of data file and log file from a database thats in log shipping. When I run:EXECsp_attach_db
View Articlesp_addartcle fails
Hi, I am trying to automate replication creation. I am running the below code to add two articles to a publication. They both have the same name, but one is a view and another is a table. They belong...
View ArticleDatabase in Recovery Pending State
One of my databases is in [b]Recovery pending[/b] state. I tried to run an Alter command on the database to set it in Online state but it throws the following error. Msg 5120, Level 16, State 101, Line...
View ArticleMissing backup information in backupset
Hello Folks,We have a SQL Server 2005 box (well, please don't ask why... :( ). Since last week, I have observed that the Maintenance Backup jobs (both log and full), does not log information into the...
View ArticleOperating system error 2(The system cannot find the file specified.)
I know this is driving people crazy, there is a 2000 server with only sp2! and it crashed! I am called to investigate, can anyone tell me where to start? I don't even see the DB in the EM
View Article