易截截图软件、单文件、免安装、纯绿色、仅160KB

textarea中的内容通过添加按钮添加到SQL数据库中

我定义了一个 textarea:
  <tr bgcolor="#CCCCCC" align="center" valign="bottom">
            <td align="right" valign="top" class="style1"  >文章内容:</td>
            <td width="83%" bgcolor="#FFFFFF" align="left">
                <textarea  cols="75" rows="6" style="width: 1000px; height: 576px"></textarea>
            </td>
            </tr>
            <tr bgcolor="#abb8d6">
            <td colspan="2" width="588" align="center" height="55">
                <asp:Button ID="Button1" runat="server" Text="添加" onclick="Button1_Click" Width="55px" />
                    &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
                <asp:Button ID="Button2" runat="server" Text="取消" onclick="Button2_Click" Width="55px" />
            </td>
            </tr>
现在想通过“添加”按钮将textarea中的内容添加到指定的数据库中,该怎么办?


相关文档:

SQL 2000和2005 树形递归法小汇总 收藏

--测试数据
if OBJECT_ID('tb') is not null
drop table tb
go
CREATE TABLE tb(ID char(3),PID char(3),Name nvarchar(10))
INSERT tb SELECT '001',NULL ,'山东省'
UNION ALL SELECT '002','001','烟台市'
UNION ALL SELECT '004','002','招远市'
UNION ALL SELECT '003','001','青岛市'
UNION ALL SELECT '00 ......

Rebuild indexes online with SQL Server 2005

Rebuild indexes online with SQL Server 2005
http://blogs.techrepublic.com.com/datacenter/?p=249
Online index rebuild
SQL Server 2005 introduces the ability to rebuild your indexes in an
online fashion so that other processes are able to access the table
while the rebuild is occurring. Because y ......

VC++的ADO连接SQL Server步骤

 1:SQL  Server数据库配置
 
 
 
开启服务器
 
 
托盘显示服务器启动
 
 
 
2:在StaAfx.h 中添加如下代码
#import "C:\\Program Files\\Common Files\\System\\ado\\msado15.dll" no_namespace      rename("EOF","adoEOF")rena ......

Tips on Optimizing SQL Server Clustered Indexes

http://www.sql-server-performance.com/tips/clustered_indexes_p1.aspx
As a rule of thumb, every table should have a clustered index. Generally, but not always, the clustered index should be on a column that monotonically increases--such as an identity column, or some other column where the value is ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号