skip to main
|
skip to sidebar
CodeAddict
Home
BLOGS I READ
CONTACT
About Me
Home
ASP.NET
UTILITY FUNCTIONs
RESOLVE URL FNs
VALIDATORS
SECURITY_M.SHIP
SQLHELPER.CS
DATAACCESS.CS
GENERAL_SYNTAX
GRIDVIEW
GRIDVIEW EVENTS
GRIDVIEW_DATABOUND
ROW_CREATED
ROW_DATABOUND
ROW_COMMAND
ROW_EDITING
ROW_CANCELING_EDIT
ROW_UPDATING
ROW_UPDATED
ROW_DELETING
ROW_DELETED
SEL_INDEXCHANGED
SEL_INDEXCHANGING
SORTING
SORTED
PRE_RENDER
GRIDVIEW_TIPs'n'TRICKs
GRIDVIEW_LINKBUTTONS
SQL
UTILITY SPs
UTILITY FUNCTIONS
SCALAR FNs
TABLE VALUED FNs
GENERAL SYNTAX
AJAX
TOOLKIT CONTROLS
GENERAL SYNTAX
JAVASCRIPT
VALIDATIONS
GENERAL SYNTAX
JQUERY
LINQ
TELERIK
ENTITY FRAMEWORK
Fluent API
MVC
Mvc Scrap
VALIDATIONS
WRITE PAD
Sunday, July 28, 2013
How To- Check Primary Key Exists or not in Table
Sunday, July 28, 2013
Vikas Sharma
TO check primary key existence in table
IF
OBJECTPROPERTY
(
OBJECT_ID
(
'[dbo].[MyTestTable]'
),
'TableHasPrimaryKey'
)
=
1
PRINT
'[dbo].[MyTestTable] table has a primary key.'
ELSE
PRINT
'[dbo].[MyTestTable] table has no primary key.'
Posted in:
SQL
0 comments:
Post a Comment
Recent Posts
Categories
AJAX
(8)
Anonymous Method
(1)
ASP.NET
(31)
ASP.NET Core
(3)
Asp.Net Identity & MemberShip
(1)
ASP.NET UTILITY FUNCTIONS
(16)
Async_Await
(1)
Asynchronous
(1)
Authentication & Membership
(2)
BlOG_TIPS
(2)
BootStrap
(2)
Bundling Minification
(3)
C#
(13)
CAPTCHA
(2)
CLOUD
(2)
CSharp
(1)
Delegate
(5)
Dependency Injection
(1)
EF-CodeFirst
(3)
EF-MIGRATION
(2)
EMAIL
(1)
ENTITY FRAMEWORK
(10)
Events
(4)
ExtensionMethod
(1)
FILE_UPLOAD
(4)
FORM_AUTHENTICATION
(1)
Func_Action_Predicate
(1)
GENERAL SYNTAX_SQL
(1)
GENERAL_CODING_TIPS
(4)
GIT
(3)
GRIDVIEW
(16)
GRIDVIEW_LINKBUTTONS
(2)
GRIDVIEW_TIP's n Tricks
(14)
HTML EDITORS
(1)
HtmlHelpers
(1)
IoC
(1)
JAVASCRIPT
(15)
JQUERY
(19)
JQuery DataTables
(1)
JSON
(3)
LINQ
(29)
LocalDB
(1)
MISCELLANEOUS
(6)
MVC
(24)
MVC Scrap
(10)
NUGET
(2)
POP-UPs
(5)
REDIRECTION
(1)
REPOSITORY
(2)
Session
(1)
SimpleMemberShip
(3)
Sorting
(1)
SQL
(24)
SQL UTILITY FUNCTIONS
(13)
SQL_UTILITY_SPs
(5)
Stored Procedures
(1)
TELERIK
(1)
Unity
(1)
Unity scrap
(1)
URL_FUNCTIONS
(3)
VALIDATIONS
(13)
WCF
(2)
WebServices
(1)
WRITEPAD
(9)
Blog Archive
►
2019
(13)
►
April
(1)
►
March
(7)
►
February
(4)
►
January
(1)
►
2017
(41)
►
December
(1)
►
October
(3)
►
September
(25)
►
August
(3)
►
July
(8)
►
January
(1)
►
2016
(10)
►
August
(6)
►
July
(3)
►
June
(1)
►
2015
(56)
►
July
(5)
►
May
(3)
►
April
(7)
►
March
(9)
►
February
(6)
►
January
(26)
►
2014
(1)
►
March
(1)
▼
2013
(26)
►
December
(2)
►
September
(1)
►
August
(8)
▼
July
(14)
How to pass ASP.NET server side array to client side
How To- Send DataGridView Data in Email
SQL Server Database BackUp using C#
Export Gridview to PDF in ASP.Net
How To- Check Primary Key Exists or not in Table
SQl Server- Reset Identity Column in SQL Server
Check Internet Connection availability in ASP. Net
TableToString_ListToTable_Use3
JQuery Calendar Eg.
Only show Month\Year in Ajax Calendar
Various Selectors in JQuery
List MS SQL Table Sizes for All Tables in a Database
Detect AJAX postback in Global.asax
Browser Detection for ASP.Net Ajax
►
April
(1)
►
2012
(13)
►
October
(2)
►
June
(1)
►
May
(5)
►
April
(1)
►
March
(4)
►
2011
(63)
►
October
(1)
►
September
(5)
►
August
(5)
►
June
(42)
►
May
(10)
Followers
0 comments:
Post a Comment