 




<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IT Answers &#187; SQL Server 2008 R2</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/sql-server-2008-r2/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Sat, 18 May 2013 21:33:01 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Server upgrade 2003 to 2008</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/server-upgrade-2003-to-2008/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/server-upgrade-2003-to-2008/#comments</comments>
		<pubDate>Mon, 25 Mar 2013 22:13:14 +0000</pubDate>
		<dc:creator>dthomas5186</dc:creator>
				<category><![CDATA[SQL Server 2003]]></category>
		<category><![CDATA[SQL Server 2008 R2]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/server-upgrade-2003-to-2008/</guid>
		<description><![CDATA[New Answer by Sasachin3]]></description>
				<content:encoded><![CDATA[New Answer by Sasachin3]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/server-upgrade-2003-to-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mdm.udpValidateModel can be run twice with no side effect.</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/mdm-udpvalidatemodel-can-be-run-twice-with-no-side-effect/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/mdm-udpvalidatemodel-can-be-run-twice-with-no-side-effect/#comments</comments>
		<pubDate>Mon, 29 Oct 2012 11:38:34 +0000</pubDate>
		<dc:creator>Manishkumar1980</dc:creator>
				<category><![CDATA[SQL Server 2008 R2]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/itanswers/?p=267755</guid>
		<description><![CDATA[New Answer by MTidmarsh]]></description>
				<content:encoded><![CDATA[New Answer by MTidmarsh]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/mdm-udpvalidatemodel-can-be-run-twice-with-no-side-effect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>File server</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/file-server-2/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/file-server-2/#comments</comments>
		<pubDate>Thu, 07 Jun 2012 00:14:18 +0000</pubDate>
		<dc:creator>Thenmen</dc:creator>
				<category><![CDATA[SQL Server 2008 R2]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I have a server 2008 R2 that while in Explorer on the left navigation pane show &#8220;Network&#8221; and under that a list of workgroup computers (it’s a file server) I have one computer in that network thats name is blue and underlined. Is there significance to this?]]></description>
				<content:encoded><![CDATA[<p>I have a server 2008 R2 that while in Explorer on the left navigation pane show &#8220;Network&#8221; and under that a list of workgroup computers (it’s a file server) I have one computer in that network thats name is blue and underlined. Is there significance to this?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/file-server-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Scrip an select from linked Oracle database in Management studio gives multiply fields</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/scrip-an-select-from-linked-oracle-database-in-management-studio-gives-multiply-fields/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/scrip-an-select-from-linked-oracle-database-in-management-studio-gives-multiply-fields/#comments</comments>
		<pubDate>Wed, 30 May 2012 11:42:07 +0000</pubDate>
		<dc:creator>AnnaLena</dc:creator>
				<category><![CDATA[Oracle Database]]></category>
		<category><![CDATA[SQL Server 2008 R2]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[In SQL Server 2008 R2 Management studio under Linked servers I want to script a select from an Oracle database table. The result is that many of the fields occur three times. What can the reason for that be? See this example: SELECT [RATETYPE],[RATETYPE],[RATETYPE]             ,[FROMCURRENCY],[FROMCURRENCY],[FROMCURRENCY]       ,[TOCURRENCY],[TOCURRENCY],[TOCURRENCY]       ,[VALIDFROM],[VALIDFROM],[VALIDFROM],[EXCHRATE]       ,[FROMFACTOR]       ,[TOFACTOR]       ,[CREATIONDATE],[CREATIONDATE],[CREATIONDATE] [...]]]></description>
				<content:encoded><![CDATA[<p>In SQL Server 2008 R2 Management studio under Linked servers I want to script a select from an Oracle database table. The result is that many of the fields occur three times. What can the reason for that be? See this example: SELECT [RATETYPE],[RATETYPE],[RATETYPE]             ,[FROMCURRENCY],[FROMCURRENCY],[FROMCURRENCY]       ,[TOCURRENCY],[TOCURRENCY],[TOCURRENCY]       ,[VALIDFROM],[VALIDFROM],[VALIDFROM],[EXCHRATE]       ,[FROMFACTOR]       ,[TOFACTOR]       ,[CREATIONDATE],[CREATIONDATE],[CREATIONDATE]    FROM [MyServer]..[MyDB].[MyTable]</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/scrip-an-select-from-linked-oracle-database-in-management-studio-gives-multiply-fields/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sql Server 2008R2 on Windows Sever 2008 R2</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sql-server-2008r2-on-windows-sever-2008-r2/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/sql-server-2008r2-on-windows-sever-2008-r2/#comments</comments>
		<pubDate>Tue, 15 May 2012 15:48:05 +0000</pubDate>
		<dc:creator>Coopfirst</dc:creator>
				<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[SQL Server 2008 R2]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[When i attempt to install it tells me that my operating system is not supported, rule &#8220;Operating system supported edition&#8221; failed. however when i check the list of valid operating system it is listed, anyone had this issue before or know why i wont recognize, thank you]]></description>
				<content:encoded><![CDATA[<p>When i attempt to install it tells me that my operating system is not supported, rule &#8220;Operating system supported edition&#8221; failed. however when i check the list of valid operating system it is listed, anyone had this issue before or know why i wont recognize, thank you</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/sql-server-2008r2-on-windows-sever-2008-r2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>session error</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/session-error/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/session-error/#comments</comments>
		<pubDate>Thu, 05 Jan 2012 15:12:53 +0000</pubDate>
		<dc:creator>tcstl</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[SQL Server 2008 R2]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Just upgraded a vendor app from sql 2005 to sql 2008 r2 sp1 and are consistently getting Error: 18056, Severity: 20, State: 29. The client was unable to reuse a session with SPID 72, which had been reset for connection pooling. I have applied all patches and stil lcan&#8217;t get rid of error. User&#8217;s seeing [...]]]></description>
				<content:encoded><![CDATA[<p>Just upgraded a vendor app from sql 2005 to sql 2008 r2 sp1 and are consistently getting Error: 18056, Severity: 20, State: 29. The client was unable to reuse a session with SPID 72, which had been reset for connection pooling. I have applied all patches and stil lcan&#8217;t get rid of error. User&#8217;s seeing timeouts (the box itself is doing little). ANyone found a way to overcome this error?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/session-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error Message in SQL Server 2008 code.</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/error-messge-in-sql-server-2008-code/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/error-messge-in-sql-server-2008-code/#comments</comments>
		<pubDate>Wed, 05 Oct 2011 11:20:55 +0000</pubDate>
		<dc:creator>JKJK</dc:creator>
				<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server 2008 R2]]></category>
		<category><![CDATA[SQL Server Management Studio]]></category>
		<category><![CDATA[SSMS 2008]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi, I am currently going through the Tutorials on SQL Server Management Studio 2008 R2. One of the samples instructs me to run the following code: SELECT  Mgr.EmployeeID AS MgrID, Mgr.LoginID AS Manager,  Emp.EmployeeID AS E_ID, Emp.LoginID, FROM EmployeeDemo AS Emp LEFT JOIN EmployeeDemo AS Mgr ON Emp.ManagerID = Mgr.EmployeeID ORDER BY MgrID, E_ID; [em]When [...]]]></description>
				<content:encoded><![CDATA[<p>Hi, I am currently going through the Tutorials on SQL Server Management Studio 2008 R2.<br/><br/> One of the samples instructs me to run the following code:<br/><br/> SELECT  Mgr.EmployeeID AS MgrID, Mgr.LoginID AS Manager,  Emp.EmployeeID AS E_ID, Emp.LoginID, FROM EmployeeDemo AS Emp LEFT JOIN EmployeeDemo AS Mgr ON Emp.ManagerID = Mgr.EmployeeID ORDER BY MgrID, E_ID;<br/><br/> [em]When i execute the above code i get the following error message:[/em]<br/><br/> [strong]Msg 156, Level 15, State 1, Line 4 Incorrect syntax near the keyword &#8216;FROM&#8217;. [/strong]<br/><br/> [strong]Any idea&#8217;s what the problem might be?[/strong]<br/><br/> [strong]Thanks[/strong]<br/><br/> [strong]John.[/strong]<br/><br/> [strong][/strong]<br/><br/>  </p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/error-messge-in-sql-server-2008-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Challenge improving query performance on large tables</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/challenge-improving-query-performance-on-large-tables/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/challenge-improving-query-performance-on-large-tables/#comments</comments>
		<pubDate>Tue, 27 Sep 2011 14:21:07 +0000</pubDate>
		<dc:creator>Sport2000</dc:creator>
				<category><![CDATA[Query optimization]]></category>
		<category><![CDATA[Query performance]]></category>
		<category><![CDATA[SQL query optimization]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[SQL Server 2008 R2]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi, Here&#8217;s the structure of the db I&#8217;m using: * Table frs_ArticlesBDFournisseur which contains article main data.One row per article/color. Key is Refrefart (int). Size is over 220000 rows at the momemt. Only index is the PK (clusterred). * Table frs_ArticlesBDFournisseurTaille contains all the various sizes and barcode for the corresponding article/color from the previous [...]]]></description>
				<content:encoded><![CDATA[<p>Hi,<br/><br/> Here&#8217;s the structure of the db I&#8217;m using: * Table frs_ArticlesBDFournisseur which contains article main data.One row per article/color. Key is Refrefart (int). Size is over 220000 rows at the momemt. Only index is the PK (clusterred). * Table frs_ArticlesBDFournisseurTaille contains all the various sizes and barcode for the corresponding article/color from the previous table. Key is RefREFARTTAILLE (int). Size is over 1200000 rows at the moment. refrefart column also exists in this table to link with the previous table, altough there is no physical constraint linking the 2 tables. Indexes are PK (clustered), refrefart (non clustered) and refrefart,taille,codeean,codeeanfrs (non clustered).<br/><br/> Here&#8217;s what I want to do: I work at headquarters of franchise shops. I have to collect data from each selling point, match it with our own database (the one discribed above) to normalise the incoming data and complete it with more details. The best way to match an article is to use its barcode (when it exits in the shop data). We pack up to 2 barcodes with every article (callled CodeEan and CodeEanFrs from frs_ArticlesBDFournisseurTaille). I need to complete the information I have with the article size (called taille from frs_ArticlesBDFournisseurTaille), the article&#8217;s season (called Saison from frs_ArticlesBDFournisseur) and the number of different season the article has been existing in (to know whether it is a one season product or a permanent product).<br/><br/> Here&#8217;s the challenge for the query at hand: There is no constant data in frs_ArticlesBDFournisseurTaille with which I can do a GROUP BY. I need to get the latest product data (in case there is more than one season) and the total number of seasons.<br/><br/> Here&#8217;s the query I&#8217;ve designed: SELECT M.*, ART_REF, A.ART_PSEUDO, ART_NOM, ART_FEDAS, ART_ANNEECREATION, COU_CODE, COU_NOM, TGF_NOM, MRK_IDREF, MRK_NOM, MRK_NOM_ORI, CBI_EAN, CBI_EANFRS, B.RefRefArt, B.Taille AS sp2kTaille, CASE when B.CodeEan = &#8221; then null else B.CodeEan END AS sp2kEan, CASE when B.CodeEanFrs = &#8221; then null else B.CodeEanFrs END AS sp2kEanFrs, B.Saison, Coalesce(B.Pos, 0) as Permanent FROM gin_Mouvements M LEFT JOIN gin_Articles A ON M.MOV_ARTID=A.ART_ID LEFT JOIN gin_Couleurs C ON M.MOV_COUID=C.COU_ID LEFT JOIN gin_Tailles T ON M.MOV_TGFID=T.TGF_ID LEFT JOIN gin_Marques N ON A.ART_MRKID=N.MRK_ID LEFT JOIN gin_Ean E ON (M.MOV_ARTID=E.CBI_ARTID AND M.MOV_COUID=E.CBI_COUID AND M.MOV_TGFID=E.CBI_TGFID) OUTER APPLY (SELECT TOP 1 T.RefRefArt, CodeEan, CodeEANFrs, Taille, Art.Saison, Rank() over (order by T.RefREFART ASC) as Pos FROM frs_ArticlesBDFournisseurTaille T LEFT JOIN frs_ArticlesBDFournisseur Art ON T.RefREFART=Art.RefREFART WHERE (CodeEAN = E.CBI_EAN OR CodeEANFrs = CBI_EANFRS OR CodeEANFrs = CBI_EAN OR CodeEAN = CBI_EANFRS) ORDER BY RefREFART DESC) B<br/><br/> Query explained: All the first part, with all the left join, is to gather the data, relatively small, from the shops. There is no performance issue here. I&#8217;ve used an outer apply to avoid having to do a left join and the ON conditions which I couldn&#8217;t get to work to return at the same time the max(refrefart) and the total number of season; remember I can not make a group by.<br/><br/> Performances: This query runs at a 20row/s at best (nearly 20s to return 500 rows). The data in both tables described at the beginning is bound to increase twice a year by about 10000 new products and 6 times more for the barcodes. I&#8217;m afraid the performances will be degrading even more soon.<br/><br/> Advice ?: If anyone can see how to improve the query or rewrite the query differently or improve the db or else &#8230; please let me know.<br/><br/> Stats: Execution plan sum up: it is spending 57% on Nested Loops (Left Outer Join) and 40% on Index Scan (NonClustered)[sp2k_staging].[dbo].[frs_ArticlesBDFournisseurTaille].<art_ean] [T]. They are thick lines but they are mostly to the right of the diagram. The client statistics based on a TOP 500 run of the query: Client Execution Time 10:45:36   Query Profile Statistics      Number of INSERT, DELETE and UPDATE statements  0  0.0000   Rows affected by INSERT, DELETE, or UPDATE statements 0  0.0000   Number of SELECT statements        2  2.0000   Rows returned by SELECT statements     501  501.0000   Number of transactions         0  0.0000 Network Statistics      Number of server roundtrips       3  3.0000   TDS packets sent from client       3  3.0000   TDS packets received from server      119  119.0000   Bytes sent from client        2452 2452.0000   Bytes received from server       478675 478675.0000 Time Statistics      Client processing time        16895 16895.0000   Total execution time         18158 18158.0000   Wait time on server replies       1263 1263.0000<br/><br/> Thank you.<br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/challenge-improving-query-performance-on-large-tables/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>connecting to SQL server with mdf files</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/connecting-to-sql-server-with-mdf-files/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/connecting-to-sql-server-with-mdf-files/#comments</comments>
		<pubDate>Sat, 24 Sep 2011 00:52:27 +0000</pubDate>
		<dc:creator>Makoelaw</dc:creator>
				<category><![CDATA[.MDF files]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[SQL Server 2008 R2]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[What is the best way to connect a website on a VPS to sql server 2008 R2 express, using MDF files as databases. The VPS is running on server 2008 R2. I installed the same environment on the development computer. IIS gets a connection because it sees the users that are in the ASPNETDB.MDF file. [...]]]></description>
				<content:encoded><![CDATA[<p>What is the best way to connect a website on a VPS to sql server 2008 R2 express, using MDF files as databases. The VPS is running on server 2008 R2. I installed the same environment on the development computer. IIS gets a connection because it sees the users that are in the ASPNETDB.MDF file. (Beside that I have another database.) But as soon as I run the website and try to log in, the application crashes. I tried using integrated security and user instance in the connectionstring in the webconfig file, but get the error that the user instance could not be created. I made a user in sql server but that user can only be linked to existing databases (so MASTER) and when logging in to the website i get the error that ASPNETDB.MDF could not be created in the MASTER database because that file already exist (so this would be completely wrong). So how can I connect it in the right way? I would rather keep on using MDF files in the App_Data directory of the website, but is that a good thing? Is it secure on the VPS?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/connecting-to-sql-server-with-mdf-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sys.conversation_endpoints build up</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sysconversation_endpoints-build-up/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/sysconversation_endpoints-build-up/#comments</comments>
		<pubDate>Fri, 23 Sep 2011 23:40:12 +0000</pubDate>
		<dc:creator>Shellz</dc:creator>
				<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[SQL Server 2008 R2]]></category>
		<category><![CDATA[SQL Server Service Broker]]></category>
		<category><![CDATA[SQL Service Broker]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[ It Seems that there is a lot of problems with SB cleanup? I have SQL 2008 r2 running on two different servers. The target system processes the millions of records in the queues but will not clean out the sys.conversation_endpoints, or the sys.conversation_endpoints tables. This is part of the activation proc that is run on [...]]]></description>
				<content:encoded><![CDATA[<p> It Seems that there is a lot of problems with SB cleanup? I have SQL 2008 r2 running on two different servers. The target system processes the millions of records in the queues but will not clean out the sys.conversation_endpoints, or the sys.conversation_endpoints tables. </p>
<p>This is part of the activation proc that is run on the target server. </p>
<p>BEGIN<br />
    BEGIN TRY<br />
        SET NOCOUNT ON;<br />
        DECLARE @RecvReqDlgHandle UNIQUEIDENTIFIER,  @RecvReqMsg VARBINARY(MAX), @RecvReqMsgName sysname;</p>
<p>        BEGIN TRANSACTION;<br />
            WAITFOR ( RECEIVE TOP(1) @RecvReqDlgHandle = conversation_handle, @RecvReqMsg = message_body, @RecvReqMsgName = message_type_name<br />
            FROM AccountDataQueue), TIMEOUT 1000;<br />
            IF @RecvReqDlgHandle IS NOT NULL AND @RecvReqMsgName = N&#8217;IPGServiceBroker_MT&#8217;<br />
            BEGIN<br />
                DECLARE @SBMsgXML XML = CAST(@RecvReqMsg AS XML);<br />
                EXEC SomeDB.dbo.InserRecordSB @SBMsgXML;<br />
            END<br />
            ELSE IF @RecvReqDlgHandle IS NOT NULL  AND @RecvReqMsgName = &#8216;http://schemas.microsoft.com/SQL/ServiceBroker/EndDialog&#8217;<br />
            BEGIN<br />
                END CONVERSATION @RecvReqDlgHandle<br />
            END</p>
<p>        COMMIT TRANSACTION;<br />
    END TRY<br />
    BEGIN CATCH</p>
<p>Please help</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/sysconversation_endpoints-build-up/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/16 queries in 0.019 seconds using memcached
Object Caching 885/918 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-19 06:04:52 -->