<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for Journey to SQL Authority with Pinal Dave</title>
	<atom:link href="http://blog.sqlauthority.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com</link>
	<description>Notes of a SQL Server MVP and Database Administrator</description>
	<lastBuildDate>Fri, 06 Nov 2009 14:54:11 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on SQL SERVER &#8211; 2005 &#8211; Find Stored Procedure Create Date and Modified Date by aarti</title>
		<link>http://blog.sqlauthority.com/2007/08/10/sql-server-2005-find-stored-procedure-create-date-and-modified-date/#comment-57388</link>
		<dc:creator>aarti</dc:creator>
		<pubDate>Fri, 06 Nov 2009 14:54:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/10/sql-server-2005-find-stored-procedure-create-date-and-modified-date/#comment-57388</guid>
		<description>ALTER PROCEDURE setuserlogin
(
@username varchar (50),
@logintime datetime
)
AS
UPDATE userprofile
set logintime=@logintime,onlinestatus=1
WHERE
username=@username;

if i exe this then 1 error is coming near ste userlogin
please suggest something,so i can exe it.</description>
		<content:encoded><![CDATA[<p>ALTER PROCEDURE setuserlogin<br />
(<br />
@username varchar (50),<br />
@logintime datetime<br />
)<br />
AS<br />
UPDATE userprofile<br />
set logintime=@logintime,onlinestatus=1<br />
WHERE<br />
username=@username;</p>
<p>if i exe this then 1 error is coming near ste userlogin<br />
please suggest something,so i can exe it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQL SERVER &#8211; Fix : Error : 1326 Cannot connect to Database Server Error: 40 &#8211; Could not open a connection to SQL Server by mohammed</title>
		<link>http://blog.sqlauthority.com/2008/08/09/sql-server-fix-error-1326-cannot-connect-to-database-server-error-40-could-not-open-a-connection-to-sql-server/#comment-57386</link>
		<dc:creator>mohammed</dc:creator>
		<pubDate>Fri, 06 Nov 2009 13:06:33 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=797#comment-57386</guid>
		<description>mssqlserver should started fist, it will solve the problem</description>
		<content:encoded><![CDATA[<p>mssqlserver should started fist, it will solve the problem</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Contact Me by Najam Khan</title>
		<link>http://blog.sqlauthority.com/contact-me-contact-pinaldave/#comment-57384</link>
		<dc:creator>Najam Khan</dc:creator>
		<pubDate>Fri, 06 Nov 2009 12:27:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?page_id=6010#comment-57384</guid>
		<description>SELECT D.Branch_Name,D.branch_id,D.Branch_Cd,(D.Add1+&#039; &#039;+D.Add2+&#039; &#039;+D.City)AS Address ,A.NAME,A.SMC_CD,A.Enroll_Dt,B.DATA, (select Name From Employee_master where Parent_id in (Contact_id))
FROM EMPLOYEE_MASTER A 
INNER JOIN MASTER_DATA B ON B.DATA_ID=A.DSGN_ID 
INNER JOIN branch_master D On A.branch_id=D.branch_id

I have table which column are mentioned in query.Contact_Id is PK and Parent_id reporting head ID.IF I am Manager My Contact ID is 1001 after some time I hired an assist manager they will report me so assist manager id will be 1002 and parent ID will be 1001.So I write above query and want to get reporting head ID with his name.So I write above query and it raise an error &quot;Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, &lt;, , &gt;= or when the subquery is used as an expression.
&quot;
So give me solution

Warm Regards
Najam Khan
Software Engg.</description>
		<content:encoded><![CDATA[<p>SELECT D.Branch_Name,D.branch_id,D.Branch_Cd,(D.Add1+&#8217; &#8216;+D.Add2+&#8217; &#8216;+D.City)AS Address ,A.NAME,A.SMC_CD,A.Enroll_Dt,B.DATA, (select Name From Employee_master where Parent_id in (Contact_id))<br />
FROM EMPLOYEE_MASTER A<br />
INNER JOIN MASTER_DATA B ON B.DATA_ID=A.DSGN_ID<br />
INNER JOIN branch_master D On A.branch_id=D.branch_id</p>
<p>I have table which column are mentioned in query.Contact_Id is PK and Parent_id reporting head ID.IF I am Manager My Contact ID is 1001 after some time I hired an assist manager they will report me so assist manager id will be 1002 and parent ID will be 1001.So I write above query and want to get reporting head ID with his name.So I write above query and it raise an error &#8220;Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, &lt;, , &gt;= or when the subquery is used as an expression.<br />
&#8221;<br />
So give me solution</p>
<p>Warm Regards<br />
Najam Khan<br />
Software Engg.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQL SERVER &#8211; FIX : ERROR : Could Not Connect to SQL Server &#8211; TDSSNIClient initialization failed with error 0&#215;7e, status code 0&#215;60 by Rute</title>
		<link>http://blog.sqlauthority.com/2008/08/30/sql-server-fix-error-could-not-connect-to-sql-server-tdssniclient-initialization-failed-with-error-0x7e-status-code-0x60/#comment-57383</link>
		<dc:creator>Rute</dc:creator>
		<pubDate>Fri, 06 Nov 2009 12:15:17 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=918#comment-57383</guid>
		<description>Thanks!!!!

Solved my problem instantaneously!
And it was th firs link I found about the subject!</description>
		<content:encoded><![CDATA[<p>Thanks!!!!</p>
<p>Solved my problem instantaneously!<br />
And it was th firs link I found about the subject!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQL SERVER &#8211; FIX : Error 3154: The backup set holds a backup of a database other than the existing database by Phil</title>
		<link>http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-57382</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Fri, 06 Nov 2009 11:43:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/09/27/sql-server-fix-error-3154-the-backup-set-holds-a-backup-of-a-database-other-than-the-existing-database/#comment-57382</guid>
		<description>Saved me a lot of trouble, thanks</description>
		<content:encoded><![CDATA[<p>Saved me a lot of trouble, thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQL SERVER &#8211; 2005 &#8211; Get Current User &#8211; Get Logged In User by Shubhada</title>
		<link>http://blog.sqlauthority.com/2007/10/27/sql-server-2005-get-current-user-get-logged-in-user/#comment-57381</link>
		<dc:creator>Shubhada</dc:creator>
		<pubDate>Fri, 06 Nov 2009 08:34:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/10/27/sql-server-2005-get-current-user-get-logged-in-user/#comment-57381</guid>
		<description>Hi 

Can you tell me how can I get the password expiration information of a active directory windows user from sql server 2005</description>
		<content:encoded><![CDATA[<p>Hi </p>
<p>Can you tell me how can I get the password expiration information of a active directory windows user from sql server 2005</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQL SERVER &#8211; Introduction to Business Intelligence &#8211; Important Terms &amp; Definitions by Dinesh Agrawal</title>
		<link>http://blog.sqlauthority.com/2009/10/21/sql-server-introduction-to-business-intelligence-important-terms-definitions/#comment-57380</link>
		<dc:creator>Dinesh Agrawal</dc:creator>
		<pubDate>Fri, 06 Nov 2009 08:30:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7109#comment-57380</guid>
		<description>pinal sir
             i am fresher and i am having command on sql server and pl-sql know the some basic concepts of dts (sql server2000)
.i want to become a buisness intelligence devloper please guide me for this pathway.</description>
		<content:encoded><![CDATA[<p>pinal sir<br />
             i am fresher and i am having command on sql server and pl-sql know the some basic concepts of dts (sql server2000)<br />
.i want to become a buisness intelligence devloper please guide me for this pathway.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQL SERVER &#8211; 2005 &#8211; Twelve Tips For Optimizing Sql Server 2005 Query Performance by Brixton</title>
		<link>http://blog.sqlauthority.com/2008/05/21/sql-server-2005-twelve-tips-for-optimizing-sql-server-2005-query-performance/#comment-57379</link>
		<dc:creator>Brixton</dc:creator>
		<pubDate>Fri, 06 Nov 2009 08:12:51 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=611#comment-57379</guid>
		<description>Hi! try using WHILE LOOP. It works the same way with cursor but is more efficient.</description>
		<content:encoded><![CDATA[<p>Hi! try using WHILE LOOP. It works the same way with cursor but is more efficient.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQL SERVER &#8211; Cannot resolve collation conflict for equal to operation by Nigar</title>
		<link>http://blog.sqlauthority.com/2007/06/11/sql-server-cannot-resolve-collation-conflict-for-equal-to-operation/#comment-57378</link>
		<dc:creator>Nigar</dc:creator>
		<pubDate>Fri, 06 Nov 2009 07:27:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/11/sql-server-cannot-resolve-collation-conflict-for-equal-to-operation/#comment-57378</guid>
		<description>Oh, I found the solution. Thanks a lot!</description>
		<content:encoded><![CDATA[<p>Oh, I found the solution. Thanks a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQL SERVER &#8211; 2005 List All Tables of Database by Sourabh Sachdeva</title>
		<link>http://blog.sqlauthority.com/2007/06/26/sql-server-2005-list-all-tables-of-database/#comment-57377</link>
		<dc:creator>Sourabh Sachdeva</dc:creator>
		<pubDate>Fri, 06 Nov 2009 07:26:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/26/sql-server-2005-list-all-tables-of-database/#comment-57377</guid>
		<description>Hi Vidhyasri,

you can use:

sp_tables

OR

you can use:

select * from information_schema.tables

OR
 

You can use:

select * from sys.tables

OR

you can use:

select * from sys.objects where type=&#039;U&#039;

Note: type=&#039;U&#039; not use xtype


So all these are different way of getting all tables from sql server.</description>
		<content:encoded><![CDATA[<p>Hi Vidhyasri,</p>
<p>you can use:</p>
<p>sp_tables</p>
<p>OR</p>
<p>you can use:</p>
<p>select * from information_schema.tables</p>
<p>OR</p>
<p>You can use:</p>
<p>select * from sys.tables</p>
<p>OR</p>
<p>you can use:</p>
<p>select * from sys.objects where type=&#8217;U&#8217;</p>
<p>Note: type=&#8217;U&#8217; not use xtype</p>
<p>So all these are different way of getting all tables from sql server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQL SERVER &#8211; Cannot resolve collation conflict for equal to operation by Nigar</title>
		<link>http://blog.sqlauthority.com/2007/06/11/sql-server-cannot-resolve-collation-conflict-for-equal-to-operation/#comment-57376</link>
		<dc:creator>Nigar</dc:creator>
		<pubDate>Fri, 06 Nov 2009 07:25:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/06/11/sql-server-cannot-resolve-collation-conflict-for-equal-to-operation/#comment-57376</guid>
		<description>Hello!

Please, see the following query:

select    p.[PdrString1] as NUM,
          p.[PdrString2] as TONEID,
          g.[6032_GlobalPromptsFile_Name] as TNAME,
          convert(varchar,p.[PdrTime],20) as ADATE,
          case when PdrString5 = &#039;Script ID: 6118&#039; then PdrString4  COLLATE DATABASE_DEFAULT else s.des end as DES,
          p.[PdrString5] as STATUS,
          case when PdrString5 = &#039;Script ID: 6118&#039; then &#039;Manual&#039; else s.aname end as ATYPE,
          p.[PdrString3] as CATID, r.[9181_CosName]
from dbo.[PDR-2009-05-23] p
left outer join [105-02-agg.bakcell.com].cdr.dbo.frbt_status  s on s.code = p.[PdrString5] COLLATE DATABASE_DEFAULT and s.atype = p.[PdrString4] COLLATE DATABASE_DEFAULT,
[105-02-agg.bakcell.com].magnolia.dbo.GlobalPromptsFiles g, [105-10-rep].magnolia.dbo.SubsPPS v, [105-10-rep].magnolia.dbo.COS r
where p.pdrtype = 3 
and p.[PdrString3] = g.[6050_GlobalPromptsCategory_Id]
and p.[PdrString2] = [6031_GlobalPromptsFile_Code] COLLATE DATABASE_DEFAULT
and v.[9061_SubsNumber]=p.[PdrString1]
and v.[9180_CosId]=r.[9180_CosId] 
order by PdrTime desc</description>
		<content:encoded><![CDATA[<p>Hello!</p>
<p>Please, see the following query:</p>
<p>select    p.[PdrString1] as NUM,<br />
          p.[PdrString2] as TONEID,<br />
          g.[6032_GlobalPromptsFile_Name] as TNAME,<br />
          convert(varchar,p.[PdrTime],20) as ADATE,<br />
          case when PdrString5 = &#8216;Script ID: 6118&#8242; then PdrString4  COLLATE DATABASE_DEFAULT else s.des end as DES,<br />
          p.[PdrString5] as STATUS,<br />
          case when PdrString5 = &#8216;Script ID: 6118&#8242; then &#8216;Manual&#8217; else s.aname end as ATYPE,<br />
          p.[PdrString3] as CATID, r.[9181_CosName]<br />
from dbo.[PDR-2009-05-23] p<br />
left outer join [105-02-agg.bakcell.com].cdr.dbo.frbt_status  s on s.code = p.[PdrString5] COLLATE DATABASE_DEFAULT and s.atype = p.[PdrString4] COLLATE DATABASE_DEFAULT,<br />
[105-02-agg.bakcell.com].magnolia.dbo.GlobalPromptsFiles g, [105-10-rep].magnolia.dbo.SubsPPS v, [105-10-rep].magnolia.dbo.COS r<br />
where p.pdrtype = 3<br />
and p.[PdrString3] = g.[6050_GlobalPromptsCategory_Id]<br />
and p.[PdrString2] = [6031_GlobalPromptsFile_Code] COLLATE DATABASE_DEFAULT<br />
and v.[9061_SubsNumber]=p.[PdrString1]<br />
and v.[9180_CosId]=r.[9180_CosId]<br />
order by PdrTime desc</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQLAuthority News &#8211; SQL PASS Summit, Seattle 2009 &#8211; Day 3 by Kuldip.Bhatt</title>
		<link>http://blog.sqlauthority.com/2009/11/05/sqlauthority-news-sql-pass-summit-seattle-2009-day-3/#comment-57375</link>
		<dc:creator>Kuldip.Bhatt</dc:creator>
		<pubDate>Fri, 06 Nov 2009 06:21:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7156#comment-57375</guid>
		<description>Thanks for Updating,
All photo in all post are great,
and have a wonderful trip.</description>
		<content:encoded><![CDATA[<p>Thanks for Updating,<br />
All photo in all post are great,<br />
and have a wonderful trip.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQL SERVER &#8211; Fix : Error: 18452 Login failed for user &#8216;(null)&#8217;. The user is not associated with a trusted SQL Server connection. by Francesco</title>
		<link>http://blog.sqlauthority.com/2007/04/14/sql-server-fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-57374</link>
		<dc:creator>Francesco</dc:creator>
		<pubDate>Fri, 06 Nov 2009 06:12:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/14/fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-57374</guid>
		<description>Thanks a lot for your article, it helped me to solve the problem. Good job!!!</description>
		<content:encoded><![CDATA[<p>Thanks a lot for your article, it helped me to solve the problem. Good job!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQL SERVER &#8211; Get Time in Hour:Minute Format from a Datetime &#8211; Get Date Part Only from Datetime by vasu</title>
		<link>http://blog.sqlauthority.com/2009/08/06/sql-server-get-time-in-hourminute-format-from-a-datetime-get-date-part-only-from-datetime/#comment-57373</link>
		<dc:creator>vasu</dc:creator>
		<pubDate>Fri, 06 Nov 2009 03:51:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5940#comment-57373</guid>
		<description>I want 10.30 PM not 22:30</description>
		<content:encoded><![CDATA[<p>I want 10.30 PM not 22:30</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQL SERVER &#8211; Fix : Error 14274: Cannot add, update, or delete a job (or its steps or schedules) that originated from an MSX server. The job was not saved. by michael</title>
		<link>http://blog.sqlauthority.com/2006/12/20/sql-server-fix-error-14274-cannot-add-update-or-delete-a-job-or-its-steps-or-schedules-that-originated-from-an-msx-server-the-job-was-not-saved/#comment-57369</link>
		<dc:creator>michael</dc:creator>
		<pubDate>Thu, 05 Nov 2009 22:17:37 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/2007/01/09/fix-error-14274-cannot-add-update-or-delete-a-job-or-its-steps-or-schedules-that-originated-from-an-msx-server-the-job-was-not-saved/#comment-57369</guid>
		<description>Thank you for this, saved me!</description>
		<content:encoded><![CDATA[<p>Thank you for this, saved me!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQL SERVER &#8211; Fix : Error: 18452 Login failed for user &#8216;(null)&#8217;. The user is not associated with a trusted SQL Server connection. by Allen</title>
		<link>http://blog.sqlauthority.com/2007/04/14/sql-server-fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-57368</link>
		<dc:creator>Allen</dc:creator>
		<pubDate>Thu, 05 Nov 2009 21:24:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/14/fix-error-18452-login-failed-for-user-null-the-user-is-not-associated-with-a-trusted-sql-server-connection/#comment-57368</guid>
		<description>http://social.msdn.microsoft.com/Forums/en/sqlsecurity/thread/48ee6a1b-9aad-48a6-90e4-b8f4b93d0107


also deals with this.  The server may have to be set to support Mixed Authentication for non Windows Authentication logins to work.  The install default is Windows Authentication only I think.</description>
		<content:encoded><![CDATA[<p><a href="http://social.msdn.microsoft.com/Forums/en/sqlsecurity/thread/48ee6a1b-9aad-48a6-90e4-b8f4b93d0107" rel="nofollow">http://social.msdn.microsoft.com/Forums/en/sqlsecurity/thread/48ee6a1b-9aad-48a6-90e4-b8f4b93d0107</a></p>
<p>also deals with this.  The server may have to be set to support Mixed Authentication for non Windows Authentication logins to work.  The install default is Windows Authentication only I think.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQLAuthority News &#8211; SQL PASS Summit, Seattle 2009 &#8211; Day 2 by James Wall</title>
		<link>http://blog.sqlauthority.com/2009/11/04/sqlauthority-news-sql-pass-summit-seattle-2009-day-2/#comment-57367</link>
		<dc:creator>James Wall</dc:creator>
		<pubDate>Thu, 05 Nov 2009 20:09:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7154#comment-57367</guid>
		<description>It was great to meet you in person Pinal. I liked your session.</description>
		<content:encoded><![CDATA[<p>It was great to meet you in person Pinal. I liked your session.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQLAuthority News &#8211; SQL PASS Summit, Seattle 2009 &#8211; Day 2 by pinaldave</title>
		<link>http://blog.sqlauthority.com/2009/11/04/sqlauthority-news-sql-pass-summit-seattle-2009-day-2/#comment-57366</link>
		<dc:creator>pinaldave</dc:creator>
		<pubDate>Thu, 05 Nov 2009 19:45:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7154#comment-57366</guid>
		<description>thanks Jason! You are welcome.</description>
		<content:encoded><![CDATA[<p>thanks Jason! You are welcome.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SQLAuthority News &#8211; SQL PASS Summit, Seattle 2009 &#8211; Day 2 by Jason</title>
		<link>http://blog.sqlauthority.com/2009/11/04/sqlauthority-news-sql-pass-summit-seattle-2009-day-2/#comment-57365</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Thu, 05 Nov 2009 19:08:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7154#comment-57365</guid>
		<description>Hi Pinal,

Glad to see you&#039;re enjoying the conference.  I didn&#039;t realize you were presenting too.  I hope your session went well.  Maybe next year I will be able to come out and meet you.

Jason</description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>Glad to see you&#8217;re enjoying the conference.  I didn&#8217;t realize you were presenting too.  I hope your session went well.  Maybe next year I will be able to come out and meet you.</p>
<p>Jason</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Contact Me by Brian Tkatch</title>
		<link>http://blog.sqlauthority.com/contact-me-contact-pinaldave/#comment-57364</link>
		<dc:creator>Brian Tkatch</dc:creator>
		<pubDate>Thu, 05 Nov 2009 18:23:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?page_id=6010#comment-57364</guid>
		<description>@Aleks

A few ways:

1) In the INSERT use OUTPUT INSERT.Id, INSERTED.email INTO @temp_tab

Then use @temp_tab to UPDATE tempTale

2) UPDATE tempTable SET id = (SELECT Id FROM tableA WHERE tableA.email = tempTable.email);

3) same UPDATE, but use a join.</description>
		<content:encoded><![CDATA[<p>@Aleks</p>
<p>A few ways:</p>
<p>1) In the INSERT use OUTPUT INSERT.Id, INSERTED.email INTO @temp_tab</p>
<p>Then use @temp_tab to UPDATE tempTale</p>
<p>2) UPDATE tempTable SET id = (SELECT Id FROM tableA WHERE tableA.email = tempTable.email);</p>
<p>3) same UPDATE, but use a join.</p>
]]></content:encoded>
	</item>
</channel>
</rss>