<?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: SQL SERVER &#8211; How to ALTER CONSTRAINT</title>
	<atom:link href="http://blog.sqlauthority.com/2011/04/24/sql-server-how-to-alter-constraint/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2011/04/24/sql-server-how-to-alter-constraint/</link>
	<description>SQL, SQL Server, MySQL, Big Data and NoSQL</description>
	<lastBuildDate>Wed, 19 Jun 2013 20:36:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: mehjabeen</title>
		<link>http://blog.sqlauthority.com/2011/04/24/sql-server-how-to-alter-constraint/#comment-484636</link>
		<dc:creator><![CDATA[mehjabeen]]></dc:creator>
		<pubDate>Wed, 29 May 2013 06:22:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12672#comment-484636</guid>
		<description><![CDATA[how to remove constraint which i dont gave the constraint name my syntax is
CREATE TABLE emp
(
   e_id         NUMBER,
   first_name   VARCHAR2 (15),
   last_name    VARCHAR2 (15),
   doj          DATE,
   salary       NUMBER (10),
   d_id         NUMBER (3),
   l_id         NUMBER (3),
   week_off     VARCHAR2 (15) NOT NULL,
   mngr_id      NUMBER (3),
   pan_no       VARCHAR2 (10) UNIQUE,
   phone_no     NUMBER (20)
)
i want remove the mngr_id constraint
plz reply]]></description>
		<content:encoded><![CDATA[<p>how to remove constraint which i dont gave the constraint name my syntax is<br />
CREATE TABLE emp<br />
(<br />
   e_id         NUMBER,<br />
   first_name   VARCHAR2 (15),<br />
   last_name    VARCHAR2 (15),<br />
   doj          DATE,<br />
   salary       NUMBER (10),<br />
   d_id         NUMBER (3),<br />
   l_id         NUMBER (3),<br />
   week_off     VARCHAR2 (15) NOT NULL,<br />
   mngr_id      NUMBER (3),<br />
   pan_no       VARCHAR2 (10) UNIQUE,<br />
   phone_no     NUMBER (20)<br />
)<br />
i want remove the mngr_id constraint<br />
plz reply</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #026 &#124; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2011/04/24/sql-server-how-to-alter-constraint/#comment-464702</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #026 &#124; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sat, 27 Apr 2013 01:31:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12672#comment-464702</guid>
		<description><![CDATA[[...] How to ALTER CONSTRAINT Very simple straight to the script blog post. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] How to ALTER CONSTRAINT Very simple straight to the script blog post. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yogesh</title>
		<link>http://blog.sqlauthority.com/2011/04/24/sql-server-how-to-alter-constraint/#comment-427883</link>
		<dc:creator><![CDATA[yogesh]]></dc:creator>
		<pubDate>Tue, 26 Feb 2013 12:38:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12672#comment-427883</guid>
		<description><![CDATA[how to apply constraint for valid email address in oracle]]></description>
		<content:encoded><![CDATA[<p>how to apply constraint for valid email address in oracle</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER &#8211; Various Ways to Create Constraints &#8211; Quiz &#8211; Puzzle &#8211; 17 of 31 &#171; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2011/04/24/sql-server-how-to-alter-constraint/#comment-239874</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Various Ways to Create Constraints &#8211; Quiz &#8211; Puzzle &#8211; 17 of 31 &#171; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Wed, 18 Jan 2012 01:31:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12672#comment-239874</guid>
		<description><![CDATA[[...] Key with Specific Name when Creating Table Creating Primary Key, Foreign Key and Default Constraint How to ALTER CONSTRAINT Disable CHECK Constraint – Enable CHECK Constraint Query to Display Foreign Key Relationships and [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Key with Specific Name when Creating Table Creating Primary Key, Foreign Key and Default Constraint How to ALTER CONSTRAINT Disable CHECK Constraint – Enable CHECK Constraint Query to Display Foreign Key Relationships and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sunny</title>
		<link>http://blog.sqlauthority.com/2011/04/24/sql-server-how-to-alter-constraint/#comment-140924</link>
		<dc:creator><![CDATA[Sunny]]></dc:creator>
		<pubDate>Tue, 14 Jun 2011 18:38:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12672#comment-140924</guid>
		<description><![CDATA[We can prevent constraints.......

create table x
(
id int not null,
salary money not null constraint check_sale check(salary&gt;0)
)
select * from x
insert into x values (1,-8)
alter table x nocheck constraint check_sale]]></description>
		<content:encoded><![CDATA[<p>We can prevent constraints&#8230;&#8230;.</p>
<p>create table x<br />
(<br />
id int not null,<br />
salary money not null constraint check_sale check(salary&gt;0)<br />
)<br />
select * from x<br />
insert into x values (1,-8)<br />
alter table x nocheck constraint check_sale</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sbn</title>
		<link>http://blog.sqlauthority.com/2011/04/24/sql-server-how-to-alter-constraint/#comment-131554</link>
		<dc:creator><![CDATA[sbn]]></dc:creator>
		<pubDate>Wed, 27 Apr 2011 14:31:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12672#comment-131554</guid>
		<description><![CDATA[wow, thanks imran. i am try it]]></description>
		<content:encoded><![CDATA[<p>wow, thanks imran. i am try it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sbn</title>
		<link>http://blog.sqlauthority.com/2011/04/24/sql-server-how-to-alter-constraint/#comment-131553</link>
		<dc:creator><![CDATA[sbn]]></dc:creator>
		<pubDate>Wed, 27 Apr 2011 14:29:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12672#comment-131553</guid>
		<description><![CDATA[thanks madhivanan, previously I also think the same as your :)]]></description>
		<content:encoded><![CDATA[<p>thanks madhivanan, previously I also think the same as your :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nakul Vachhrajani</title>
		<link>http://blog.sqlauthority.com/2011/04/24/sql-server-how-to-alter-constraint/#comment-131314</link>
		<dc:creator><![CDATA[Nakul Vachhrajani]]></dc:creator>
		<pubDate>Tue, 26 Apr 2011 17:41:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12672#comment-131314</guid>
		<description><![CDATA[Hello!

It would be nice to understand the reason why SQL Server does not allow us to modify, i.e. alter an already established constraint.

Any plans on writing an article on the same?]]></description>
		<content:encoded><![CDATA[<p>Hello!</p>
<p>It would be nice to understand the reason why SQL Server does not allow us to modify, i.e. alter an already established constraint.</p>
<p>Any plans on writing an article on the same?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2011/04/24/sql-server-how-to-alter-constraint/#comment-131276</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Tue, 26 Apr 2011 14:12:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12672#comment-131276</guid>
		<description><![CDATA[CREATE TABLE [dbo].[TestTableCity]
(
Id int identity(1,1),
[City] AS (‘City’+CAST(Id VARCHAR(50)))
,CityName VARCHAR(50)
)]]></description>
		<content:encoded><![CDATA[<p>CREATE TABLE [dbo].[TestTableCity]<br />
(<br />
Id int identity(1,1),<br />
[City] AS (‘City’+CAST(Id VARCHAR(50)))<br />
,CityName VARCHAR(50)<br />
)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran Mohammed</title>
		<link>http://blog.sqlauthority.com/2011/04/24/sql-server-how-to-alter-constraint/#comment-131126</link>
		<dc:creator><![CDATA[Imran Mohammed]]></dc:creator>
		<pubDate>Tue, 26 Apr 2011 00:04:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12672#comment-131126</guid>
		<description><![CDATA[@Sbn

I don;t see a reason why you have to do concatination in table, you can always do this in view that does a select on this table.

For Ex:

CREATE TABLE [dbo].[TestTableCity]
(
ID int IDENTITY(1,1)  not null
,CityName VARCHAR(50)
)

CREATE VIEW [Vw_TestTableCity]
AS
Select &#039;City&#039;+ Convert(varchar(46),ID) AS City
,CityName 
From [TestTableCity]

go

Insert into TestTableCity values (&#039;Hyderabad&#039;)

go
Select * from [Vw_TestTableCity]


But if you want to do it your own way which I don;t recommend, below is a way,

CREATE TABLE [dbo].[TestTableCity]
(
[City] AS (&#039;City&#039;+ Convert(varchar(46),ID))
,CityName VARCHAR(50)
,ID int IDENTITY(1,1)  not null
)
go
Insert into TestTableCity values (&#039;Hyderabad&#039;)
go
Select * from TestTableCity 


~ IM.]]></description>
		<content:encoded><![CDATA[<p>@Sbn</p>
<p>I don;t see a reason why you have to do concatination in table, you can always do this in view that does a select on this table.</p>
<p>For Ex:</p>
<p>CREATE TABLE [dbo].[TestTableCity]<br />
(<br />
ID int IDENTITY(1,1)  not null<br />
,CityName VARCHAR(50)<br />
)</p>
<p>CREATE VIEW [Vw_TestTableCity]<br />
AS<br />
Select &#8216;City&#8217;+ Convert(varchar(46),ID) AS City<br />
,CityName<br />
From [TestTableCity]</p>
<p>go</p>
<p>Insert into TestTableCity values (&#8216;Hyderabad&#8217;)</p>
<p>go<br />
Select * from [Vw_TestTableCity]</p>
<p>But if you want to do it your own way which I don;t recommend, below is a way,</p>
<p>CREATE TABLE [dbo].[TestTableCity]<br />
(<br />
[City] AS (&#8216;City&#8217;+ Convert(varchar(46),ID))<br />
,CityName VARCHAR(50)<br />
,ID int IDENTITY(1,1)  not null<br />
)<br />
go<br />
Insert into TestTableCity values (&#8216;Hyderabad&#8217;)<br />
go<br />
Select * from TestTableCity </p>
<p>~ IM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sbn</title>
		<link>http://blog.sqlauthority.com/2011/04/24/sql-server-how-to-alter-constraint/#comment-130849</link>
		<dc:creator><![CDATA[sbn]]></dc:creator>
		<pubDate>Sun, 24 Apr 2011 11:59:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=12672#comment-130849</guid>
		<description><![CDATA[Hello Pinal,

I want to make a table, with expression a coloumn_id combination varchar and identity int.
example : 
CREATE TABLE [dbo].[TestTableCity] 
(
  [City] AS (&#039;City&#039;+CAST(IDENTITY(1,1)) AS VARCHAR(50)))
  ,CityName VARCHAR(50)
)

please check my query, help help]]></description>
		<content:encoded><![CDATA[<p>Hello Pinal,</p>
<p>I want to make a table, with expression a coloumn_id combination varchar and identity int.<br />
example :<br />
CREATE TABLE [dbo].[TestTableCity]<br />
(<br />
  [City] AS (&#8216;City&#8217;+CAST(IDENTITY(1,1)) AS VARCHAR(50)))<br />
  ,CityName VARCHAR(50)<br />
)</p>
<p>please check my query, help help</p>
]]></content:encoded>
	</item>
</channel>
</rss>
