
SQL Server
zexu82
这个作者很懒,什么都没留下…
展开
-
insert
INSERT INTO [riteweigh].[dbo].[tbl_store_product_movement] ([movement_id] ,[site_store_id] ,[product_id] ,[movement_date] ,[movement_descrip原创 2011-06-09 18:38:00 · 323 阅读 · 0 评论 -
Error - Cannot add diagram to SQL Server 2005 DB
ERROR: Cannot add diagram to SQL Server 2005 DB: Database diagram support objects cannot be installed because this database does not have a valid ownerSolution:run solution:EXEC sp_dbcmptlevel 'db_name', '90';ALTER AUTHORIZATION ON DATABASE::db_name TO db原创 2011-04-22 00:45:00 · 412 阅读 · 0 评论 -
SQL server Management Studio Express auto generate change script
<br />the change scripts only can be generated when we make change on Database Diagrams. (e.g. add/edit/delete table)<br /> <br />tools -> options -> designers<br /> <br />check box - Auto generate change scripts<br /> <br /> <br />when we change the diagr原创 2011-05-05 19:21:00 · 346 阅读 · 0 评论 -
create sqlserver login user and add it to certain db user (sqlserver authentication)
create a user in sqlserverserver -> security - > right click logins -> new loginin General page,fill login namesql server authentic原创 2011-09-24 00:31:05 · 1217 阅读 · 0 评论 -
create a function returns a table (using cursor)
ALTER FUNCTION [dbo].[GetWeighingInfoByTransactionId] ( -- Add the parameters for the function here @transaction_id UniqueIdentifier原创 2011-09-30 19:52:04 · 952 阅读 · 0 评论 -
update a table by selected value from other table.
UPDATE TableSET Table.col1 = other_table.col1, Table.col2 = other_table.col2FROM TableINNER JOIN other_tableON Table.id = other_table.idexample: update [Pharmapod].[原创 2012-11-03 00:36:51 · 492 阅读 · 0 评论 -
Database publishing wizard
download data from sql server原创 2011-07-21 22:51:58 · 554 阅读 · 0 评论