<?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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Contact Me &#8211; Archive 9</title>
	<atom:link href="http://blog.sqlauthority.com/contact-me/contact-me-archive-9/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Thu, 23 May 2013 14:22:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: raj</title>
		<link>http://blog.sqlauthority.com/contact-me/contact-me-archive-9/#comment-146305</link>
		<dc:creator><![CDATA[raj]]></dc:creator>
		<pubDate>Wed, 06 Jul 2011 03:45:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/#comment-146305</guid>
		<description><![CDATA[Hi Pinal,
i am a Junier SQL developer. Now my job is finding the missing indexes in our live database. When i try to find the missing indexes from the database by using DMV&#039;s it does&#039;t allow me to run this queries. Then i explain the situation to my manager then he said,generate a script for this live database and load it into local database server and text it. i did the same thing what he said, But the problem is when i execute the query for missing indexes it doesn&#039;t show any indexes in this database. 
Is it possible to find the missing indexes on local database server after script it from the remote desktop?
please help me 
thank you,]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,<br />
i am a Junier SQL developer. Now my job is finding the missing indexes in our live database. When i try to find the missing indexes from the database by using DMV&#8217;s it does&#8217;t allow me to run this queries. Then i explain the situation to my manager then he said,generate a script for this live database and load it into local database server and text it. i did the same thing what he said, But the problem is when i execute the query for missing indexes it doesn&#8217;t show any indexes in this database.<br />
Is it possible to find the missing indexes on local database server after script it from the remote desktop?<br />
please help me<br />
thank you,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinaldave</title>
		<link>http://blog.sqlauthority.com/contact-me/contact-me-archive-9/#comment-144413</link>
		<dc:creator><![CDATA[pinaldave]]></dc:creator>
		<pubDate>Tue, 28 Jun 2011 12:27:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/#comment-144413</guid>
		<description><![CDATA[For quick immediate answer leave a comment at my &lt;strong&gt;&lt;a href=&quot;http://www.facebook.com/SQLAuth&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;Facebook page&lt;/a&gt;&lt;/strong&gt; and let me know at my &lt;strong&gt;&lt;a href=&quot;http://twitter.com/#!/pinaldave&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;twitter ID&lt;/a&gt;&lt;/strong&gt;]]></description>
		<content:encoded><![CDATA[<p>For quick immediate answer leave a comment at my <strong><a href="http://www.facebook.com/SQLAuth" target="_blank" rel="nofollow">Facebook page</a></strong> and let me know at my <strong><a href="http://twitter.com/#!/pinaldave" target="_blank" rel="nofollow">twitter ID</a></strong></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul Trehan</title>
		<link>http://blog.sqlauthority.com/contact-me/contact-me-archive-9/#comment-127050</link>
		<dc:creator><![CDATA[Rahul Trehan]]></dc:creator>
		<pubDate>Wed, 06 Apr 2011 15:17:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/#comment-127050</guid>
		<description><![CDATA[Hi Pinal,
Can you give me tsql script for dynamically comparing tables in two different database with same name and i want to return the varying columns in database.
Regards
Rahul Trehan]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,<br />
Can you give me tsql script for dynamically comparing tables in two different database with same name and i want to return the varying columns in database.<br />
Regards<br />
Rahul Trehan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nareshbabu</title>
		<link>http://blog.sqlauthority.com/contact-me/contact-me-archive-9/#comment-127001</link>
		<dc:creator><![CDATA[Nareshbabu]]></dc:creator>
		<pubDate>Wed, 06 Apr 2011 12:30:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/#comment-127001</guid>
		<description><![CDATA[i have a requirement like if i give the table name i need to  generate Script for that existing table with constraints also  please help me how to get create table script with constraints of that existing table  ....]]></description>
		<content:encoded><![CDATA[<p>i have a requirement like if i give the table name i need to  generate Script for that existing table with constraints also  please help me how to get create table script with constraints of that existing table  &#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shibu</title>
		<link>http://blog.sqlauthority.com/contact-me/contact-me-archive-9/#comment-126934</link>
		<dc:creator><![CDATA[shibu]]></dc:creator>
		<pubDate>Wed, 06 Apr 2011 06:21:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/#comment-126934</guid>
		<description><![CDATA[hello sir

when u are free and feeling cool then please write an article about how to debug a query or store procedure in sql server 2008 R2

i am trying many times but failed to enable the debug in sql server R2 

so i  make a kind request to you, to write a step by step article that how we can enable debugging in sql server 2008 R2 and then how to debug a query or stored procedure

and how to check the query performance and some another hows that is fruit full for me and another sql guys]]></description>
		<content:encoded><![CDATA[<p>hello sir</p>
<p>when u are free and feeling cool then please write an article about how to debug a query or store procedure in sql server 2008 R2</p>
<p>i am trying many times but failed to enable the debug in sql server R2 </p>
<p>so i  make a kind request to you, to write a step by step article that how we can enable debugging in sql server 2008 R2 and then how to debug a query or stored procedure</p>
<p>and how to check the query performance and some another hows that is fruit full for me and another sql guys</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian</title>
		<link>http://blog.sqlauthority.com/contact-me/contact-me-archive-9/#comment-126653</link>
		<dc:creator><![CDATA[Adrian]]></dc:creator>
		<pubDate>Tue, 05 Apr 2011 07:00:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/#comment-126653</guid>
		<description><![CDATA[Hi Mr Pinal,

I was wondering if you could shed some light on a problem that I&#039;m having. I have a SQL Server 2008 installed on a remote desktop. One of my team mates is having trouble accessing it by the server name when he tries to remotely access the Server via SQL Management Studio. I however can connect to it using the IP and the server name. I&#039;ve tried all the steps you indicated on one of your guides. I tried to detect all available servers on the local network but nothing shows up. I&#039;m stuck right now and I was hoping you could shed some light on this. Thank you very much.

Regards,
Adrian]]></description>
		<content:encoded><![CDATA[<p>Hi Mr Pinal,</p>
<p>I was wondering if you could shed some light on a problem that I&#8217;m having. I have a SQL Server 2008 installed on a remote desktop. One of my team mates is having trouble accessing it by the server name when he tries to remotely access the Server via SQL Management Studio. I however can connect to it using the IP and the server name. I&#8217;ve tried all the steps you indicated on one of your guides. I tried to detect all available servers on the local network but nothing shows up. I&#8217;m stuck right now and I was hoping you could shed some light on this. Thank you very much.</p>
<p>Regards,<br />
Adrian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dinesh</title>
		<link>http://blog.sqlauthority.com/contact-me/contact-me-archive-9/#comment-126588</link>
		<dc:creator><![CDATA[Dinesh]]></dc:creator>
		<pubDate>Tue, 05 Apr 2011 03:45:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/#comment-126588</guid>
		<description><![CDATA[Hello Sir,
              I am Student. I have Two table
tblEmp
Emp.ID&#124;Name&#124;Salary&#124;Dep.ID
1            abc       100    1
2            xyz        200   2
3            pqr        300   1

tblDep
Dep.ID&#124;Name
   1           D1
   2           D2


Now Update Salary 10% where Dep Name is &#039;D1&#039; and 20% where Dep Name is &#039;D2&#039; in Single Query use join.]]></description>
		<content:encoded><![CDATA[<p>Hello Sir,<br />
              I am Student. I have Two table<br />
tblEmp<br />
Emp.ID|Name|Salary|Dep.ID<br />
1            abc       100    1<br />
2            xyz        200   2<br />
3            pqr        300   1</p>
<p>tblDep<br />
Dep.ID|Name<br />
   1           D1<br />
   2           D2</p>
<p>Now Update Salary 10% where Dep Name is &#8216;D1&#8242; and 20% where Dep Name is &#8216;D2&#8242; in Single Query use join.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://blog.sqlauthority.com/contact-me/contact-me-archive-9/#comment-126560</link>
		<dc:creator><![CDATA[Michael]]></dc:creator>
		<pubDate>Mon, 04 Apr 2011 23:36:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/#comment-126560</guid>
		<description><![CDATA[I&#039;m trying to create a Database in Microsoft SQL Server 2008 R2. I can sign in under Windows Authentication a set up a database with Login &amp; Password. Everything goes fine until I goto login in to my newly created database. It say &#039;login in fail error message 18456&#039; when I go back to look at my login &amp; password that I created, the password is not the same. It&#039;s twice as long and I don&#039;t know what the password is because it&#039;s all dots. I trying to change it but it never works. Can you help me figure this out? Thanks.]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to create a Database in Microsoft SQL Server 2008 R2. I can sign in under Windows Authentication a set up a database with Login &amp; Password. Everything goes fine until I goto login in to my newly created database. It say &#8216;login in fail error message 18456&#8242; when I go back to look at my login &amp; password that I created, the password is not the same. It&#8217;s twice as long and I don&#8217;t know what the password is because it&#8217;s all dots. I trying to change it but it never works. Can you help me figure this out? Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vikas</title>
		<link>http://blog.sqlauthority.com/contact-me/contact-me-archive-9/#comment-126520</link>
		<dc:creator><![CDATA[Vikas]]></dc:creator>
		<pubDate>Mon, 04 Apr 2011 17:37:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/#comment-126520</guid>
		<description><![CDATA[No,I am replicating it on sql 2000.I read on MSDN that we can replicate Logged Test by using WRITETEXT AND UPDATETEXT.Not sure how to do that.?]]></description>
		<content:encoded><![CDATA[<p>No,I am replicating it on sql 2000.I read on MSDN that we can replicate Logged Test by using WRITETEXT AND UPDATETEXT.Not sure how to do that.?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kahn</title>
		<link>http://blog.sqlauthority.com/contact-me/contact-me-archive-9/#comment-126469</link>
		<dc:creator><![CDATA[Kahn]]></dc:creator>
		<pubDate>Mon, 04 Apr 2011 08:10:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/#comment-126469</guid>
		<description><![CDATA[Hi,
I  have a group in AD that logins to windows and what i want to do is, the same AD group to access also SQL Server using the AD credentials.

my sql server is setup to use mixed mode (windows and sql server login). so lets say my AD group name is : 

fxb-dss-fsx-sqladmin, 

this group have(2 user) access to win 2008(OS) only. Same group have to access SSMS also. 

so i want to give access to the above group to use also SQL Server.

OS: Win 2008
SQL: sql 2008

I have around 50 Sql Server and more then 100 Instance, NO 3rd party tools we used here.


can anybody guide me how to do this?

Thanks.
New DB]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
I  have a group in AD that logins to windows and what i want to do is, the same AD group to access also SQL Server using the AD credentials.</p>
<p>my sql server is setup to use mixed mode (windows and sql server login). so lets say my AD group name is : </p>
<p>fxb-dss-fsx-sqladmin, </p>
<p>this group have(2 user) access to win 2008(OS) only. Same group have to access SSMS also. </p>
<p>so i want to give access to the above group to use also SQL Server.</p>
<p>OS: Win 2008<br />
SQL: sql 2008</p>
<p>I have around 50 Sql Server and more then 100 Instance, NO 3rd party tools we used here.</p>
<p>can anybody guide me how to do this?</p>
<p>Thanks.<br />
New DB</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: naveen</title>
		<link>http://blog.sqlauthority.com/contact-me/contact-me-archive-9/#comment-126430</link>
		<dc:creator><![CDATA[naveen]]></dc:creator>
		<pubDate>Mon, 04 Apr 2011 01:19:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/#comment-126430</guid>
		<description><![CDATA[Hi Pinal,

Could you please help with the below issue.


If suppose I have 2 flatfiles:

 \\ODCDEV01\LOAD\SCH 2011-03-30-22-00-01 PURCHASE_ORDER

 \\ODCDEV01\LOAD\SCH 2011-03-30-22-00-01 INVOICE_ORDER

Archive folder is  \\ODCDEV01\LOAD\Archive

I get these flatfiles daily..monday through friday. On Monday I get previous friday&#039;s file. On Tuesday I get Monday&#039;s file to process.The date on filename i.e (2011-03-30-22-00-01) gets this way.( Night batch runs and the max load date is loaded in a sql table and that date is included in the filename by the application team..)

I am creating two packages.

One for loading the below flatfile 

 \\ODCDEV01\LOAD\SCH 2011-03-30-22-00-01 PURCHASE_ORDER

second package for loading below flat file

 \\ODCDEV01\LOAD\SCH 2011-03-30-22-00-01 INVOICE_ORDER 

 

Package logic I use is (same logic for two packages)

1.implementing business logic to select the row inserted by the application team to get the load date.

2. using sequence container

a.  In that I am using  For Each loop .  I am trying to create 2 variables. One to hold the archive folder that I could do (\\ODCDEV01\LOAD\Archive). Secong variable is to hold the  &quot;\\ODCDEV01\LOAD\SCH 2011-03-30-22-00-01 PURCHASE_ORDER&quot;. As the date in this path changes dynamically I have to capture this and assign to a variable. I am unable to write the expression and use this variable in the for each loop container. I am not sure what datatype I have to give while declaring this variable as it has date and string data in the filename.

   Inside the foreach loop, I am giving dataflow task to load data from flatfile to OLEDB destination. Here again in the flatfile connection string , I dont know how to write the expression.

After dataflow task I am using File System Task to move flatfile to archive folder. Here again I am unable to give the source connection. Destination connection I could give in the expression.

So my question is how to write the expression to declare the source variable? Please let me know if you have any questions?  Thanks a lot for your time and help.

Thanks,

Naveen.]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>Could you please help with the below issue.</p>
<p>If suppose I have 2 flatfiles:</p>
<p> \\ODCDEV01\LOAD\SCH 2011-03-30-22-00-01 PURCHASE_ORDER</p>
<p> \\ODCDEV01\LOAD\SCH 2011-03-30-22-00-01 INVOICE_ORDER</p>
<p>Archive folder is  \\ODCDEV01\LOAD\Archive</p>
<p>I get these flatfiles daily..monday through friday. On Monday I get previous friday&#8217;s file. On Tuesday I get Monday&#8217;s file to process.The date on filename i.e (2011-03-30-22-00-01) gets this way.( Night batch runs and the max load date is loaded in a sql table and that date is included in the filename by the application team..)</p>
<p>I am creating two packages.</p>
<p>One for loading the below flatfile </p>
<p> \\ODCDEV01\LOAD\SCH 2011-03-30-22-00-01 PURCHASE_ORDER</p>
<p>second package for loading below flat file</p>
<p> \\ODCDEV01\LOAD\SCH 2011-03-30-22-00-01 INVOICE_ORDER </p>
<p>Package logic I use is (same logic for two packages)</p>
<p>1.implementing business logic to select the row inserted by the application team to get the load date.</p>
<p>2. using sequence container</p>
<p>a.  In that I am using  For Each loop .  I am trying to create 2 variables. One to hold the archive folder that I could do (\\ODCDEV01\LOAD\Archive). Secong variable is to hold the  &#8220;\\ODCDEV01\LOAD\SCH 2011-03-30-22-00-01 PURCHASE_ORDER&#8221;. As the date in this path changes dynamically I have to capture this and assign to a variable. I am unable to write the expression and use this variable in the for each loop container. I am not sure what datatype I have to give while declaring this variable as it has date and string data in the filename.</p>
<p>   Inside the foreach loop, I am giving dataflow task to load data from flatfile to OLEDB destination. Here again in the flatfile connection string , I dont know how to write the expression.</p>
<p>After dataflow task I am using File System Task to move flatfile to archive folder. Here again I am unable to give the source connection. Destination connection I could give in the expression.</p>
<p>So my question is how to write the expression to declare the source variable? Please let me know if you have any questions?  Thanks a lot for your time and help.</p>
<p>Thanks,</p>
<p>Naveen.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chintan</title>
		<link>http://blog.sqlauthority.com/contact-me/contact-me-archive-9/#comment-125993</link>
		<dc:creator><![CDATA[Chintan]]></dc:creator>
		<pubDate>Fri, 01 Apr 2011 12:36:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/#comment-125993</guid>
		<description><![CDATA[Hello,


I want to configure reporting service 2008 can you tell the steps to configure it. we met you when you come to NIC,Gandhinagar i attend seminer on silver light. we are facing the Credential problem using it.

Thanking you,

Chintan]]></description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I want to configure reporting service 2008 can you tell the steps to configure it. we met you when you come to NIC,Gandhinagar i attend seminer on silver light. we are facing the Credential problem using it.</p>
<p>Thanking you,</p>
<p>Chintan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/contact-me/contact-me-archive-9/#comment-125917</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Fri, 01 Apr 2011 06:20:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/#comment-125917</guid>
		<description><![CDATA[Refer thi post
http://beyondrelational.com/blogs/madhivanan/archive/2009/05/05/import-from-text-file-single-column-to-multiple-columns.aspx]]></description>
		<content:encoded><![CDATA[<p>Refer thi post<br />
<a href="http://beyondrelational.com/blogs/madhivanan/archive/2009/05/05/import-from-text-file-single-column-to-multiple-columns.aspx" rel="nofollow">http://beyondrelational.com/blogs/madhivanan/archive/2009/05/05/import-from-text-file-single-column-to-multiple-columns.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/contact-me/contact-me-archive-9/#comment-125912</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Fri, 01 Apr 2011 06:08:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/#comment-125912</guid>
		<description><![CDATA[One option is to use a dynamic sql. But why is the table created dynamically?]]></description>
		<content:encoded><![CDATA[<p>One option is to use a dynamic sql. But why is the table created dynamically?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/contact-me/contact-me-archive-9/#comment-125911</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Fri, 01 Apr 2011 06:07:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/#comment-125911</guid>
		<description><![CDATA[If you want to find it make offline eash database and run the application. There wont be a problem if it not used by any application. Other method is to run a trace and see if any database is not used]]></description>
		<content:encoded><![CDATA[<p>If you want to find it make offline eash database and run the application. There wont be a problem if it not used by any application. Other method is to run a trace and see if any database is not used</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/contact-me/contact-me-archive-9/#comment-125903</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Fri, 01 Apr 2011 05:54:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/#comment-125903</guid>
		<description><![CDATA[1 Store number of months
2 Store year and month seperately]]></description>
		<content:encoded><![CDATA[<p>1 Store number of months<br />
2 Store year and month seperately</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/contact-me/contact-me-archive-9/#comment-125896</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Fri, 01 Apr 2011 05:31:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/#comment-125896</guid>
		<description><![CDATA[Where are you replicating it? If you replicate it to versions from 2005, use varchar(max) datatype]]></description>
		<content:encoded><![CDATA[<p>Where are you replicating it? If you replicate it to versions from 2005, use varchar(max) datatype</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vikas</title>
		<link>http://blog.sqlauthority.com/contact-me/contact-me-archive-9/#comment-125789</link>
		<dc:creator><![CDATA[Vikas]]></dc:creator>
		<pubDate>Thu, 31 Mar 2011 13:17:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/#comment-125789</guid>
		<description><![CDATA[Hi,

I am a regular reader of ur blogs and they are awesome.I am having an issue if you can help me plz.

I have a DB in SQL 2000 which is being replicated,the issue is that one of the Table have a &#039;TEXT&#039; field.during Transactional Replication,the Agent stops many times,i have increased the size &#039;max text repl size&#039; ,its gone better but still its an issue,is there any other way i can replicate the &#039;Text&#039; field.

Thanks]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am a regular reader of ur blogs and they are awesome.I am having an issue if you can help me plz.</p>
<p>I have a DB in SQL 2000 which is being replicated,the issue is that one of the Table have a &#8216;TEXT&#8217; field.during Transactional Replication,the Agent stops many times,i have increased the size &#8216;max text repl size&#8217; ,its gone better but still its an issue,is there any other way i can replicate the &#8216;Text&#8217; field.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: makrand</title>
		<link>http://blog.sqlauthority.com/contact-me/contact-me-archive-9/#comment-125753</link>
		<dc:creator><![CDATA[makrand]]></dc:creator>
		<pubDate>Thu, 31 Mar 2011 08:31:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/#comment-125753</guid>
		<description><![CDATA[hi,
i have read article on self joins already.
i am engineering student. i am working on project for navigation purpose for academics. i have table for routes available and cities and their respective locations. now i have one problem regarding  selfjoins in one table. i have a table which has three fields

ROUTE_ID           CITY_ID          STOP_NO
1		3		0
1		4		1
1		7		2
2		7		0
2		4		1	
2		3		2
like above table there is listing of route stops within a route. the above table have one route in both directions i.e. target city for routeid 1 is source city for routeid 2 and vice versa . this is how i have saved the data.
I am giving two city ids as input parameters for source (from) to target(to) and want to know the routeid which contains these cities. i am able to find the route using self join, but the problem is the the source city should lower stopno from the target city stopno.  
so currently if i search for routeid from cityid 4 to 7 i get routeid 1 and 2 as result. my requirement is it should give me routeid 1 because cityid 4 (stopno is 1)is earlier to cityid 7(stopno is 2) . 
[email removed]
Thanks in advance.]]></description>
		<content:encoded><![CDATA[<p>hi,<br />
i have read article on self joins already.<br />
i am engineering student. i am working on project for navigation purpose for academics. i have table for routes available and cities and their respective locations. now i have one problem regarding  selfjoins in one table. i have a table which has three fields</p>
<p>ROUTE_ID           CITY_ID          STOP_NO<br />
1		3		0<br />
1		4		1<br />
1		7		2<br />
2		7		0<br />
2		4		1<br />
2		3		2<br />
like above table there is listing of route stops within a route. the above table have one route in both directions i.e. target city for routeid 1 is source city for routeid 2 and vice versa . this is how i have saved the data.<br />
I am giving two city ids as input parameters for source (from) to target(to) and want to know the routeid which contains these cities. i am able to find the route using self join, but the problem is the the source city should lower stopno from the target city stopno.<br />
so currently if i search for routeid from cityid 4 to 7 i get routeid 1 and 2 as result. my requirement is it should give me routeid 1 because cityid 4 (stopno is 1)is earlier to cityid 7(stopno is 2) .<br />
[email removed]<br />
Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fugu</title>
		<link>http://blog.sqlauthority.com/contact-me/contact-me-archive-9/#comment-125687</link>
		<dc:creator><![CDATA[Fugu]]></dc:creator>
		<pubDate>Wed, 30 Mar 2011 16:42:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/#comment-125687</guid>
		<description><![CDATA[Hi,

Am completely new to Database Technology. I have a problem, I need to convert a database script that i have been using to create my database in SQL 2000. The script includes all the Views, Stored Procedure and User roles and permissions.

I need to convert this script so I can run it on SQL 2008 and create a table for use on it.

Sample:

CREATE TABLE dbo.tbl_users (
	id bigint IDENTITY (1, 1) NOT NULL ,
	column... nchar (50)  NOT NULL ,
	column...  char (50)  NOT NULL ,
	column...  NOT NULL ,
	column...  NOT NULL ,
) ON PRIMARY
GO

ALTER TABLE dbo.tbl_users WITH NOCHECK ADD 
	CONSTRAINT IX_tbl_users UNIQUE  CLUSTERED 
	(
		email
	) WITH  FILLFACTOR = 90  ON PRIMARY 
GO

Please help!]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Am completely new to Database Technology. I have a problem, I need to convert a database script that i have been using to create my database in SQL 2000. The script includes all the Views, Stored Procedure and User roles and permissions.</p>
<p>I need to convert this script so I can run it on SQL 2008 and create a table for use on it.</p>
<p>Sample:</p>
<p>CREATE TABLE dbo.tbl_users (<br />
	id bigint IDENTITY (1, 1) NOT NULL ,<br />
	column&#8230; nchar (50)  NOT NULL ,<br />
	column&#8230;  char (50)  NOT NULL ,<br />
	column&#8230;  NOT NULL ,<br />
	column&#8230;  NOT NULL ,<br />
) ON PRIMARY<br />
GO</p>
<p>ALTER TABLE dbo.tbl_users WITH NOCHECK ADD<br />
	CONSTRAINT IX_tbl_users UNIQUE  CLUSTERED<br />
	(<br />
		email<br />
	) WITH  FILLFACTOR = 90  ON PRIMARY<br />
GO</p>
<p>Please help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vishal</title>
		<link>http://blog.sqlauthority.com/contact-me/contact-me-archive-9/#comment-125620</link>
		<dc:creator><![CDATA[Vishal]]></dc:creator>
		<pubDate>Wed, 30 Mar 2011 05:26:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/#comment-125620</guid>
		<description><![CDATA[may i know in which format we should store age in terms of year and month]]></description>
		<content:encoded><![CDATA[<p>may i know in which format we should store age in terms of year and month</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: srinivas</title>
		<link>http://blog.sqlauthority.com/contact-me/contact-me-archive-9/#comment-125366</link>
		<dc:creator><![CDATA[srinivas]]></dc:creator>
		<pubDate>Mon, 28 Mar 2011 14:21:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/#comment-125366</guid>
		<description><![CDATA[Hi Pinal,
 
Thanks for your session at teched 2011 .

I am having question .We have hosted 500 databases in a single instance.

Now ,I have problem to identify the databases that are being not used.


Its difficult to find these databases which are not used.Can you let me 

know whether any good soultion for this.


Thanks
Srinivas]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>Thanks for your session at teched 2011 .</p>
<p>I am having question .We have hosted 500 databases in a single instance.</p>
<p>Now ,I have problem to identify the databases that are being not used.</p>
<p>Its difficult to find these databases which are not used.Can you let me </p>
<p>know whether any good soultion for this.</p>
<p>Thanks<br />
Srinivas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PRITHVIIRAJ MK</title>
		<link>http://blog.sqlauthority.com/contact-me/contact-me-archive-9/#comment-125354</link>
		<dc:creator><![CDATA[PRITHVIIRAJ MK]]></dc:creator>
		<pubDate>Mon, 28 Mar 2011 12:47:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/#comment-125354</guid>
		<description><![CDATA[Hi Pinal,
I would like to know wether we can update all the column in a table using Update statement....
Can you suggest me what type of query we can use to update all the column of a table....
Note: the table is created dynamically....

Hope you will respond to my query....

Thanks in advance....

Thanks &amp; Regards
Prithviraj MK]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,<br />
I would like to know wether we can update all the column in a table using Update statement&#8230;.<br />
Can you suggest me what type of query we can use to update all the column of a table&#8230;.<br />
Note: the table is created dynamically&#8230;.</p>
<p>Hope you will respond to my query&#8230;.</p>
<p>Thanks in advance&#8230;.</p>
<p>Thanks &amp; Regards<br />
Prithviraj MK</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: feroz</title>
		<link>http://blog.sqlauthority.com/contact-me/contact-me-archive-9/#comment-125005</link>
		<dc:creator><![CDATA[feroz]]></dc:creator>
		<pubDate>Fri, 25 Mar 2011 13:05:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/#comment-125005</guid>
		<description><![CDATA[I used the code below to move the Model database and Model log file to new locations.

ALTER DATABASE database_name MODIFY FILE ( NAME = logical_name , FILENAME = &#039;new_path&#039; )

After running the commands I stopped the SQL server and moved the physical files to the correct location.

Now I am unable to start SQL server, I get error 

I think the problem maybe that for FILENAME=new_path I put &quot;J:\SQL Server\MSSQL.1\MSSQL\Data&quot;
but did not include model.mdf and modellog.ldf in the file path.

Now I couldnt start my database engine.. How to overcome from this prob??]]></description>
		<content:encoded><![CDATA[<p>I used the code below to move the Model database and Model log file to new locations.</p>
<p>ALTER DATABASE database_name MODIFY FILE ( NAME = logical_name , FILENAME = &#8216;new_path&#8217; )</p>
<p>After running the commands I stopped the SQL server and moved the physical files to the correct location.</p>
<p>Now I am unable to start SQL server, I get error </p>
<p>I think the problem maybe that for FILENAME=new_path I put &#8220;J:\SQL Server\MSSQL.1\MSSQL\Data&#8221;<br />
but did not include model.mdf and modellog.ldf in the file path.</p>
<p>Now I couldnt start my database engine.. How to overcome from this prob??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PRMP</title>
		<link>http://blog.sqlauthority.com/contact-me/contact-me-archive-9/#comment-125004</link>
		<dc:creator><![CDATA[PRMP]]></dc:creator>
		<pubDate>Fri, 25 Mar 2011 12:37:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/#comment-125004</guid>
		<description><![CDATA[Hi Pinal,

I have read many of your articles and has helped a lot. 

Can you please brief me as to if it&#039;s possible to import the following data into SQl Server and the best way to go ahead with it. A sample of the data is given below:

--Columns


&lt;b&gt;Column1&lt;/b&gt;
&lt;b&gt;Column2&lt;/b&gt;
&lt;b&gt;Column3&lt;/b&gt;
&lt;b&gt;Column4&lt;/b&gt;
&lt;b&gt;Column5&lt;/b&gt;


--Data

XYZ
999999
ABC
9999999
2011-03-25 06:01:00.0



DEF
888888
GHI
8888888
2011-03-24 06:01:41.0




Thanks for your help.

PRMP]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>I have read many of your articles and has helped a lot. </p>
<p>Can you please brief me as to if it&#8217;s possible to import the following data into SQl Server and the best way to go ahead with it. A sample of the data is given below:</p>
<p>&#8211;Columns</p>
<p><b>Column1</b><br />
<b>Column2</b><br />
<b>Column3</b><br />
<b>Column4</b><br />
<b>Column5</b></p>
<p>&#8211;Data</p>
<p>XYZ<br />
999999<br />
ABC<br />
9999999<br />
2011-03-25 06:01:00.0</p>
<p>DEF<br />
888888<br />
GHI<br />
8888888<br />
2011-03-24 06:01:41.0</p>
<p>Thanks for your help.</p>
<p>PRMP</p>
]]></content:encoded>
	</item>
</channel>
</rss>
