Quantcast
Channel: Forum SQL Server Database Engine
Browsing all 15889 articles
Browse latest View live

sql profiler sqltransaction with DatabaseName null

Run a server side profiler trace since I have sleeping spids appearing occasionally on the server. noticed some SqlTransaction events where DatabaseName column shows null . Majority of the...

View Article


undo delete statement...is it possible

I've made a very silly mistake. I was supposed to run this statementdelete table_columnswhere col_id = 1223but instead I mistakenly executed just the 1st line.I have no backups....is there any possible...

View Article


RAISERROR in SQL 2012 since SQL 6.5

Hi everyone,we must to upgrade SQL 2008 R2 to SQL 2012, but all the RAISERROR in stored procedures are in the sintax:RAISERROR 50001 'Error during execution of task XXXXXX'Obviously, this sintax is not...

View Article

How to shrink database after deleting multiple rows in a table?

Environment: SQL Server 2008 R2 Enterprise Edition and using primary filegroup onlyDon't have enough space to create a new filegroup and move all tables/indexes to the new filegroup.Objective: Reclaim...

View Article

Image may be NSFW.
Clik here to view.

Cardinality estimates on a parallel join are wrong

Hello everybody,I'm having a problem with pretty simple query where the cardinality estimates seems to be off and usual methods that I knew for this kind of problem don't help.The query: SELECT...

View Article


Physical connection is not usable

One of our stores is often getting the following error: "A transport-level error has occurred when sending the request to the server. (provider: Session Provider, error: 19 - Physical connection is not...

View Article

Execution Plan Caching - Zero Cost plans

Hi allI am aware that SQL Server's plan cache eviction policy is: When memory pressure is detected, all Zero-cost plans are removed from the plan cache.By zero-cost, does this mean the cost of...

View Article

TMG memory high

Hi,Server memory: 4GBWe have a server that only runs TMG. The maximum memory is set at 1024 in SQL, but sometimes when I restart the sever the memory is already at 3 or more GB. Then after an hour or...

View Article


Backup of files failed

When I try to back up I get several errors.  This time it said Backup failed. One or mor soorce disks is missing.  What does that mean?

View Article


What are the most common issues faced by a production dba regarding user...

Is there any website, blog or forum where all the database related issues(issues applicable to production environment only) are documented?

View Article

Image may be NSFW.
Clik here to view.

Log shipping issue,

Hi TEAM,we are configuring logshipping successfully but when ever run the backup job we getting bellow error message

View Article

Where does sp_trace_getdata store its information, and how do i set the size...

We are using sp_trace_getdata to run a trace against SQL Server. Unforutnately this call seems to be undocumented.Where does this call store the trace data it produces? Does it write to a buffer in...

View Article

Log shipping

How to fail over the log shipping. When the primary server down and how to troubleshoot?

View Article


DBCC CHECKDB Job Failed

Hi All,I have a SSIS Package Maintenance plan to execute DBCC checkDB for UserDB on my server.The Job as suddenly failed now.Executing the query "dbcc checkdb('MYD?Name') with no_infomsgs" failed with...

View Article

Image may be NSFW.
Clik here to view.

Side by Side error with EventId : 33.Activation context generation failed for...

Hi Team,In my environment we have windows server 2003. In that windows SQLSERVER 2008 R2 was installed.Recently we have upgraded Windows server 2003 to Windows Server 2008 (We have done Inplace OS...

View Article


Exchanging data between databases fails in scheduled jobs

In a environment where multiple servers running SQL-Server 2005 support various databases i have to exchanga data and results between two databases running on different servers. The transact-sql...

View Article

How do you troubleshoot a slow running query?

Hi guys, I got asked a question in an interview.  They asked me, if one of your users came to you and told you that a query that use to run 2 seconds, now takes a few minutes to run, how would you go...

View Article


Scripted SQL Agent Job - Max number of Steps

Hi thereI have a scripted SQL agent Job that has 33 steps in it that was scripted out.  When Trying to recreate the job on another instance it is failing with the following error message:Msg 14266,...

View Article

sql server scale out with distributed partitioned views

Hi. Our company manages an online auction and shopping website(something like ebay), and I have questions regarding to scaling out solutions. we are running Sql Server 2008 R2 Enterprise edition(which...

View Article

MDW Data Collector doesn't work, meaning the custom_Snapshot table isn't...

I think the issue is with a long query in XML. Please, how to make this work?Here are the definitions I used:STEP 1 --- Find Collecter TYPE ID fromSELECT collector_type_uid ,* FROM...

View Article
Browsing all 15889 articles
Browse latest View live


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