search
Homephp教程php手册在SQL Server 2005修改存储过程

在SQL Server 2005修改存储过程

Jun 13, 2016 am 10:06 AM
serversqluseReviseexiststorageprocess

初次使用SQL Server 2005时,在修改了存储过程后竟然不知道如何保存。
我在SQL Server Management Studio的Progammability中找到相应的存储过程,点击右键并选择“Modify”,会打开编辑窗口,我修改后点击保存,却出现“Save File As”对话框,让我选择保存的路径和文件名,也就是保存为另外一个文件,而不是直接保存修改的存储过程。不知道为什么要这样设计,我想一般人刚开始使用时都会像我这样操作。我在SQL Server Management Studio中也没找到其他操作方法。真让人郁闷!
后来在网上找到一篇文章“Saving Stored Procedure”才知道如何保存修改的存储过程,原来是通过点击“Execute”按钮(或者按F5键)。
 本来我以为这个操作是直接执行存储过程的。后来我发现,当通过“Modify”打开编辑窗口时,在存储过程之前会加上“ALTER”关键字,所以当通过“Execute”存储过程实际就是修改存储过程,并不执行存储过程中的SQL语句。这让我想起了VS 2003和VS 2005,当通过它们编辑存储过程时,也是在存储过程之前会加上“ALTER”关键字,但在VS 2003和VS 2005中,点击保存按钮会直接保存对存储过程的修改。我觉得SQL Server Management Studio中这样的设计并不是很合理。
出处:dudu-快乐程序员


Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.