Reads too high on indexed-table update
I'm trying to understand why SQL Profiler shows high values of reads in the following scenario:Run the following code to add around 600 rows of data to a table, and add an index to one of the columns:...
View ArticleSQL Service Broker - Administratively Disabled
Have implemented SQL Service Broker at one customer's site and it is up and running fine. Took the same scripts from that customer and ran it on a different customer's databases, changing the name of...
View Articledifficult query
My data is the log of changes to 3 specific records for an AppID. The AppCatID describes the 3 different types of AppID records (4, 5 or 6).What I need to return is the single most recent change to...
View ArticleIs there a way to Identify if a database is no longer in use
Hi Guys,Is there a way to identify old databases that are not in use? :-D Well aside from checking the physical mdf file itself. is there any other way?thanks
View ArticleScript to create realistic generic financial data
Hi SSC,This morning I was doing some work from home on some work transcribing a financial algorithm into SQL, when my VPN client failed. Vigilant, I decided to make a table of fake financial data so...
View ArticleVirtual Environment for Sql server ????
Anybody has any idea any website or URL give any virtual enviroment where a sql server (mgmt ) environment is available for practice ?
View ArticleDo not get the notification when the job fails
I have everything configured, have the sendemail stored procedure under msdb, havethe operators,same configuration on other 2 servers work with no issue,Help is appreciated,Bubby
View ArticleStored procedure that takes backup of your procedures on physical drive
I am getting error while executing this stored procedurePlease help./*========================================================================================== Name: Export all stored procedures for...
View ArticleSSIS - exporting view to csv
Hi,I am exporting a view to CSV, however 1 of the columns is a smalldatetime and i would like the csv to ONLY display DDMMYYYY - how can I achieve this?
View ArticleSproc permissions
Need to grant DEV access to script out sprocs on LIVE. What permissions are needed.
View ArticleAccess Teradata from SQL server 2005
We are trying to fetch Teradata tables in SQL server 2005. I installed OLEDB driver for Teradata on server hosting SQL server. I created a linked server to Teradata. When I test the connection to this...
View ArticleUnable to kill a session
Hi,When we kill a session, we get the below error. What is the fix for this? In the backend(sp_who2) it is showing this SPID is running. Restore log is running. I just need to drop this database. Give...
View ArticleHow to give Grant permission to single stored procedure rights for a single...
How to give execution permission to single stored procedure rights for a single user (SQL 2000)?Please help me?
View ArticleMonitorear las inserciones y transacciones en base de datos
Hola que tal. Quisiera que me ayudaran por favor. Necesito monitorear las inserciones que se realizan en las tablas de una Base de Datos asi como sus transacciones. Quiero realizar un monitoreo...
View Article.Net Framework 3.5 for SQL 2008 R2
Is it necessary to install .Net Framework 3.5 before installing SQL Server 2008 R2 on win 7 x64 unlimited?Already .Net Framework 4.0 is installed. But during installing SQL I got this error"An error...
View ArticleRestoring database in replication
Dear,I have configured snapshot replication on my database. It is going fine. Now if I wanna restore publisher database to subscriber database, will it cause any problem to replication settings.Please...
View ArticleSimple Database
I have a Database it simple recovery and ı get differential backup every 15 minutesbut it growth about 30 gb why it does not truncate and Can I truncate it with shirink file?
View ArticleThe new role of the DBA
Good day to you all . I am observing a very unhealthy state of affairs in the database environment . Let me explain. Managers nowadays tied the hands of dbas by abusing Business Processes so much that...
View Articlehow to write a stored procedure to check if the members membership has expired
i have a table named users where i have two three column userid, email, membershipexpiryi want to write a stored procedure tat will take email as a input from the front hand and compare the current...
View ArticleMirror Database Recovery Problem
Dear,There was some problems in my principal server and sql server get corrupted. I have also configured replication in my principal server.Now in mirror server, I see the mirror database like [b]myDB...
View Article