Quantcast
Channel: SQL Server Database Engine forum
Browsing all 12554 articles
Browse latest View live

Map temporary objects of tempdb to sessions

Hi All,Does anyone know where stores SQL Server tempdb object list. From this list you can determine which temporary object belongs to which session. tempdb.sys.objectsor tempdb.sys.sysobjects have two...

View Article


sytem databases

Please tell me if the instance will be accessible if the model and msdb database is corrupted

View Article


Need to Create Monthly Partition (for 1 years Data) on Existing Table. Need...

Hi All,We have few tables with very huge data & giving performance related issue during load, Extract. So decided to go for Table Partition in 2005. I have gone through many forum & got idea...

View Article

SQL 2005 clearing tempdb with dbcc DROPCLEANBUFFERS & FREEPROCCACHE

I have a few bad reports that cause tempdb to fill until I run out of disk space (work tables, not user defined #tables). I have used these two commands after a checkpoint in the tempdb to clear it...

View Article

Image may be NSFW.
Clik here to view.

Is there bug with cdc.fn_cdc_get_net_changes_.... in SQL Server 2012

I was pretty much following MSDN to get net changes for the CDC enabled table for given date; refer to my earlier question, but was not able to figure what the error was.Here is sample script to...

View Article


How to find what are the peak SQL queries in the last one month for sql...

Hi All,IS there any way to find what are the peak sql queries that are used in last one month.I want this data for analyze and fine tune our system. RegardsMaheshwar Reddy

View Article

What the meaning of Dead Latches?

What the meaning of Dead Latches?Site: http://www.sqlpassion.at/blog/CategoryView,category,SQLMCM.aspxDead Latches are possibleBugs inside SQL ServerDead Spins are not possibleYou can't acquire a Spin,...

View Article

A bug in "not in" query

Please note the code block below:There are two tables called outer_table and inner_table.The table inner_table has two columns aband bc; but in sub query (first and second subquery) i have used it...

View Article


SQL Connection Intermitten Disconnect

Hello,Currently we had encounter an issue as our Web Application capture an intermiten disconnect issue to our SQL Server. We using SQL 2000 SP4 that running in Windows Server 2003 R2. I would like to...

View Article


How to get execute user information from "sys.dm_exec_sql_text"

Hello,Some day ago, my database lose data. Somebody delete rows in table by "Microsoft SQL Manager tools" so i can't trace what they do.I using SQL, get history of statement executed. But how to know :...

View Article

Cannot drop linked server login

Hi,I tried to drop linked server login mentioned in linked server propeerties->security. When I clicked a login and selected delete, it process successfully. When I open again linked server...

View Article

can not open my connection n visual studio

can not open the DB from my visual studio project i get : A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not...

View Article

perfmon counter interval question

Hi AllI am trying to capture the Perfmon data for below counters, and ihave specified the Sample interval as 15 seconds. but i am confused with below points1. does the value it collects is the point in...

View Article


Query runs fine from SSMS but times out when run from a web service

I have a table-valued function that produces a simple report from my database.  When I use this function from management studio it takes around 2 seconds to run, hits 253 logical reads and is granted a...

View Article

what's the meaning for the extent changes for the an Density

from the msdn ,the  definition of Scan Density is "Best count is the ideal number ofextent changes if everything is contiguously linked. Actual count is the actual number ofextent changes. The number...

View Article


SQL Server in Clustered environment connecting using .(Dot)

We have many Clustered SQL 2008 instances but today i noticed that in one of our SQL clustered environments the SQL DB Server is getting connected directly using the .(dot) which usually fails in...

View Article

Partition Existing table online

HelloI have a 24x7 available table and i need to move this table to new partition scheme online. This table has clustered primary key and couple of non-clustered indexes.I went through this good post:...

View Article


scripting table creates half then adds half

Something very curious - when I use SSMS to script a table, it gives me a create table with the first 30 or so fields, then set ansi_padding off, then about five alter table add statements, then set...

View Article

How SQL Server Service Pack upgrade works - Internally

I am looking for some detail documents or inormation about how SQL server service pack upgrade works - internally for both standalone & cluster.Regards, Rohit Garg (My Blog) This posting is...

View Article

Deleteing of the Logshipping jobs on secondary server

Hi All,We are using logshipping for DR plan. My secondary database is in out of sync due to missing of log backup files. So we deciseded to reconfigure the Logshipping. we disable the logshipping...

View Article
Browsing all 12554 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>