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

sql project dll deploy

To generate a deployment script using generate scripts

Open
Management Studio and connect to the SQL Server instance where the
managed assembly or database object to be deployed is registered.
In the Object Explorer
, expand the <server name>
and Databases
trees. Right-click the database where the managed database object is registered, select Tasks
, and then select Generate Scripts
. The Script Wizard opens.
Select the database from the list box and click Next
.
In the Choose Script Options
pane, click Next
, or change the options and then click Next
.
In the Choose Object Types
pane, choose the type of database object to be deployed. Click Next
.
For every object type selected in the Choose Object Types
pane, a Choose <type>
pane is presented. In this pane, you can choose from all the instances
of that database object type registered in the specified database.
Select one or more objects and click Next
.
The Output Options
pane comes up when all of the desired database object types have been selected. Select Script to file
and specify a file path for the script. Select Next
. Review your selections and click Finish
. The deployment script is saved to the specified file path.


相关文档:

SQL常用语句


SQL常用语句
SQL语句先前写的时候,很容易把一些特殊的用法忘记,我特此整理了一下SQL语句操作。
一、基础
1、说明:创建数据库
CREATE DATABASE database-name
2、说明:删除数据库
drop database dbname
3、说明:备份sql server
--- 创建 备份数据的 device
USE master
EXEC sp_addumpdevice 'disk ......

Oracle维护常用SQL语句

1、查看表空间的名称及大小
  select t.tablespace_name, round(sum(bytes/(1024*1024)),0) ts_size
  from dba_tablespaces t, dba_data_files d
  where t.tablespace_name = d.tablespace_name
  group by t.tablespace_name;
  
  2、查看表空间物理文件的名称及大小
  select tablespace_ ......

oracle中比较实用sql语句

-- 查看ORACLE 数据库中本用户下的所有表
SELECT table_name from user_tables;
-- 查看ORACLE 数据库中所有用户下的所有表
select user,table_name from all_tables;
-- 查看ORACLE 数据库中本用户下的所有列
select table_name,column_name from user_tab_columns;
-- 查看ORACLE 数据库中本用户下的所有列
se ......

SQL语句坚行转横列的一种方法

库位  货物编号 库存数
1     0101     50
1     0102     60
1     0103     50
2     0101     90
2     0103     100
2     0111     30
3     0101     12 ......

谈SQL Server 2005中的T SQL增强E


新的关系运算符 PIVOT/UNPIVOT/APPLY
1、PIVOT
PIVOT运算符将行旋转为列,并且可能同时执行聚合。使用PIVOT运算符时要注意的重要一点是,需要为它提供一个查询表达式,表达式使用视图、派生表或者是CTE只返回所关注的列。
2、UNPIVOT
UNPIVOT运算符执行与PIVOT运算符相反的操作;他将列旋转为行了。
3、APPLY ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号