Quantcast
Channel: SQL Server Database Engine forum
Viewing all 12963 articles
Browse latest View live

Log reuse wait is XTP_CHECKPOINT

$
0
0

Hi all,

I've a database with memory optimized objects, last night the log become full due to insuffcient space on the hard disk. I have added free space to the volume where log files is, databases are working now but I noticed that the database with memory optimized objects uses 30GB of log space (datafiles is 60GB) and if I run a

select log_reuse_wait_desc* from sys.databases where name='MyDatabase'

I get

XTP_CHECKPOINT

what is going on?

How to free space on this database log?


Named Pipe error from PowerShell

$
0
0

I am using PowerShell 4.0 on a laptop with Windows 8.1 Professional.

I have a named instance of SQL Server 2012 named 'RegencyPark' on my Toshiba Laptop named 'Hodentek8'

I can connect to the instance (Windows Authentication) and browse the nodes, run queries, etc.

I launch Powershell from SSMS using a data context. I can very much browse the SQL Server using SQLPS.

However, when I try to run a query I get the named pipe error that the connection could not be made.

---------------------------------------------

I start PowerShell from start and provide the connection string to connect to SQL Server. I can establish the connection, create a new database etc. However if I try to run a select query, I get the same named pipes error.

I check the procols and verify I have enabled Named Pipes. The SQL Server Browser is working.

I am not sure if it has anything to do with the innumerable windows update that is flooding the computer.

I have documented in detail these here:

http://hodentekmsss.blogspot.com/2015/06/powershell-connection-string-to.html

http://hodentekmsss.blogspot.com/2015/06/powershell-cannot-connect-to-sql-server.html

There may be ambiguity in how the installation program of SQL Server retrieves the Windows User as seen in the next two posts. I wonder whether the names pipes error is a result of this.

http://hodentekmsss.blogspot.com/2015/05/errors-installing-sql-server-2016-ctp2.html

http://hodentekmsss.blogspot.com/2015/05/workaround-for-sql-server-2016-ctp2.html


mysorian

SQL Server Agent fails to start

$
0
0

Please can anyone help...?

 

I have two Windows 2003 Standard Edition servers recently upgraded to Windows 2003 SP1 running SQL 2000 SP3. After the Windows service pack install and reboot the SQL Server service starts OK but the SQL Server Agent does not. This problem is exactly the same on both servers.

 

The SQL server and SQL agent services are both configured to start using the same Windows domain user account which is not a local Administrator. Starting the SQL agent through services results in an immediate shut down and message:

 

The SQLSERVERAGENT service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performance Logs and Alerts service.

 

The SQL agent error log shows:

 

2008-03-04 22:15:55 - ! [241] Startup error: Unable to initialize error reporting system (reason: The EventLog service has not been started)
2008-03-04 22:15:55 - ? [098] SQLServerAgent terminated (normally)

There is no problem with the event log and in fact the System Log shows two relevant information entries:

 

Event ID 7035. The SQLSERVERAGENT service was successfully sent a start control.

 

Immediately followed by:

 

Event ID 7036. The SQLSERVERAGENT service entered the stopped state.

 

I have done some diagnosis and found the SQL agent will start if the service account is added to the local Administrators group but this is not recommended? I have also tried changing the service account user the correct way using Enterprise Manager -  first configuring the SQL server account user, then changing the SQL agent account user - in the attempt that any permissions problems would be reset by choosing to use a different account. But this still results in the same problem of the SQL agent being unable to start unless the service account is a local Administrator.

 

Anyone have any suggestions, or perhaps just continue with the service account as a local Administrator?

MAX ERROR setting

$
0
0

Dear Experts

I want to ask about setting called MAX ERROR where can I find it in Management studio

Thanks lot

sql server .trc

$
0
0

Hi guys,

So I received this .trc I am analyzing it… I took it to a sql table and did a top 1 for duration, cpu and reads…

I got the sql code from those ‘top’, execute it and, the longest one it take 65 seconds to run… Problem is it’s a select from a view (code from the view is 10000 lines)… the execution plan is huge (cannot be navigated)… I am kinda list now… What other useful information can I retrieve from the .trc , and in which other way may I improve that 65-second query, if execution plan is a massive.

A transaction has been utilizing the version store for X minutes on server X in SQL server 2005

$
0
0

Per my last discussion, i kept few troubleshooting counters on growth of tempdb and found that:

for about 5-7 queries, tempdb goes up by 10-15 GB every time those queries run.

The current version generation rate is 43.66KB/sec and the cleanup rate is 0.00 KB/sec.  The version store size is 18 MB and tempdb file size is 43256 MB.

Also, please refer to below screenshot for tempdb usage for one of those session  queries hitting hard on tempdb.

Also, Transaction Isolation level is Snapshot and this is a reporting server with transaction replication set up on it.

I know version store release the older than oldest open transaction, but is there a way we being as DBA can investigate and resolve to regain the stuck space.

Queries are been currently reviewed , but just wanted to make sure if there is something to be done which can fix this tempdb growth?

Please advise!

Backup/Recovery Changes

$
0
0

Ok, For some reason we have a database that is setup in BULK-LOGGED recovery mode and the LDF file has grown to 650GB on a 20gb Database. It has been in bulk-logged recovery mode for some time and from what I am reading this is not good.

So the question I have is to switch this to full recovery mode what do I have to be concerned about?   Will I loose data so on so forth.

Any help would be appreciated.

How to avoid bad\special characters while migrating data

$
0
0

I have a source sql 2005 with the database collation SQL_Latin1_General_CP1_CI_AS and destination with sql 2012 with the same collation.

But the SQL server llvel collation is different, sql 2005 uses Latin1_General_CI_AI and sql 2012 uses "SQL_Latin1_General_CP1_CI_AS"

Now when i load the data from 2005  for one table to sql 2012 i could see special characters in one column. And i dont see that in the source database.

 Is there a way to avoid that or is it something we need to manually fix.


Mli.a | Mark the answers if it helps to solve your problem |


SQL server 2012/14 32 bit hotfix not available

$
0
0

Hi All,

                I have installed SQL Server 2012 (32 Bit) on my machine and now faced the issue and found below solution

https://support.microsoft.com/en-us/kb/2916827

When I go to download link  https://support.microsoft.com/en-us/hotfix/kbhotfix?kbnum=2917531&kbln=en-us 

it shows all plateform as 64. Where can I find the 32 bit downloads for this issue.If this include the 32 bit also its confusing?

Also I am not sure if its the correct place to ask this but it would be appreciated if someone can move the thread to appropriate location

Thanks in advance


bahushekh


Want to add MVP with my name.

Refreshing Excel linked with SQL take age..

$
0
0

Hi guys, I don't even know if is the right place but I am struggling with a situation and maybe you can help me. I have got three table with 85000, 15000 and 20 rows. Table A, B C. I connected the table in excel using the usual schema Data --> From Other Source --> From SQL.

Once that I got the data I order the rows directly in Excel. The problem appear when I refresh the data, it's taking more than 30 minutes now and it didn't finish...

Any suggestion?

SQL Server resource governor

$
0
0

I am configuring SQL Resource governor for one of Production server. Following is the scenario

We have AD group as login in SQL server. I am a user member part of domain\BIAdm. When I login using my account SQL Server get permission viadomain\BIAdm.

I am configuring resource governor using user defined classifier. Inside the function I am calling Procedure XP_logininfo to retrieve group name of user belongs to. As limitation of SQL server I am not able to run procedure inside function, So I decided to incorporate the logic in function itself. But the below query throws error on highlighted part. Can you help me in this situation?

DECLARE @WorkloadGroupASSYSNAME

Declare @user_namevarchar(100)

Declare @group_namevarchar(100)

Set @user_name=SUSER_NAME

declare @nttable (name sysnamecollate catalog_default,sidvarbinary(85), sidtypeint)

      insert @nt select loginname,sid, isntgroup + 1 frommaster..syslogins

                   where isntname = 1and loginname = @user_name

      insert @ntselectdistinct domain+N'\'+name,sid, sidtype

                   fromOpenRowset(TABLE NETUSERGETGROUPS, @user_name)

Any suggestion how to get group of user or replacement of OpenRowset(TABLE NETUSERGETGROUPS, @user_name)

Thanks in Advance

Senthil

Deadlocks with fulltext objects

$
0
0

Hi All.

I have noticed that whenever there is a deadlock on a FT object, I observe the error below on the windows application event log.

A fatal error occurred during a full-text population and caused the population to be cancelled. Population type is: FULL; database name is DocumentsDB (id: 14); catalog name is DocumentCatalog (id: 42); table name InvoiceBook (id: 454878894). Fix the errors that are logged in the full-text crawl log. Then, resume the population. The basic Transact-SQL syntax for this is: ALTER FULLTEXT INDEX ON table_name RESUME POPULATION.


Is lock escalation parametric?

$
0
0

Hi all,

we know that SQL Server does lock escalation when the number of locks acquired on one level exceed a given threshold (5.000 if I'm not wrong).

The lock escalation is made to save memory needed for storing object locks.

My question: "is the threshold parametric?" I mean, if I have 2GB of Buffer to store locks I need a certain threshold, if I have 200GB of Buffer I have 100x space to store locks...

I'm wondering if, on large SQL Server machine was the case to disable the lock escalation on certain tables...

what do you think?

Can't enable/start SQL agent

$
0
0

Hi, 

We had to reboot a SQL 2008R2 server tonight so I disabled the agent service (via config manager) so that no jobs would run until we wanted them too. Now I can't set the agent to manual or automatic as I'm getting this error. 

 

I tried starting the service from the command prompt, it does not error but the service in SSMS is not showing as started. 

The log from within SSMS show this quite a few times.  The service runs under the account "Network Service" 

SQLServer Error: 22046, Impersonation error. [SQLSTATE 42000]

Any ideas anyone, really have to get this up and running ASAP. 

Thanks 

Calling all SS DBE Gurus! May results reminder. Plus last call for June Gurus!

$
0
0

Last week saw the results for May's TechNet Guru competition, and you only have a week left to enter June's Competition!

Here is a reminder of May's winners, below.

The last column being a few of the comments from the judges.

http://blogs.technet.com/b/wikininjas/archive/2015/06/17/the-microsoft-technet-guru-awards-may-2015.aspx

Unfortunately, runners up and their judge feedback comments had to be trimmed from THIS post, to fit into the forum's 60,000 character limit, however the full version is available on TechNet Wiki.

Some articles only just missed out, so we may be returning to discuss those too, in future blogs.
 

Guru Award BizTalk Technical Guru - May 2015  

Gold Award Winner

Sandro PereiraBizTalk DevOps: Monitor your BizTalk environment using PowerShellEd Price: "BizTalk DevOps! With PowerShell??? Man, talk about a hot topic with valuable content! Fantastic job on this one!"
Mandi Ohlinger: "Nice job Sandro. Great solutions using PowerShell. "
LG: "It is realy practical and high value article."

Silver Award Winner

Johns-305BizTalk: Running Orchestrations in Multiple Hosts On The Same ComputerLG: "It is one of the great finding that requires deep knowledge of a product and still anyway would avoid public."
Mandi Ohlinger: "Great idea and great sample. Thank you Boatseller!"
Ed Price: "Great job on this hot topic! Great to have the download link and end with a Wiki cross-link!"

Bronze Award Winner

Sandro PereiraBizTalk Server 2013 R2: WCF-SAP Adapter Step-by-Step Installation GuideEd Price: "This is such an amazing installation guide! The depth is so spot on!"
LG: "Great knowledge gathered in this article."

 

Guru Award Microsoft Azure Technical Guru - May 2015  

Gold Award Winner

ChervineBig Data Analytics using Microsoft Azure: HiveJH: "I love the article from Chervine. Hope to see another one from this series very soon."
Ed Price: "Truly magnificent! The depth here is astonishing! Love the diagram. Great code formatting. Thorough References section!" 

Silver Award Winner

Ken CenerelliCustom Telemetry Events with TrackEvent in Microsoft Application InsightsAlan Carlos: "Wow! I love AppInsights and this article is fantastic! Congrats!"
Ed Price: "I love the topic of App Insights! Great formatting throughout this article! The red arrows/callouts in the images help a ton. Great ending with the References and See Also sections!"
JH: "Great article about App Insights. Would love to see more detailed ones about it."

Bronze Award Winner

Ken CenerelliAzure PowerShell cmdlets version updates

JH: "Nice, short and simple. Seems to be the time for me to check my Azure PowerShell version." 

Ed Price: "Great topic with PowerShell! This is such a beautifully formatted article that's incredibly easy to read and understand. Fantastic job!"

Guru Award Miscellaneous Technical Guru - May 2015  

Gold Award Winner

Carmelo La MonicaRead the temperature with Arduino UnoPhilippe Levesque: "Really refreshing content and well explained"
Richard Mueller: "Great images. We need more references."

Silver Award Winner

Danish IslamMicrosoft Office SwayRichard Mueller: "Good use of Wiki guidelines. I liked the detailed steps to get started and the references."
Philippe Levesque: "Good introduction to Sway!"

Bronze Award Winner

Pooja BaraskarMoisture sensor with Windows on GalileoPhilippe Levesque: "Great job on this content"
Richard Mueller: "Great images."

  

Guru Award SharePoint 2010 / 2013 Technical Guru - May 2015  

Gold Award Winner

Dan ChristianSharePoint 2013 External List from Oracle DatabaseHezequias Vasconcelos: "It is important to see the integration of SharePoint 2013 with other platforms not Microsoft. This shows the confidence that the business environment has on the product."
KB: "Very detailed and a lot of screenshots. Nice work!"
TN: "Helpful article to connect SP & Oracle database"
Ed Price: "This is fantastic! I love how the three videos walk you through the steps as well!"

Silver Award Winner

Inderjeet Singh JaggiWhat is a Web Application in SharePoint?Ed Price: "Great description and use of PowerShell commands."

Bronze Award Winner

Danish IslamExcel Services Issue in SharePoint 2013/2010Ed Price: "This is very clear, with a helpful solution. A combination of the text of the error message and the image help add the clarity. Great formatting. It could benefit from a See Also section." 

 

Guru Award Small Basic Technical Guru - May 2015  

Gold Award Winner

Ezra94Small Basic: OptimizationMichiel Van Hoorn: "This is really usefull and great reading for developers who looking for more complex application and want to avoid pitfall.s"
Ed Price: "Ezra and Nonki did an amazing job on this article! I was recently going through these issues with some various users, and this article has helped give us a ton of ideas! Great article! Great formatting on the sections and code snippets, and I love all the resources at the end! That Bill Gates article is a fun one!"
RZ: "Very nice! And very engaging. Much more fun than just talking about Optimization. :)"

Silver Award Winner

Nonki TakahashiSmall Basic: Kinect for Small Basic Extension LibraryMichiel Van Hoorn: "For those lucky guys with a kinect sensor on their pc: get busy. For others: buy a sensor!"
Ed Price: "A reference doc for the Kinect Extension. Great! And I love the picture! Also, good visibility in the See Also to show the other extensions available!"
RZ: "Excellent as usual. Yeah, Kinect! What else needs to be said? :)"

Guru Award SQL Server General and Database Engine Technical Guru - May 2015  

Gold Award Winner

Andy ONeillDeveloper Friendly XML Extraction From SQL ServerDRC: "Good article for developers to extract the SQL data in XMl format for processing. The SQL Server instance name in the BCp command should be “-S” [Upper case]. Else we encounter the error: C:\temp>bcp.exe "SQLquery" queryout c:\temp\xmlFileName.xml -w -T -s<Hostname\Instancename> bcp.exe: unknown option s We get the below error if we don’t specify the servername as it always tries to connect to default instance on the machine on which the command is executed.So "-S" parameter need to be included. bcp "EXEC [AdventureWorks2012].[dbo].[XML_Extract_Employees]" queryout D:\test.xml -w -T C:\temp>bcp "EXEC [AdventureWorks2012].[dbo].[XML_Extract_Employees]" queryout c:\temp\test.xml -w -T SQLState = 08001, NativeError = 2 Error = [Microsoft][ODBC Driver 11 for SQL Server]Named Pipes Provider: Could not open a connection to SQL Server [2]. SQLState = 08001, NativeError = 2 So the commandd should be: bcp "EXEC [AdventureWorks2012].[dbo].[XML_Extract_Employees]" queryout D:\test.xml -w -T -S<hostname\Instancename> "
Durval Ramos: "An interesting article, but need to add more XML examples and other structures, including attributes and special characters (encoding)"
AM: "Great introduction to FOR XML feature."

Guru Award System Center Technical Guru - May 2015  

Gold Award Winner

GerryHampsonAnalyse your ConfigMgr data with Microsoft Power BIAlan Carlos: "Great article and content."
Ed Price: "Great job on the detail and some very helpful images! It could benefit from a TOC, section headers, and a See Also section. Great article! Powerful topic!" 

Silver Award Winner

Sridhar VishwanathamOptimizing rule in scom 2007/2012Ed Price: "Good topic with great info. It could benefit from a TOC, bigger section headers, and a See Also section that links to related Wiki articles. Good diagram! It's very easy to follow along through the details!" 

Bronze Award Winner

MarkusEliassonTroubleshoot ID 30111 from DPM: VssError: The specified object was not foundEd Price: "Helpful info! Please check out the article comment from Mike J and update acordingly. Great topic!"
MJ: "I Added a comment to make it more complete."

Guru Award Transact-SQL Technical Guru - May 2015  

Gold Award Winner

Ronen ArielyT-SQL: Sort data by multiple languagesRichard Mueller: "Good explanation. I like the highlighted notes."
Durval Ramos: "This article is very interesting, and demonstrates effectively how to work with UNICODE data. Very well detailed article and also have T-SQL script to download on TechNet Gallery."

Silver Award Winner

Saeid HasaniT-SQL: Make a Read Copy of Database by Using Synonym, Trigger and SQL Agent JobDurval Ramos: "Very useful, this article is well structured over an interesting scenario. I have read many threads about copy of a database on Forums. Also have T-SQL script to download on TechNet Gallery."
Richard Mueller: "We need links/references."

Guru Award Universal Windows Apps Technical Guru - May 2015  

Gold Award Winner

Emiliano MussoGeolocalize a device and store coordinates on WebserveEd Price: "Wow! This is such an amazing article! The detail, images, formatting, and everything are all fantastic! I'd love to see a See Also section and Wiki cross-linking, but this is a fantastic article!"
JH: "Location-aware apps are very important nowadays. I like the approach in this article to not use the complete Microsoft stack, instead to use PHP and MySQL. Would be cool to see it with more technologies, such as Node.js."

Silver Award Winner

Lee McPhersonLeverage Continuum feature to change UI for Mouse/Keyboard users using custom StateTriggerJH: "I like it when an app behaves 'native' on different devices. Hope that the times where I can't use my big fingers are gone."
Ed Price: "Great descriptions and execution on formatting each section!" 

Bronze Award Winner

Pooja Baraskar Localization in Windows Universal AppsJH: "Localization and Globalization is something most apps have their problems with. This article shows how easy it can be. Love it!"
Ed Price: "As Danish mentions in the article comments, it's very easy to understand! The images are helpful and the explanations are thorough!" 

Guru Award Visual Basic Technical Guru - May 2015  

Gold Award Winner

tommytwotrainVB.Net: High resolution printouts of the Chart control by using a MetafileMR: "Very helpful article!"
Richard Mueller: "Good work. We need links/references."

Silver Award Winner

Emiliano MussoSort and Filter CSV files with DataTable and DataViewRichard Mueller: "Good use of TOC."
MR: "Great article on intro to Data Tables" 

Guru Award Visual C# Technical Guru - May 2015  

Gold Award Winner

.paul.Multi-page DGV PrintingCarmelo La Monica: "Very great content and detailed in all parts!"
Jaliya Udagedara: "It would have been great, if explanations were provided for each method in the provided code."

Silver Award Winner

Yan GrenierC# : Windows Service in console mode for debug and adminJaliya Udagedara: "I really enjoyed reading this article. Well explained with images, code snippets, and the source code is available in MSDN Code Gallery. It’s just perfect!"
Carmelo La Monica: "I don't know very much about Windows Service, but this article is for me and other users a good starting point, congrats!"

Bronze Award Winner

Tom MohanGetting Started With WCFJaliya Udagedara: "Detailed article about WCF which I am sure beginners will find quite interesting."
Carmelo La Monica: "Very helpful article, and great demo for to understand how to use WCF service, congratulations!"

Guru Award Wiki and Portals Technical Guru - May 2015  

Gold Award Winner

Andy ONeillWhy YOU should enter the Technet WIki Guru CompetitionPG: "Nice, useful article"
Durval Ramos: "This article provides good arguments to encourage our Community to share knowledge. Congrats on your initiative, Andy!!!"
Richard Mueller: "Great topic and well written. Good use of guidelines for articles."

Guru Award Windows PowerShell Technical Guru - May 2015  

Gold Award Winner

Arleta WanatSharePoint Online content types in Powershell: AddRichard Mueller: "Well written. Good links. I needed more explanation/examples."
Chen V: "Excellent Article! Great Explanation with Related Links! "

Silver Award Winner

sridhar vishwanathamSCOM 2012: Bulk override creation for monitors and rules using PowerShellAlan Carlos: "Wow, great tip!!!"
Chen V: "Good script to keep SCOM healthy!"
Richard Mueller: "Needs links/references."

Bronze Award Winner

Arleta WanatManage SharePoint Online Access Requests using PowershellRichard Mueller: "Interesting."
Chen V: "Good Article - Screen shots makes it clear." 

Guru Award Windows Presentation Foundation (WPF) Technical Guru - May 2015  

Gold Award Winner

Andy ONeillDependency Property Default Double TroubleKJ: "I love these kind of articles. this has bit me in the past."
Ed Price: "Love the end-to-end perspective!"

Silver Award Winner

Tom MohanData Input Validation In WPF : Validation With ExceptionEd Price: "Valuable contribution!"
KJ: "short and sweet - nice."

Bronze Award Winner

Andy ONeillAnimating a ViewModelKJ: "neat stuff! very fancy!"
Ed Price: "Great topic with powerful depth!"

Guru Award Windows Server Technical Guru - May 2015  

Gold Award Winner

Richard MuellerActive Directory: Large Integer AttributesJM: "This is an excellent article, thanks for your continued contributions"
Mark Parris: "Excellent insights."
Philippe Levesque: "Well written article and well explained !"

Silver Award Winner

Manjunath SulladHow to Identify “Shared” and “Non-Shared” disks on cluster nodesPhilippe Levesque: "Good technical tip !"
JM: "This is a very good article on cluster node HDDs, good job"
Mark Parris: "Good tidbit."

Bronze Award Winner

Darshana JayathilakeUseful powershell commands for manage servers & desktopsMark Parris: "Good knowledge to have."
JM: "This article provides a great basis for a topic to which many folks can contribute their favorite PowerShell commands"

As mentioned above, runners up and comments were removed from this post, to fit into the forum's 60,000 character limit.

You will find the complete post, comments and feedback on the mainannouncement post.

Please join the discussion, add a comment, or suggest future categories.

If you have not yet contributed an article for this month, and you think you can write a more useful, clever, or better produced wiki article than the winners above, here's your chance! :D

Best regards,
Pete Laker

More about the TechNet Guru Awards:


#PEJL
Got any nice code? If you invest time in coding an elegant, novel or impressive answer on MSDN forums, why not copy it over toTechNet Wiki, for future generations to benefit from! You'll never get archived again, and you could win weekly awards!

Have you got what it takes o become this month's TechNet Technical Guru? Join a long list of well known community big hitters, show your knowledge and prowess in your favoured technologies!


[DBNETLIB]ConnectionOpen (SECDoClientHandshake()) SSL Security error

$
0
0

I am using sql 2008 R2 SP3 and using IIS 6.5,

and have got the following error on end user browsers:

[DBNETLIB]ConnectionOpen (SECDoClientHandshake()) SSL Security error

I am a DBA, any way we can investigate deeply on database side ?

Behavior when inserting into remote table using a Linked Server

$
0
0

Hi, I'm copying date from a  sql server 2000 table to a sql server 2008 R2 table using a Linked Server.

I need to be sure the remote table is correct before processing it.

I first delete all the remote table contents and after that, I insert into remote_table from local_table

What happens if the communication is interrupted during the insert?

I mean, Can I be sure all records were copied just checking if record count > 0 ?

Thanks

Diego

How to identify if tempdb contention on page is PFS,GAM or SGAM?

$
0
0

 I have used Extented event to monitor the occurances of TempDB contention on Production server . I found there are several entried logged in in 30 mints .

Now I am trying to determin if Tempdb contention on PFS, GAM or SGAM page then I will decide if I need to increase the number of TempDB data files on Production server . Currently , There are 8 TempDB Data files configured on its separate Disks .

There are Page_IDs  I found in the extented events for Tempdb files -

Page_ID  =1 for PFS page

Page_ID = 2 for GAM page

Page_ID =3 for SGAM page

but I found the Below Page_IDs and I know there is a formula that you can use to identify if page is PFS,GAM or SGAM ?Could someone please give me the right formula and will explain me how should I use this formula and what should I look for to determin if page is PFS,GAM or SGAM ? Is there any threshold value for the duration of TempDB contention occured ?  Your help will be apprecited .

Page_ID

16176 ,

24264

64704

80880

121320

145584

299256

323520

444840 etc .

Profiler trace with Error = 2 (Aborted)

$
0
0
What is the meaning of profiler trace with Error = 2 (Aborted) ?

Comparision Merge clause vs If not exists

$
0
0

Hi Team,

There exits various stored procedures, wherein developer has used if exists then update and if not then inserted records.

I would like to know, what is good option, considering with the fact that, stored procedure must be optimized and need to consume less resources.

Thanks  

Viewing all 12963 articles
Browse latest View live


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