 




<?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 stored procedures</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/sql-server/sql-server-stored-procedures/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>SQL Server Error 7202 Could not find server</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/error-7202-could-not-find-server/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/error-7202-could-not-find-server/#comments</comments>
		<pubDate>Thu, 18 Aug 2011 14:12:17 +0000</pubDate>
		<dc:creator>Jabeam</dc:creator>
				<category><![CDATA[SQL error messages]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server error messages]]></category>
		<category><![CDATA[SQL Server stored procedures]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi all, I am currently running into the following error when run a stored procedure with BEGIN TRANS:  &#8221;Could not find server &#8216;VS-DEVELOPERDEVELOPER_SQL&#8217; in sysservers. Execute sp_addlinkedserver to add the server to sysservers.&#8221; The server shown above is the a local sql server instance that is running the stored procedure and therefore shouldn&#8217;t need to [...]]]></description>
				<content:encoded><![CDATA[<p>Hi all,<br />
I am currently running into the following error when run a stored procedure with BEGIN TRANS:</p>
<div></div>
<div> &#8221;Could not find server &#8216;VS-DEVELOPERDEVELOPER_SQL&#8217; in sysservers. Execute sp_addlinkedserver to add the server to sysservers.&#8221;</div>
<div></div>
<div>The server shown above is the a local sql server instance that is running the stored procedure and therefore shouldn&#8217;t need to be linked. Am I misunderstanding the linked server definition or is there another underlying issue with the stored procedure?</div>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/error-7202-could-not-find-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Thousands and thousands of simultaneous users hitting a sproc &#8212; what do you do?</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/thousands-and-thousands-of-simultaneous-users-hitting-a-sproc-what-do-you-do/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/thousands-and-thousands-of-simultaneous-users-hitting-a-sproc-what-do-you-do/#comments</comments>
		<pubDate>Mon, 14 Feb 2011 00:14:12 +0000</pubDate>
		<dc:creator>Oscarius</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server 2008]]></category>
		<category><![CDATA[SQL Server stored procedures]]></category>
		<category><![CDATA[Stored Procedures]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[folks, i am not a db guy altogether, but I am a developer, and someone had asked me that question, and i got interested in the resolution. Lets say you have 50K users that hit the same stored procedure at the same time. The stored procedure is computation intensive and goes out to lunch for [...]]]></description>
				<content:encoded><![CDATA[<p>folks, i am not a db guy altogether, but I am a developer, and someone had asked me that question, and i got interested in the resolution. Lets say you have 50K users that hit the same stored procedure at the same time. The stored procedure is computation intensive and goes out to lunch for a bunch of seconds for each caller. Am i correct in thinking that the sql server has a certain number of threads that these calls to the sproc are made on &#8212; so if the thread pool size is 100 threads, it means the first 100 callers are entering the procedure, and the rest are blocking? for the sake of argument, lets say there are no record locks inside that sproc &#8212; its all complicated joins and calculations &#8212; what can be done in this case? as a developer, i started thinking that perhaps i should have multiple copies of that database so that i can partition the incoming callers in some round robin fashion? but even if i have 100 databases that are all copies of each other, the number of users/callers is still by far larger than the number of threads available to do the work? From all the reading i have done, the suggestions seem to be of &#8220;tuning&#8221; nature &#8212; meaning i can improve this or that &#8212; but what i need is something &#8220;architectural&#8221; that will show me how to truly scale databases. For example, calling .NET dlls from the sproc will dramatically improve the performance &#8212; but what if the number of users goes up to 100K? 500K? Any white papers, books you can suggest? i am truly looking for the way the &#8220;big boys&#8221; do it &#8212; i need to know that as the number of users goes up and up, i can spend the money, buy new servers, do some DB magic and have a truly scalable solution. thank you<br/><br/> Oh, one more thing.   As a possible solution, i was told that these guys have multiple versions of the same sproc, but under different names and somehow this makes the situation more scalable &#8212; does this make any sense?<br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/thousands-and-thousands-of-simultaneous-users-hitting-a-sproc-what-do-you-do/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Cross-database name change in SQL Server 2008 stored procedures</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/cross-database-name-change-in-stored-procedures/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/cross-database-name-change-in-stored-procedures/#comments</comments>
		<pubDate>Sun, 30 Jan 2011 17:03:03 +0000</pubDate>
		<dc:creator>Rusty2</dc:creator>
				<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[SQL Server 2008 R2]]></category>
		<category><![CDATA[SQL Server stored procedures]]></category>
		<category><![CDATA[Stored Procedures]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi: The easy part is the databases will be on the same server.  However at the moment I am writing code in database SOMEDATABASE_TEST which is accessing objects in SOMEOTHERDATABASE_TEST.  When its time to go to production the names are going to change to SOMEDATABASE and SOMEOTHERDATABASE.  However the queries in SOMEDATABASE_TEST stored procedures read: [...]]]></description>
				<content:encoded><![CDATA[<p>Hi:<br/><br/> The easy part is the databases will be on the same server.  However at the moment I am writing code in database SOMEDATABASE_TEST which is accessing objects in SOMEOTHERDATABASE_TEST.  When its time to go to production the names are going to change to SOMEDATABASE and SOMEOTHERDATABASE.  However the queries in SOMEDATABASE_TEST stored procedures read:<br/><br/> select * from SOMEOTHERDATABASE_TEST.dbo.SOMETABLE<br/><br/> the goal would be to have some variable @@crossdatabasename = SOMEOTHERDATABASE_TEST<br/><br/> then all the calls would look like <br/><br/> select * from @@crossdatabasename.dbo.SOMETABLE<br/><br/> We are using sql server 2008 r2<br/><br/> What is the best way around this?<br/><br/> Thanks<br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/cross-database-name-change-in-stored-procedures/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stored Procedures in SQL Server 2005</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/stored-procedures-in-sql-server-2005/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/stored-procedures-in-sql-server-2005/#comments</comments>
		<pubDate>Thu, 13 Jan 2011 04:53:19 +0000</pubDate>
		<dc:creator>Rajanarina1</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SQL Server stored procedures]]></category>
		<category><![CDATA[SQL stored procedures]]></category>
		<category><![CDATA[Stored Procedures]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Will you please explain me about Stored Procedures in Sql server 2005]]></description>
				<content:encoded><![CDATA[<p>Will you please explain me about Stored Procedures in Sql server 2005</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/stored-procedures-in-sql-server-2005/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Migrating stored procedures from SQL Server 2000 to 2005</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/store-procedures/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/store-procedures/#comments</comments>
		<pubDate>Mon, 03 Jan 2011 16:06:36 +0000</pubDate>
		<dc:creator>Parveshkaur</dc:creator>
				<category><![CDATA[SQL Server 2000]]></category>
		<category><![CDATA[SQL Server 2000 migration]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SQL Server migration]]></category>
		<category><![CDATA[SQL Server stored procedures]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[after migrating store procedures from 2000 to 2005 sql server, how we can check the store procedures are migrated correctly without executing them?]]></description>
				<content:encoded><![CDATA[<p>after migrating store procedures from 2000 to 2005 sql server, how we can check the store procedures are migrated correctly without executing them?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/store-procedures/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SQL Server 2005 procedure to Create stored procedure</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/procedure-to-create-stored-procedure/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/procedure-to-create-stored-procedure/#comments</comments>
		<pubDate>Fri, 10 Dec 2010 11:19:17 +0000</pubDate>
		<dc:creator>Gkhlhlhjhhghgg</dc:creator>
				<category><![CDATA[SQL 2005]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SQL Server stored procedures]]></category>
		<category><![CDATA[SQL stored procedures]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[sir,plz tell me the procedure from strating that how to create stored procedure]]></description>
				<content:encoded><![CDATA[<p>sir,plz tell me the procedure from strating that how to create stored procedure</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/procedure-to-create-stored-procedure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to find particular database in SQL stored procedures other than manually?</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-to-find-particular-database/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/how-to-find-particular-database/#comments</comments>
		<pubDate>Wed, 10 Nov 2010 06:28:20 +0000</pubDate>
		<dc:creator>Sagi</dc:creator>
				<category><![CDATA[SQL Database]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server stored procedures]]></category>
		<category><![CDATA[Stored Procedures]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hi all, i have a Stored Procedure, i need to find the database in which the particular SP is available, i dont want to go through all the SP&#8217;s&#8230;&#8230;&#8230;.. Is there any way to find the database using server name, i need the query for this.. Please help me]]></description>
				<content:encoded><![CDATA[<p>Hi all,<br/><br/> i have a Stored Procedure, i need to find the database in which the particular SP is available, i dont want to go through all the SP&#8217;s&#8230;&#8230;&#8230;.. Is there any way to find the database using server name, i need the query for this.. Please help me<br/><br/></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/how-to-find-particular-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Log of stored procedures run on my SQL 2005 box.</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/log-of-stored-procedures-run-on-my-sql-2005-box/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/log-of-stored-procedures-run-on-my-sql-2005-box/#comments</comments>
		<pubDate>Wed, 15 Sep 2010 17:22:30 +0000</pubDate>
		<dc:creator>Karl Gechlik</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL 2005]]></category>
		<category><![CDATA[SQL Log Files]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SQL Server stored procedures]]></category>
		<category><![CDATA[Stored Procedures]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[How can I tell who ran which stored procedure on our SQL 2005 server and at what time? Can we see if one stored procedure called other stored procedures there as well? Can we enable verbose logging somehow as well for more data?]]></description>
				<content:encoded><![CDATA[<p>How<br />
     can I tell who ran which stored procedure on our SQL 2005 server and at<br />
     what time? Can we see if one stored procedure called other stored<br />
     procedures there as well? Can we enable verbose logging somehow as well<br />
     for more data?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/log-of-stored-procedures-run-on-my-sql-2005-box/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Calling stored procedure in a database to query data in another database</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/calling-stored-procedure-in-a-database-to-query-data-in-another-database/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/calling-stored-procedure-in-a-database-to-query-data-in-another-database/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 15:20:33 +0000</pubDate>
		<dc:creator>Ncs</dc:creator>
				<category><![CDATA[SQL 2005]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Select]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server 2005]]></category>
		<category><![CDATA[SQL Server 2005 administration]]></category>
		<category><![CDATA[SQL Server stored procedures]]></category>
		<category><![CDATA[T-SQL]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Question Edited by Serena3]]></description>
				<content:encoded><![CDATA[Question Edited by Serena3]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/calling-stored-procedure-in-a-database-to-query-data-in-another-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>To write a stored procedure</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/to-write-a-stored-procedure/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/to-write-a-stored-procedure/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 13:49:39 +0000</pubDate>
		<dc:creator>SProcedure</dc:creator>
				<category><![CDATA[Relational databases]]></category>
		<category><![CDATA[SQL Server stored procedures]]></category>
		<category><![CDATA[Stored Procedures]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[there are two tables one ZipCode and one tempTable each has ZipCode and CongDist as columns. Each Zipcode has more than one CongressionalDistrict. How can I write a SP to have a seperate entry for each senario of Zipcode and Congressional District in tmp Table]]></description>
				<content:encoded><![CDATA[<p>there are two tables one ZipCode and one tempTable each has ZipCode and CongDist as columns. Each Zipcode has more than one CongressionalDistrict. How can I write a SP to have a seperate entry for each senario of Zipcode and Congressional District in tmp Table</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/to-write-a-stored-procedure/feed/</wfw:commentRss>
		<slash:comments>4</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/26 queries in 0.029 seconds using memcached
Object Caching 942/1071 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-19 01:16:30 -->