Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
The name was created within the table definition.john76 said:Is this a default you created explicitly or within the table definition?
This is exactly what I'm trying to figure out.john76 said:...but figuring out the name SQL Server gave the constraint might be a little involved...
DECLARE @cTable VARCHAR(100), @cColumn VARCHAR(100)
SET @cTable = 'myTable'
SET @cColumn = 'myColumn'
SELECT sysobjects.name from sysobjects
JOIN syscolumns ON
(sysobjects.id = syscolumns.cdefault
AND sysobjects.parent_obj = syscolumns.id)
WHERE sysobjects.parent_obj = object_id(@cTable)
AND sysobjects.xtype IN
('C ','PK','UQ','F ', 'D ')
AND syscolumns.name = @cColumn