SQL Server 修改数据库字段类型,提示需要删除表或者重新建表

SQL Server 修改数据库字段类型,提示需要删除表或者重新建表,提示错误信息如下:

Saving changes is not permitted. The changes that you have made require the following tables to be dropped and re-created.

打开SQL Server Management Studio –> 选择工具Tools –>选项options –> Designers -> Disable “Prevent saving changes that require the table re-creation” ,把前面的勾去掉,重新保存就OK了。

 

wordpress中显示多少人浏览了文章

可以使用WP-PostViews插件

使用方法如下:

  1. Open wp-content/plugins Folder
  2. Put: Folder: wp-postviews
  3. Activate WP-PostViews Plugin
  4. Go to WP-Admin -> Settings -> PostViews to configure the plugin.

Usage

  1. Open wp-content/themes/<YOUR THEME NAME>/index.php
  2. You may place it in archive.php, single.php, post.php or page.php also.
  3. Find: <?php while (have_posts()) : the_post(); ?>
  4. Add Anywhere Below It (The Place You Want The Views To Show): <?php if(function_exists('the_views')) { the_views(); } ?>
  5. Or you can use the shortcode 295 views or 755 views (where 1 is the post ID) in a post