<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;AkIERnY5fyp7ImA9WhRRFE4.&quot;"><id>tag:blogger.com,1999:blog-28422183</id><updated>2011-11-28T05:31:47.827+05:30</updated><category term="list tables" /><category term="varchar" /><category term="Stored Procedure" /><category term="Trigger" /><category term="create table" /><category term="Delete" /><category term="ASP.NET Session" /><category term="ASP.NET" /><category term="Session.SessionID" /><category term="SQL Performance" /><category term="composite key" /><category term="delete table" /><category term="current user" /><category term="current sql user" /><category term="Function" /><category term="Linked Server" /><category term="unicode" /><category term="error codes" /><category term="SET" /><category term="Insert" /><category term="Sub Query" /><category term="database" /><category term="nvarchar" /><category term="Normalization" /><category term="foreign key" /><category term="truncate table" /><category term="Group By" /><category term="primary key" /><category term="page size" /><category term="current user context" /><category term="schema" /><category term="foreign key constraints" /><category term="parameters" /><category term="System table" /><category term="candidate key" /><category term="sql server" /><category term="Select" /><category term="null" /><category term="View" /><category term="bytes" /><category term="Collation" /><category term="Where" /><category term="unique key" /><category term="Having" /><category term="index" /><category term="user defined function" /><category term="Update" /><category term="error" /><category term="primary key constraints" /><category term="DBMS" /><category term="alternate key" /><title>Anuj Rathi</title><subtitle type="html">I love Programming, and Eager to learn New things Curious about Microsoft Products, Interested in Knowledge sharing. If you can dream IT, You can become it, If you can think IT, You can do IT, If you can believe it, you can achieve IT.</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://anujkrathi.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://anujkrathi.blogspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>Anuj Rathi</name><uri>http://www.blogger.com/profile/06352961496721757398</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="30" height="32" src="http://2.bp.blogspot.com/_StlF7-S_GEg/SQ2dnkWc9DI/AAAAAAAAACk/QCHRppv21lU/S220/anujrathi.JPG" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>86</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/AnujRathi" /><feedburner:info uri="anujrathi" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;DUcFR3g7fyp7ImA9Wx5WE0Q.&quot;"><id>tag:blogger.com,1999:blog-28422183.post-1349016435007663672</id><published>2010-09-25T12:13:00.000+05:30</published><updated>2010-09-25T12:13:36.607+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-09-25T12:13:36.607+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="SQL Performance" /><category scheme="http://www.blogger.com/atom/ns#" term="SET" /><category scheme="http://www.blogger.com/atom/ns#" term="Select" /><title>What Is The Difference Between Set And Select</title><link rel="replies" type="application/atom+xml" href="http://anujkrathi.blogspot.com/feeds/1349016435007663672/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=28422183&amp;postID=1349016435007663672&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/1349016435007663672?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/1349016435007663672?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnujRathi/~3/B0lrWkmNI9Q/what-is-difference-between-set-and.html" title="What Is The Difference Between Set And Select" /><author><name>Anuj Rathi</name><uri>http://www.blogger.com/profile/06352961496721757398</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="30" height="32" src="http://2.bp.blogspot.com/_StlF7-S_GEg/SQ2dnkWc9DI/AAAAAAAAACk/QCHRppv21lU/S220/anujrathi.JPG" /></author><thr:total>0</thr:total><content type="html">Here is The Combined answer that i have collected from various articles and experience.

Here is the Difference.
1. SET is the ANSI standard for variable assignment, SELECT is not. 2.You  can use SELECT to assign values to more than one variable at a time.  SET allows you to assign data to only one variable at a time. Here's  how:

/* Declaring variables */
DECLARE @Variable1 AS int, @Variable2 
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/uyH21a_xbGpjrrfbRcbCr3LCOq8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/uyH21a_xbGpjrrfbRcbCr3LCOq8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/uyH21a_xbGpjrrfbRcbCr3LCOq8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/uyH21a_xbGpjrrfbRcbCr3LCOq8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/AnujRathi/~4/B0lrWkmNI9Q" height="1" width="1"/&gt;</content><feedburner:origLink>http://anujkrathi.blogspot.com/2010/09/what-is-difference-between-set-and.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUYEQXwycCp7ImA9WxFXGEs.&quot;"><id>tag:blogger.com,1999:blog-28422183.post-4729068157291139898</id><published>2010-05-26T15:15:00.000+05:30</published><updated>2010-05-26T15:15:00.298+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-05-26T15:15:00.298+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="sql server" /><title>SQL Server Import and Export Wizard</title><link rel="replies" type="application/atom+xml" href="http://anujkrathi.blogspot.com/feeds/4729068157291139898/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=28422183&amp;postID=4729068157291139898&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/4729068157291139898?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/4729068157291139898?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnujRathi/~3/q6hi6OzbHxg/sql-server-import-and-export-wizard.html" title="SQL Server Import and Export Wizard" /><author><name>Anuj Rathi</name><uri>http://www.blogger.com/profile/06352961496721757398</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="30" height="32" src="http://2.bp.blogspot.com/_StlF7-S_GEg/SQ2dnkWc9DI/AAAAAAAAACk/QCHRppv21lU/S220/anujrathi.JPG" /></author><thr:total>0</thr:total><content type="html">Yesterday, I was to Upload very large data. So I opened my Sql Server management studio &amp;amp; tried Import/Export wizard. &amp;amp; Surprise !!,

I was not able to start Import/Export wizard.

The SSIS Data Flow Task could not be created. Verify that DTSPipeline.dll is available and registered. The wizard cannot continue and it will terminate.
ADDITIONAL INFORMATION:
Cannot create a task with the name "STOCK
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/7DvX2FdT2xGFsmEIgCM9wjKhD7c/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7DvX2FdT2xGFsmEIgCM9wjKhD7c/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/7DvX2FdT2xGFsmEIgCM9wjKhD7c/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7DvX2FdT2xGFsmEIgCM9wjKhD7c/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/AnujRathi/~4/q6hi6OzbHxg" height="1" width="1"/&gt;</content><feedburner:origLink>http://anujkrathi.blogspot.com/2010/05/sql-server-import-and-export-wizard.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkUBSX48eyp7ImA9WxBUEEU.&quot;"><id>tag:blogger.com,1999:blog-28422183.post-6989451020781652988</id><published>2010-02-25T14:27:00.000+05:30</published><updated>2010-02-25T14:27:38.073+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-25T14:27:38.073+05:30</app:edited><title>string.IsNullOrWhiteSpace()</title><link rel="replies" type="application/atom+xml" href="http://anujkrathi.blogspot.com/feeds/6989451020781652988/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=28422183&amp;postID=6989451020781652988&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/6989451020781652988?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/6989451020781652988?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnujRathi/~3/N4LtrBp5-eg/stringisnullorwhitespace.html" title="string.IsNullOrWhiteSpace()" /><author><name>Anuj Rathi</name><uri>http://www.blogger.com/profile/06352961496721757398</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="30" height="32" src="http://2.bp.blogspot.com/_StlF7-S_GEg/SQ2dnkWc9DI/AAAAAAAAACk/QCHRppv21lU/S220/anujrathi.JPG" /></author><thr:total>0</thr:total><content type="html">.NET 4 adds new method called string.IsNullOrWhiteSpace() which checks for spaces, empty or null. This is a nice time-saver for developers.. This static method returns true if a string is full of whitespace characters. Let us consider the below example .

static void Main()
{
string strTest = "Simple Talk";
string strNull = null;
string strEmpty = string.Empty;
string strWhiteSpace = "\t\r\n\n ";
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/xZt90fazHwWmg5It0o7XkH87a84/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/xZt90fazHwWmg5It0o7XkH87a84/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/xZt90fazHwWmg5It0o7XkH87a84/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/xZt90fazHwWmg5It0o7XkH87a84/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/AnujRathi/~4/N4LtrBp5-eg" height="1" width="1"/&gt;</content><feedburner:origLink>http://anujkrathi.blogspot.com/2010/02/stringisnullorwhitespace.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkACQ34yeyp7ImA9WxBVFkg.&quot;"><id>tag:blogger.com,1999:blog-28422183.post-7421455264843419630</id><published>2010-02-20T12:56:00.000+05:30</published><updated>2010-02-20T12:56:02.093+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-20T12:56:02.093+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Stored Procedure" /><category scheme="http://www.blogger.com/atom/ns#" term="sql server" /><category scheme="http://www.blogger.com/atom/ns#" term="user defined function" /><title>Stored Procedures vs. User Defined Functions in Microsoft SQL Server</title><link rel="replies" type="application/atom+xml" href="http://anujkrathi.blogspot.com/feeds/7421455264843419630/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=28422183&amp;postID=7421455264843419630&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/7421455264843419630?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/7421455264843419630?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnujRathi/~3/Dzrr-H-5Fa4/stored-procedures-vs-user-defined.html" title="Stored Procedures vs. User Defined Functions in Microsoft SQL Server" /><author><name>Anuj Rathi</name><uri>http://www.blogger.com/profile/06352961496721757398</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="30" height="32" src="http://2.bp.blogspot.com/_StlF7-S_GEg/SQ2dnkWc9DI/AAAAAAAAACk/QCHRppv21lU/S220/anujrathi.JPG" /></author><thr:total>0</thr:total><content type="html">                 SQL Server user-defined functions and stored procedures offer similar functionality. Both allow you to create bundles of SQL statements that are stored on the server for future use. This offers you a tremendous efficiency benefit, as you can save programming time by: 
Reusing code from one program to another, cutting down on program development time.
Hiding the SQL details, 
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/UJjWpAjY2yEwpTs-3uq2xoCRJTE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/UJjWpAjY2yEwpTs-3uq2xoCRJTE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/UJjWpAjY2yEwpTs-3uq2xoCRJTE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/UJjWpAjY2yEwpTs-3uq2xoCRJTE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/AnujRathi/~4/Dzrr-H-5Fa4" height="1" width="1"/&gt;</content><feedburner:origLink>http://anujkrathi.blogspot.com/2010/02/stored-procedures-vs-user-defined.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkMNRXs4eip7ImA9WxBVFkg.&quot;"><id>tag:blogger.com,1999:blog-28422183.post-8896841423801826705</id><published>2010-02-20T12:51:00.000+05:30</published><updated>2010-02-20T12:51:34.532+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-20T12:51:34.532+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Stored Procedure" /><title>Benefits of SQL Server Stored Procedures</title><link rel="replies" type="application/atom+xml" href="http://anujkrathi.blogspot.com/feeds/8896841423801826705/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=28422183&amp;postID=8896841423801826705&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/8896841423801826705?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/8896841423801826705?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnujRathi/~3/nVh_-98pe9g/benefits-of-sql-server-stored.html" title="Benefits of SQL Server Stored Procedures" /><author><name>Anuj Rathi</name><uri>http://www.blogger.com/profile/06352961496721757398</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="30" height="32" src="http://2.bp.blogspot.com/_StlF7-S_GEg/SQ2dnkWc9DI/AAAAAAAAACk/QCHRppv21lU/S220/anujrathi.JPG" /></author><thr:total>0</thr:total><content type="html">Microsoft SQL Server provides the stored procedure mechanism to simplify the database development process by grouping Transact-SQL statements into manageable blocks. 
Benefits of Stored ProceduresWhy should we use stored procedures?  Let's take a look at the key benefits of this technology: Precompiled execution. SQL Server compiles each stored procedure once and then reutilizes the execution 
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/cWyrFBTJgYKP8FDsv9iv9VC8CUc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/cWyrFBTJgYKP8FDsv9iv9VC8CUc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/cWyrFBTJgYKP8FDsv9iv9VC8CUc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/cWyrFBTJgYKP8FDsv9iv9VC8CUc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/AnujRathi/~4/nVh_-98pe9g" height="1" width="1"/&gt;</content><feedburner:origLink>http://anujkrathi.blogspot.com/2010/02/benefits-of-sql-server-stored.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0QHRXkycSp7ImA9WxBWEUU.&quot;"><id>tag:blogger.com,1999:blog-28422183.post-8182927805295962485</id><published>2010-02-03T12:45:00.000+05:30</published><updated>2010-02-03T12:45:34.799+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-02-03T12:45:34.799+05:30</app:edited><title>List all Constraints in Sql Server</title><link rel="replies" type="application/atom+xml" href="http://anujkrathi.blogspot.com/feeds/8182927805295962485/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=28422183&amp;postID=8182927805295962485&amp;isPopup=true" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/8182927805295962485?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/8182927805295962485?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnujRathi/~3/PHxwJuICqug/list-all-constraints-in-sql-server.html" title="List all Constraints in Sql Server" /><author><name>Anuj Rathi</name><uri>http://www.blogger.com/profile/06352961496721757398</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="30" height="32" src="http://2.bp.blogspot.com/_StlF7-S_GEg/SQ2dnkWc9DI/AAAAAAAAACk/QCHRppv21lU/S220/anujrathi.JPG" /></author><thr:total>1</thr:total><content type="html">Hi All,
          Yesterday, I was facing a problem. Actually I was to rename all the constraints as our Standards. When I create tables in query analyzer, Sql Server create Constraints name itself. Now, I have to change all constraints according to naming conventions. This is the below script by which I get all the constraints in my database.


SELECT OBJECT_NAME(OBJECT_ID) AS ConstraintName, 
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/jSua6RZhvxFNnY22vuTZCiv8ZnI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jSua6RZhvxFNnY22vuTZCiv8ZnI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/jSua6RZhvxFNnY22vuTZCiv8ZnI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jSua6RZhvxFNnY22vuTZCiv8ZnI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/AnujRathi/~4/PHxwJuICqug" height="1" width="1"/&gt;</content><feedburner:origLink>http://anujkrathi.blogspot.com/2010/02/list-all-constraints-in-sql-server.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0QHQH8_eyp7ImA9WxBQGE8.&quot;"><id>tag:blogger.com,1999:blog-28422183.post-328505608382295261</id><published>2010-01-18T21:12:00.000+05:30</published><updated>2010-01-18T21:12:11.143+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-18T21:12:11.143+05:30</app:edited><title>Find all dependent objects of an Object</title><link rel="replies" type="application/atom+xml" href="http://anujkrathi.blogspot.com/feeds/328505608382295261/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=28422183&amp;postID=328505608382295261&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/328505608382295261?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/328505608382295261?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnujRathi/~3/fRiWtWTs_7M/find-all-dependent-objects-of-object.html" title="Find all dependent objects of an Object" /><author><name>Anuj Rathi</name><uri>http://www.blogger.com/profile/06352961496721757398</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="30" height="32" src="http://2.bp.blogspot.com/_StlF7-S_GEg/SQ2dnkWc9DI/AAAAAAAAACk/QCHRppv21lU/S220/anujrathi.JPG" /></author><thr:total>0</thr:total><content type="html">You can use this system Stored Procedure to find the all dependencies of an Object.

EXEC sp_depends @objname = N'StoredProcedureName' ;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/7u-idqD9VRSp57FsX3dTDaZn5oc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7u-idqD9VRSp57FsX3dTDaZn5oc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/7u-idqD9VRSp57FsX3dTDaZn5oc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7u-idqD9VRSp57FsX3dTDaZn5oc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/AnujRathi/~4/fRiWtWTs_7M" height="1" width="1"/&gt;</content><feedburner:origLink>http://anujkrathi.blogspot.com/2010/01/find-all-dependent-objects-of-object.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ak4HSXw7eyp7ImA9WxBQGEw.&quot;"><id>tag:blogger.com,1999:blog-28422183.post-393952880789031324</id><published>2010-01-18T18:18:00.000+05:30</published><updated>2010-01-18T18:18:58.203+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-18T18:18:58.203+05:30</app:edited><title>How to check the SQL Server Varsion, Name &amp; Edition</title><link rel="replies" type="application/atom+xml" href="http://anujkrathi.blogspot.com/feeds/393952880789031324/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=28422183&amp;postID=393952880789031324&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/393952880789031324?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/393952880789031324?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnujRathi/~3/E4Z6Wk8Avr4/how-to-check-sql-server-varsion-name.html" title="How to check the SQL Server Varsion, Name &amp; Edition" /><author><name>Anuj Rathi</name><uri>http://www.blogger.com/profile/06352961496721757398</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="30" height="32" src="http://2.bp.blogspot.com/_StlF7-S_GEg/SQ2dnkWc9DI/AAAAAAAAACk/QCHRppv21lU/S220/anujrathi.JPG" /></author><thr:total>0</thr:total><content type="html">WE can see the Sql Server Name, version, edition etc using below query:

SELECT @@SERVERNAME ,  SERVERPROPERTY('productversion'),  SERVERPROPERTY ('productlevel'),  SERVERPROPERTY ('edition')
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/JTk_2YjiZWrwE145nBItpkx7BMg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/JTk_2YjiZWrwE145nBItpkx7BMg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/JTk_2YjiZWrwE145nBItpkx7BMg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/JTk_2YjiZWrwE145nBItpkx7BMg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/AnujRathi/~4/E4Z6Wk8Avr4" height="1" width="1"/&gt;</content><feedburner:origLink>http://anujkrathi.blogspot.com/2010/01/how-to-check-sql-server-varsion-name.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEMFQ385fSp7ImA9WxBQFEo.&quot;"><id>tag:blogger.com,1999:blog-28422183.post-7567778101851371712</id><published>2010-01-14T18:03:00.000+05:30</published><updated>2010-01-14T18:03:32.125+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-14T18:03:32.125+05:30</app:edited><title>View all Database File Sizes</title><link rel="replies" type="application/atom+xml" href="http://anujkrathi.blogspot.com/feeds/7567778101851371712/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=28422183&amp;postID=7567778101851371712&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/7567778101851371712?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/7567778101851371712?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnujRathi/~3/7ZgNEtQ73v4/view-all-database-file-sizes.html" title="View all Database File Sizes" /><author><name>Anuj Rathi</name><uri>http://www.blogger.com/profile/06352961496721757398</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="30" height="32" src="http://2.bp.blogspot.com/_StlF7-S_GEg/SQ2dnkWc9DI/AAAAAAAAACk/QCHRppv21lU/S220/anujrathi.JPG" /></author><thr:total>0</thr:total><content type="html">SELECT s_mf.[name], s_mf.physical_name, s_mf.[size]/128 AS SizeInMB, s_mf.max_size/128 AS MaxSizeInMB, s_mf.growthFROM sys.master_files s_mfORDER BY s_mf.[size] DESC
Above query will return Database Name, its physical path &amp;amp; database files size in MB.
Happy Coding !!
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/4uywdOwW3pgA95UmHmCoAFAlNvk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/4uywdOwW3pgA95UmHmCoAFAlNvk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/4uywdOwW3pgA95UmHmCoAFAlNvk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/4uywdOwW3pgA95UmHmCoAFAlNvk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/AnujRathi/~4/7ZgNEtQ73v4" height="1" width="1"/&gt;</content><feedburner:origLink>http://anujkrathi.blogspot.com/2010/01/view-all-database-file-sizes.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUMGQnkyeip7ImA9WxBQE0Q.&quot;"><id>tag:blogger.com,1999:blog-28422183.post-4866538256103990395</id><published>2010-01-13T21:13:00.000+05:30</published><updated>2010-01-13T21:13:43.792+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-13T21:13:43.792+05:30</app:edited><title>How to Encrypt Stored procedures in Sql Server</title><link rel="replies" type="application/atom+xml" href="http://anujkrathi.blogspot.com/feeds/4866538256103990395/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=28422183&amp;postID=4866538256103990395&amp;isPopup=true" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/4866538256103990395?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/4866538256103990395?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnujRathi/~3/_tdOC7EeMzQ/how-to-encrypt-stored-procedures-in-sql.html" title="How to Encrypt Stored procedures in Sql Server" /><author><name>Anuj Rathi</name><uri>http://www.blogger.com/profile/06352961496721757398</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="30" height="32" src="http://2.bp.blogspot.com/_StlF7-S_GEg/SQ2dnkWc9DI/AAAAAAAAACk/QCHRppv21lU/S220/anujrathi.JPG" /></author><thr:total>1</thr:total><content type="html">At times, it is needed that you encrypt the text of stored procedures containing sensitive information. SQL Server provides the WITH ENCRYPTION to encrypt the text of the stored procedure.

CREATE procedure [dbo].[TestProc]
WITH ENCRYPTION
AS
BEGIN
SELECT 'TEST' as TestColumn
END

Once the stored procedure has been created WITH ENCRYPTION, attempts to view the stored procedure returns a message 
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/2UiKhnEmIfbcoEMhectzsh8Aszk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/2UiKhnEmIfbcoEMhectzsh8Aszk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/2UiKhnEmIfbcoEMhectzsh8Aszk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/2UiKhnEmIfbcoEMhectzsh8Aszk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/AnujRathi/~4/_tdOC7EeMzQ" height="1" width="1"/&gt;</content><feedburner:origLink>http://anujkrathi.blogspot.com/2010/01/how-to-encrypt-stored-procedures-in-sql.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0YERHY9cSp7ImA9WxBSEk8.&quot;"><id>tag:blogger.com,1999:blog-28422183.post-7033849981542776563</id><published>2009-12-19T16:41:00.000+05:30</published><updated>2009-12-19T16:41:45.869+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-12-19T16:41:45.869+05:30</app:edited><title>ASP.NET Session State Management Using SQL Server</title><link rel="replies" type="application/atom+xml" href="http://anujkrathi.blogspot.com/feeds/7033849981542776563/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=28422183&amp;postID=7033849981542776563&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/7033849981542776563?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/7033849981542776563?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnujRathi/~3/gkg9oFMqPSo/aspnet-session-state-management-using.html" title="ASP.NET Session State Management Using SQL Server" /><author><name>Anuj Rathi</name><uri>http://www.blogger.com/profile/06352961496721757398</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="30" height="32" src="http://2.bp.blogspot.com/_StlF7-S_GEg/SQ2dnkWc9DI/AAAAAAAAACk/QCHRppv21lU/S220/anujrathi.JPG" /></author><thr:total>0</thr:total><content type="html">Web applications are by nature stateless. Statelessness is both an advantage and a disadvantage. When resources are not being consumed by maintaining connections and state, scalability is tremendously improved. But the lack of state reduces functionality severely. Ecommerce applications require state to be maintained as the user navigates from page to page. ASP.NET’s Session object makes it easy 
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/AQlMsRzJHGolZxs2Fuu_OgYB0Dw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/AQlMsRzJHGolZxs2Fuu_OgYB0Dw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/AQlMsRzJHGolZxs2Fuu_OgYB0Dw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/AQlMsRzJHGolZxs2Fuu_OgYB0Dw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/AnujRathi/~4/gkg9oFMqPSo" height="1" width="1"/&gt;</content><feedburner:origLink>http://anujkrathi.blogspot.com/2009/12/aspnet-session-state-management-using.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Dk8CRn46fip7ImA9WxBSEkw.&quot;"><id>tag:blogger.com,1999:blog-28422183.post-8834176791024319434</id><published>2009-12-19T14:56:00.001+05:30</published><updated>2009-12-19T14:57:47.016+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-12-19T14:57:47.016+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET" /><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET Session" /><category scheme="http://www.blogger.com/atom/ns#" term="Session.SessionID" /><title>Session.SessionID is not unique</title><link rel="replies" type="application/atom+xml" href="http://anujkrathi.blogspot.com/feeds/8834176791024319434/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=28422183&amp;postID=8834176791024319434&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/8834176791024319434?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/8834176791024319434?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnujRathi/~3/ccX2yuZHBJs/sessionsessionid-is-not-unique.html" title="Session.SessionID is not unique" /><author><name>Anuj Rathi</name><uri>http://www.blogger.com/profile/06352961496721757398</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="30" height="32" src="http://2.bp.blogspot.com/_StlF7-S_GEg/SQ2dnkWc9DI/AAAAAAAAACk/QCHRppv21lU/S220/anujrathi.JPG" /></author><thr:total>0</thr:total><content type="html">I have seen many forums in which users are asking that Session.SessionID is not unique. You also have seen forums saying that “I am getting different value for SessionID on every page or in each post back.” Yes they are correct !!!! “This is not possible. How can it be?”, I know this is your reaction. We have read in all the books and seen practically that SessionID is unique, until user logs off
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/O-gKGFyqBXp2vJZRMDFczr8hSOo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/O-gKGFyqBXp2vJZRMDFczr8hSOo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/O-gKGFyqBXp2vJZRMDFczr8hSOo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/O-gKGFyqBXp2vJZRMDFczr8hSOo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/AnujRathi/~4/ccX2yuZHBJs" height="1" width="1"/&gt;</content><feedburner:origLink>http://anujkrathi.blogspot.com/2009/12/sessionsessionid-is-not-unique.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkAASXk-eCp7ImA9WxNaE08.&quot;"><id>tag:blogger.com,1999:blog-28422183.post-6641178441349345521</id><published>2009-11-27T16:49:00.000+05:30</published><updated>2009-11-27T16:49:08.750+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-27T16:49:08.750+05:30</app:edited><title>Select Database Schema Name with their Owner Name</title><link rel="replies" type="application/atom+xml" href="http://anujkrathi.blogspot.com/feeds/6641178441349345521/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=28422183&amp;postID=6641178441349345521&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/6641178441349345521?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/6641178441349345521?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnujRathi/~3/344UClYFWwo/select-database-schema-name-with-their.html" title="Select Database Schema Name with their Owner Name" /><author><name>Anuj Rathi</name><uri>http://www.blogger.com/profile/06352961496721757398</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="30" height="32" src="http://2.bp.blogspot.com/_StlF7-S_GEg/SQ2dnkWc9DI/AAAAAAAAACk/QCHRppv21lU/S220/anujrathi.JPG" /></author><thr:total>0</thr:total><content type="html">SELECT s.[name], s.[schema_id], aa.CATALOG_NAME, aa.SCHEMA_OWNER
  FROM sys.schemas s
JOIN INFORMATION_SCHEMA.SCHEMATA aa ON aa.[SCHEMA_NAME] = s.[name]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/PPXI35P2MXshOgcGoSejIpvZx54/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PPXI35P2MXshOgcGoSejIpvZx54/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/PPXI35P2MXshOgcGoSejIpvZx54/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PPXI35P2MXshOgcGoSejIpvZx54/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/AnujRathi/~4/344UClYFWwo" height="1" width="1"/&gt;</content><feedburner:origLink>http://anujkrathi.blogspot.com/2009/11/select-database-schema-name-with-their.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0YCSHg4fip7ImA9WxNaEUk.&quot;"><id>tag:blogger.com,1999:blog-28422183.post-7830105958957335405</id><published>2009-11-25T16:02:00.000+05:30</published><updated>2009-11-25T16:02:49.636+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-11-25T16:02:49.636+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="sql server" /><category scheme="http://www.blogger.com/atom/ns#" term="error codes" /><category scheme="http://www.blogger.com/atom/ns#" term="error" /><title>List all Error Codes with description</title><link rel="replies" type="application/atom+xml" href="http://anujkrathi.blogspot.com/feeds/7830105958957335405/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=28422183&amp;postID=7830105958957335405&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/7830105958957335405?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/7830105958957335405?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnujRathi/~3/xlGqOnAkQI0/list-all-error-codes-with-description.html" title="List all Error Codes with description" /><author><name>Anuj Rathi</name><uri>http://www.blogger.com/profile/06352961496721757398</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="30" height="32" src="http://2.bp.blogspot.com/_StlF7-S_GEg/SQ2dnkWc9DI/AAAAAAAAACk/QCHRppv21lU/S220/anujrathi.JPG" /></author><thr:total>0</thr:total><content type="html">Recently, I was facing some problem to check the proper error code in my procedure.
Thanks to Sql Server 2005. It gives a great user friendly Schema &amp;amp; System table names.
So This is the query by which we can see all the Error Codes,

SELECT s.[error], s.severity, s.dlevel, s.[description], s.msglangid
FROM sys.sysmessages s

Now, I can use Try-Catch block in sq l server 2005 &amp;amp; can raise 
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/24JdNzBk5HiMBZ8rsXFxUwfiRcg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/24JdNzBk5HiMBZ8rsXFxUwfiRcg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/24JdNzBk5HiMBZ8rsXFxUwfiRcg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/24JdNzBk5HiMBZ8rsXFxUwfiRcg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/AnujRathi/~4/xlGqOnAkQI0" height="1" width="1"/&gt;</content><feedburner:origLink>http://anujkrathi.blogspot.com/2009/11/list-all-error-codes-with-description.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0AMQHYzcCp7ImA9WxNVGEU.&quot;"><id>tag:blogger.com,1999:blog-28422183.post-1500101698754759951</id><published>2009-10-30T12:25:00.000+05:30</published><updated>2009-10-30T12:26:21.888+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-30T12:26:21.888+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="parameters" /><category scheme="http://www.blogger.com/atom/ns#" term="Stored Procedure" /><category scheme="http://www.blogger.com/atom/ns#" term="current sql user" /><title>Select all Stored Procedures with their parameters</title><link rel="replies" type="application/atom+xml" href="http://anujkrathi.blogspot.com/feeds/1500101698754759951/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=28422183&amp;postID=1500101698754759951&amp;isPopup=true" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/1500101698754759951?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/1500101698754759951?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnujRathi/~3/czUFy3b1bzo/select-all-stored-procedures-with-their.html" title="Select all Stored Procedures with their parameters" /><author><name>Anuj Rathi</name><uri>http://www.blogger.com/profile/06352961496721757398</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="30" height="32" src="http://2.bp.blogspot.com/_StlF7-S_GEg/SQ2dnkWc9DI/AAAAAAAAACk/QCHRppv21lU/S220/anujrathi.JPG" /></author><thr:total>1</thr:total><content type="html">SELECT s.[name], s2.[name], s2.type, s2.length, s2.colorder, s3.[name] FROM sysobjects sLEFT JOIN syscolumns s2 ON s.id = s2.idLEFT JOIN systypes s3 ON s3.[xusertype] = s2.xusertypeWHERE s.[type] = 'P' AND s.category = 0 ORDER BY s.[name], s2.colorder
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/zjIXmFOkcX2l6JreOMBgW-tJfUE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zjIXmFOkcX2l6JreOMBgW-tJfUE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/zjIXmFOkcX2l6JreOMBgW-tJfUE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zjIXmFOkcX2l6JreOMBgW-tJfUE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/AnujRathi/~4/czUFy3b1bzo" height="1" width="1"/&gt;</content><feedburner:origLink>http://anujkrathi.blogspot.com/2009/10/select-all-stored-procedures-with-their.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkAEQ307eSp7ImA9WxNXGE4.&quot;"><id>tag:blogger.com,1999:blog-28422183.post-6772824748758905626</id><published>2009-10-06T19:44:00.002+05:30</published><updated>2009-10-06T19:48:22.301+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-06T19:48:22.301+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="current user" /><category scheme="http://www.blogger.com/atom/ns#" term="current user context" /><category scheme="http://www.blogger.com/atom/ns#" term="sql server" /><title>Get Current User – Get Logged In User in sql server 2005</title><link rel="replies" type="application/atom+xml" href="http://anujkrathi.blogspot.com/feeds/6772824748758905626/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=28422183&amp;postID=6772824748758905626&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/6772824748758905626?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/6772824748758905626?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnujRathi/~3/74kWQKMA44k/get-current-user-get-logged-in-user-in.html" title="Get Current User – Get Logged In User in sql server 2005" /><author><name>Anuj Rathi</name><uri>http://www.blogger.com/profile/06352961496721757398</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="30" height="32" src="http://2.bp.blogspot.com/_StlF7-S_GEg/SQ2dnkWc9DI/AAAAAAAAACk/QCHRppv21lU/S220/anujrathi.JPG" /></author><thr:total>0</thr:total><content type="html">To get current user run following script in Query EditorSELECT SYSTEM_USERSYSTEM_USER will return current user. From Book On-Line – SYSTEM_USER returns the name of the currently executing context. If the EXECUTE AS statement has been used to switch context, SYSTEM_USER returns the name of the impersonated context.Alternatively we can also use:SELECT SUSER_SNAME()
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/aUx95o-htwmzLYyoD_jkqR15Md8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/aUx95o-htwmzLYyoD_jkqR15Md8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/aUx95o-htwmzLYyoD_jkqR15Md8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/aUx95o-htwmzLYyoD_jkqR15Md8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/AnujRathi/~4/74kWQKMA44k" height="1" width="1"/&gt;</content><feedburner:origLink>http://anujkrathi.blogspot.com/2009/10/get-current-user-get-logged-in-user-in.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0MBRH0zcSp7ImA9WxNXGE4.&quot;"><id>tag:blogger.com,1999:blog-28422183.post-88455918827082827</id><published>2009-10-06T13:48:00.001+05:30</published><updated>2009-10-06T17:47:35.389+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-06T17:47:35.389+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="primary key constraints" /><category scheme="http://www.blogger.com/atom/ns#" term="foreign key" /><category scheme="http://www.blogger.com/atom/ns#" term="sql server" /><category scheme="http://www.blogger.com/atom/ns#" term="System table" /><category scheme="http://www.blogger.com/atom/ns#" term="primary key" /><category scheme="http://www.blogger.com/atom/ns#" term="foreign key constraints" /><title>Find Tables With Foreign Key Constraint in Database</title><link rel="replies" type="application/atom+xml" href="http://anujkrathi.blogspot.com/feeds/88455918827082827/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=28422183&amp;postID=88455918827082827&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/88455918827082827?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/88455918827082827?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnujRathi/~3/Qlumw2EGs2M/find-tables-with-foreign-key-constraint.html" title="Find Tables With Foreign Key Constraint in Database" /><author><name>Anuj Rathi</name><uri>http://www.blogger.com/profile/06352961496721757398</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="30" height="32" src="http://2.bp.blogspot.com/_StlF7-S_GEg/SQ2dnkWc9DI/AAAAAAAAACk/QCHRppv21lU/S220/anujrathi.JPG" /></author><thr:total>0</thr:total><content type="html">SELECTK_Table = FK.TABLE_NAME,FK_Column = CU.COLUMN_NAME,PK_Table = PK.TABLE_NAME,PK_Column = PT.COLUMN_NAME,Constraint_Name = C.CONSTRAINT_NAMEFROM INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS CINNER JOIN INFORMATION_SCHEMA.TABLE_CONSTRAINTS FK ON C.CONSTRAINT_NAME = FK.CONSTRAINT_NAMEINNER JOIN INFORMATION_SCHEMA.TABLE_CONSTRAINTS PK ON C.UNIQUE_CONSTRAINT_NAME = PK.CONSTRAINT_NAMEINNER JOIN 
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Lbbm6HbzDR2L6hSOhsFKi0PBV3M/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Lbbm6HbzDR2L6hSOhsFKi0PBV3M/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Lbbm6HbzDR2L6hSOhsFKi0PBV3M/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Lbbm6HbzDR2L6hSOhsFKi0PBV3M/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/AnujRathi/~4/Qlumw2EGs2M" height="1" width="1"/&gt;</content><feedburner:origLink>http://anujkrathi.blogspot.com/2009/10/find-tables-with-foreign-key-constraint.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUYGQH09fSp7ImA9WxNXGEw.&quot;"><id>tag:blogger.com,1999:blog-28422183.post-5967914203145688104</id><published>2009-10-06T13:38:00.000+05:30</published><updated>2009-10-06T13:48:41.365+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-06T13:48:41.365+05:30</app:edited><title>show the parameters for a function or stored procedure</title><link rel="replies" type="application/atom+xml" href="http://anujkrathi.blogspot.com/feeds/5967914203145688104/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=28422183&amp;postID=5967914203145688104&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/5967914203145688104?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/5967914203145688104?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnujRathi/~3/UrtKh4Vfo9A/show-parameters-for-function-or-stored.html" title="show the parameters for a function or stored procedure" /><author><name>Anuj Rathi</name><uri>http://www.blogger.com/profile/06352961496721757398</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="30" height="32" src="http://2.bp.blogspot.com/_StlF7-S_GEg/SQ2dnkWc9DI/AAAAAAAAACk/QCHRppv21lU/S220/anujrathi.JPG" /></author><thr:total>0</thr:total><content type="html">SELECT PARAMETER_NAME, DATA_TYPE, CHARACTER_MAXIMUM_LENGTHFROM INFORMATION_SCHEMA.PARAMETERSWHERE SPECIFIC_NAME='Procedurename'
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/n9XOomQzzIWclOxFqIJ4c3ZhFu4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/n9XOomQzzIWclOxFqIJ4c3ZhFu4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/n9XOomQzzIWclOxFqIJ4c3ZhFu4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/n9XOomQzzIWclOxFqIJ4c3ZhFu4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/AnujRathi/~4/UrtKh4Vfo9A" height="1" width="1"/&gt;</content><feedburner:origLink>http://anujkrathi.blogspot.com/2009/10/show-parameters-for-function-or-stored.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEIGQnk-eSp7ImA9WxNXGEw.&quot;"><id>tag:blogger.com,1999:blog-28422183.post-5727148344036177500</id><published>2009-10-06T13:36:00.001+05:30</published><updated>2009-10-06T13:38:43.751+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-06T13:38:43.751+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="sql server" /><category scheme="http://www.blogger.com/atom/ns#" term="schema" /><category scheme="http://www.blogger.com/atom/ns#" term="list tables" /><title>List Schema Name and Table Name for Database</title><link rel="replies" type="application/atom+xml" href="http://anujkrathi.blogspot.com/feeds/5727148344036177500/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=28422183&amp;postID=5727148344036177500&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/5727148344036177500?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/5727148344036177500?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnujRathi/~3/eXPe7BrFPnM/list-schema-name-and-table-name-for.html" title="List Schema Name and Table Name for Database" /><author><name>Anuj Rathi</name><uri>http://www.blogger.com/profile/06352961496721757398</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="30" height="32" src="http://2.bp.blogspot.com/_StlF7-S_GEg/SQ2dnkWc9DI/AAAAAAAAACk/QCHRppv21lU/S220/anujrathi.JPG" /></author><thr:total>0</thr:total><content type="html">SELECT  '['+SCHEMA_NAME(schema_id)+'].['+name+']'AS SchemaTableFROM sys.tables
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/3lR5o23-XStweEzGEd_5y3CnyfY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3lR5o23-XStweEzGEd_5y3CnyfY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/3lR5o23-XStweEzGEd_5y3CnyfY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3lR5o23-XStweEzGEd_5y3CnyfY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/AnujRathi/~4/eXPe7BrFPnM" height="1" width="1"/&gt;</content><feedburner:origLink>http://anujkrathi.blogspot.com/2009/10/list-schema-name-and-table-name-for.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkQESXY8fyp7ImA9WxNXF0k.&quot;"><id>tag:blogger.com,1999:blog-28422183.post-1528295430042692610</id><published>2009-10-05T18:37:00.002+05:30</published><updated>2009-10-05T18:41:48.877+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-05T18:41:48.877+05:30</app:edited><title>Execute permissions to db_executor Role</title><link rel="replies" type="application/atom+xml" href="http://anujkrathi.blogspot.com/feeds/1528295430042692610/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=28422183&amp;postID=1528295430042692610&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/1528295430042692610?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/1528295430042692610?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnujRathi/~3/0ESgsaISMOA/execute-permissions-to-dbexecutor-role.html" title="Execute permissions to db_executor Role" /><author><name>Anuj Rathi</name><uri>http://www.blogger.com/profile/06352961496721757398</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="30" height="32" src="http://2.bp.blogspot.com/_StlF7-S_GEg/SQ2dnkWc9DI/AAAAAAAAACk/QCHRppv21lU/S220/anujrathi.JPG" /></author><thr:total>0</thr:total><content type="html">Giving users access to only stored procedure execute permissions is a common issue. It is a good security practice. In 2005, we can grant excecute permissions at the database level instead of having to do it on each and every stored procedure, which was a pain. So now people do this:CREATE ROLE db_executorGRANT EXECUTE TO db_executorBut I would definitely say that granting at the database level 
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/aVJ6ywSh7FOvWXnfo25bncQ588o/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/aVJ6ywSh7FOvWXnfo25bncQ588o/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/aVJ6ywSh7FOvWXnfo25bncQ588o/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/aVJ6ywSh7FOvWXnfo25bncQ588o/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/AnujRathi/~4/0ESgsaISMOA" height="1" width="1"/&gt;</content><feedburner:origLink>http://anujkrathi.blogspot.com/2009/10/execute-permissions-to-dbexecutor-role.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0AESH0yfSp7ImA9WxNQGUk.&quot;"><id>tag:blogger.com,1999:blog-28422183.post-1912196417735150982</id><published>2009-09-26T11:09:00.003+05:30</published><updated>2009-09-26T11:45:09.395+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-26T11:45:09.395+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="sql server" /><category scheme="http://www.blogger.com/atom/ns#" term="unicode" /><category scheme="http://www.blogger.com/atom/ns#" term="nvarchar" /><category scheme="http://www.blogger.com/atom/ns#" term="varchar" /><title>Difference between Varchar &amp; Nvarchar in Sqlserver</title><link rel="replies" type="application/atom+xml" href="http://anujkrathi.blogspot.com/feeds/1912196417735150982/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=28422183&amp;postID=1912196417735150982&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/1912196417735150982?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/1912196417735150982?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnujRathi/~3/5tNBDlFQ4Qc/difference-between-varchar-nvarchar-in.html" title="Difference between Varchar &amp; Nvarchar in Sqlserver" /><author><name>Anuj Rathi</name><uri>http://www.blogger.com/profile/06352961496721757398</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="30" height="32" src="http://2.bp.blogspot.com/_StlF7-S_GEg/SQ2dnkWc9DI/AAAAAAAAACk/QCHRppv21lU/S220/anujrathi.JPG" /></author><thr:total>0</thr:total><content type="html">Varchar means Variable-length Character string.Nvarchar will store Unicode characters.Both will be used all most for the same purpose but with little difference.Varchar will store the 8-bit data in database where as Nvarchar will be stored as 16-bit data in Database.In Sql server 2005The size for a table page is 8,196 bytes, and no one row in a table can be more than 8,060 characters.This in turn
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Xp5odvACjYO3xV1nO_4uX31UQIM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Xp5odvACjYO3xV1nO_4uX31UQIM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Xp5odvACjYO3xV1nO_4uX31UQIM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Xp5odvACjYO3xV1nO_4uX31UQIM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/AnujRathi/~4/5tNBDlFQ4Qc" height="1" width="1"/&gt;</content><feedburner:origLink>http://anujkrathi.blogspot.com/2009/09/difference-between-varchar-nvarchar-in.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUQASH0zeSp7ImA9WxNQGUk.&quot;"><id>tag:blogger.com,1999:blog-28422183.post-2726993724381531077</id><published>2009-09-26T10:43:00.001+05:30</published><updated>2009-09-26T11:05:49.381+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-26T11:05:49.381+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="sql server" /><category scheme="http://www.blogger.com/atom/ns#" term="schema" /><category scheme="http://www.blogger.com/atom/ns#" term="create table" /><title>Create Table dynamically in sql server</title><link rel="replies" type="application/atom+xml" href="http://anujkrathi.blogspot.com/feeds/2726993724381531077/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=28422183&amp;postID=2726993724381531077&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/2726993724381531077?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/2726993724381531077?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnujRathi/~3/pq-o_meggFk/create-table-dynamically-in-sql-server.html" title="Create Table dynamically in sql server" /><author><name>Anuj Rathi</name><uri>http://www.blogger.com/profile/06352961496721757398</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="30" height="32" src="http://2.bp.blogspot.com/_StlF7-S_GEg/SQ2dnkWc9DI/AAAAAAAAACk/QCHRppv21lU/S220/anujrathi.JPG" /></author><thr:total>0</thr:total><content type="html">I'd like to create a stored procedure that takes the name of table as a parameter, and then creates that table, if it doesn't exist, according to a schema stored somewhere.Is that possible-- Can I store a schema and use is as a template to create tables from? Or must I hard-code the CREATE TABLE and its scheme in the stored procedure itself?The idea here is to be able to change the schema without
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/2sD5aQx81ngS7RshXmVdUk8C1jM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/2sD5aQx81ngS7RshXmVdUk8C1jM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/2sD5aQx81ngS7RshXmVdUk8C1jM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/2sD5aQx81ngS7RshXmVdUk8C1jM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/AnujRathi/~4/pq-o_meggFk" height="1" width="1"/&gt;</content><feedburner:origLink>http://anujkrathi.blogspot.com/2009/09/create-table-dynamically-in-sql-server.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkIDRXk-cCp7ImA9WxNQEEQ.&quot;"><id>tag:blogger.com,1999:blog-28422183.post-5921933439927543635</id><published>2009-09-11T15:28:00.003+05:30</published><updated>2009-09-16T15:19:34.758+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-16T15:19:34.758+05:30</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="sql server" /><category scheme="http://www.blogger.com/atom/ns#" term="System table" /><category scheme="http://www.blogger.com/atom/ns#" term="current sql user" /><title>Find Current User Information</title><link rel="replies" type="application/atom+xml" href="http://anujkrathi.blogspot.com/feeds/5921933439927543635/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=28422183&amp;postID=5921933439927543635&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/5921933439927543635?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/5921933439927543635?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnujRathi/~3/WxLxOJD7yK0/find-current-user-information.html" title="Find Current User Information" /><author><name>Anuj Rathi</name><uri>http://www.blogger.com/profile/06352961496721757398</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="30" height="32" src="http://2.bp.blogspot.com/_StlF7-S_GEg/SQ2dnkWc9DI/AAAAAAAAACk/QCHRppv21lU/S220/anujrathi.JPG" /></author><thr:total>0</thr:total><content type="html">SELECT spid, uid=rtrim(loginame), Program_name=rtrim(Program_name),dbname=db_name(dbid), status=rtrim(status) FROM master.dbo.sysprocesses WHERE loginame = 'UserName';You can also use sp_who command to see all users associated with current database.
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/yraVLe_NR533FRslTn9jWJiI9XA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/yraVLe_NR533FRslTn9jWJiI9XA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/yraVLe_NR533FRslTn9jWJiI9XA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/yraVLe_NR533FRslTn9jWJiI9XA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/AnujRathi/~4/WxLxOJD7yK0" height="1" width="1"/&gt;</content><feedburner:origLink>http://anujkrathi.blogspot.com/2009/09/find-current-user-information.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUcMRX86eip7ImA9WxNRFks.&quot;"><id>tag:blogger.com,1999:blog-28422183.post-6416471471164291760</id><published>2009-09-11T15:27:00.000+05:30</published><updated>2009-09-11T15:28:04.112+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-11T15:28:04.112+05:30</app:edited><title>Retrieve and Upload data From ExcelWorkbook</title><link rel="replies" type="application/atom+xml" href="http://anujkrathi.blogspot.com/feeds/6416471471164291760/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=28422183&amp;postID=6416471471164291760&amp;isPopup=true" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/6416471471164291760?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/6416471471164291760?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnujRathi/~3/X8s5TBt-W1Q/retrieve-and-upload-data-from.html" title="Retrieve and Upload data From ExcelWorkbook" /><author><name>Anuj Rathi</name><uri>http://www.blogger.com/profile/06352961496721757398</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="30" height="32" src="http://2.bp.blogspot.com/_StlF7-S_GEg/SQ2dnkWc9DI/AAAAAAAAACk/QCHRppv21lU/S220/anujrathi.JPG" /></author><thr:total>1</thr:total><content type="html">I got this link is very helpful when you want to upload data in bulk from the excel workbook or you have to retrieve the data from the excel workbook. http://support.microsoft.com/default.aspx?scid=kb;en-us;316934#12
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/pQ12tdkXAASL3eQt8LkRG5x_TXU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pQ12tdkXAASL3eQt8LkRG5x_TXU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/pQ12tdkXAASL3eQt8LkRG5x_TXU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/pQ12tdkXAASL3eQt8LkRG5x_TXU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/AnujRathi/~4/X8s5TBt-W1Q" height="1" width="1"/&gt;</content><feedburner:origLink>http://anujkrathi.blogspot.com/2009/09/retrieve-and-upload-data-from.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CE4DRX04fSp7ImA9WxNRFks.&quot;"><id>tag:blogger.com,1999:blog-28422183.post-1814345962525526434</id><published>2009-09-11T15:24:00.000+05:30</published><updated>2009-09-11T15:26:14.335+05:30</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-11T15:26:14.335+05:30</app:edited><title>Difference between Web Services and Remoting?</title><link rel="replies" type="application/atom+xml" href="http://anujkrathi.blogspot.com/feeds/1814345962525526434/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=28422183&amp;postID=1814345962525526434&amp;isPopup=true" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/1814345962525526434?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/28422183/posts/default/1814345962525526434?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/AnujRathi/~3/_o22mIKsKV0/difference-between-web-services-and.html" title="Difference between Web Services and Remoting?" /><author><name>Anuj Rathi</name><uri>http://www.blogger.com/profile/06352961496721757398</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="30" height="32" src="http://2.bp.blogspot.com/_StlF7-S_GEg/SQ2dnkWc9DI/AAAAAAAAACk/QCHRppv21lU/S220/anujrathi.JPG" /></author><thr:total>0</thr:total><content type="html">Both Remoting and Web Services are ways of communication between applications. Remoting - In remoting, the applications involved in the communication process may be located on the same computer, different computers in a same or different network. In remoting, both applications know about each other. A proxy of an application object is created on the other application. Web Services - Communication
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/p0DLdOUS4E8WHYe_wVZBhOT0cLk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/p0DLdOUS4E8WHYe_wVZBhOT0cLk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/p0DLdOUS4E8WHYe_wVZBhOT0cLk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/p0DLdOUS4E8WHYe_wVZBhOT0cLk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/AnujRathi/~4/_o22mIKsKV0" height="1" width="1"/&gt;</content><feedburner:origLink>http://anujkrathi.blogspot.com/2009/09/difference-between-web-services-and.html</feedburner:origLink></entry></feed>

