Software Development

Pages

  • Home
  • ASP.NET
  • SQL Queries
  • Crystal Report using datatable
  • Passing DataTable Values to HTML

Saturday, 24 October 2020

SQL DEFAULT Constraint on ALTER TABLE

 ALTER TABLE Persons

ADD CONSTRAINT dfCity
DEFAULT 'Sangli' FOR City;
Posted by IMPERIUM INFOTECH at 00:14 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Tuesday, 13 October 2020

Adding a column name and value in sql select command

 select name,rollno, class, 'No' as vacationing from stutable;

Posted by IMPERIUM INFOTECH at 23:14 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Adding Datatble column at specific Index in C#

  DataColumn Col = dt.Columns.Add("ColName", System.Type.GetType("System.Boolean"));

                Col.SetOrdinal(0);// to put the column in position 0;

Posted by IMPERIUM INFOTECH at 23:11 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

About Me

IMPERIUM INFOTECH
View my complete profile

Blog Archive

  • ▼  2020 (4)
    • ▼  October (3)
      • SQL DEFAULT Constraint on ALTER TABLE
      • Adding a column name and value in sql select command
      • Adding Datatble column at specific Index in C#
    • ►  March (1)
  • ►  2017 (1)
    • ►  January (1)
Ethereal theme. Powered by Blogger.