Weblog Of Nirandas | home

Developer From INDIA

Generating tables for MySql providers

clock September 5, 2009 09:07 by author Nirandas

 While using MySQL connector/Net V6 and it's membership provider, the provider doesn't create tables it requires automaticly. After searching through internet, I got the solution. An extra attribute should be specified in order to create the schema automaticly.

More...

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Resizing a varchar column in MySql

clock April 29, 2008 05:41 by author
Today I was asked by my client to resize a text field in a MySql database. MySql provides an easy way to resize or modify any column in your table using alter table .. modify syntax. alter table Articles modify Title varchar (255) ;(table name and column names are changed!)Here the column `Title` from the table `Articles` is modified to a varchar of the length 255. Note: if the column's length was more than 255, all the values in the columns will be truncated to fit the current size. You can use this statement to modify any datatype, not just varchars.To verify that all went well, run the explain tablename command before and after executing the alter table modify statement.
Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Currently rated 1.0 by 1 people

  • Currently 1/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Who Am I?

I am Nirandas - a developer from INDIA

Sign in