that works for a table, but the stored proc doesn't do what i was expecting.
It is missing the part at the top that drops it if it exists:
if exists (select * from dbo.sysobjects where id =
object_id(N'[PR_RPT_RELATED_SVCS_OVERVIEW]') and OBJECTPROPERTY(id,
N'IsProcedure') = 1)
drop procedure [PR_RPT_RELATED_SVCS_OVERVIEW]
Having this allows you to update the proc and then just run it again without
having to worry about dropping it as an extra step.
Speaking of this, there aren't the same menu options in the context sensitve
popup that allows you to run script thru VS 2005 (run, run selection). in
2003, i have my script files in my DB project and i checkout a file, change
it, then run script all thru VS 2003 and then i check it back in. I don't
see this ability in VS 2005 :( How do i accomplish this thru VS 2005? What
good is a DB project in VS 2005 if i can't do this?
thanks
[quoted text, click to view] "WenYuan Wang" <v-wywang@online.microsoft.com> wrote in message
news:AdlpSwwMHHA.4020@TK2MSFTNGHUB02.phx.gbl...
> Hi TS,
>
> According to your description, I understand that you want to know whether
> or not there is an option "Generate Create Scripts" in Visual Studio 2005.
> If I misunderstand anything here, please don't hesitate to correct me.
>
> We are indeed sorry to say this is Break Change in VS 2005.
> Visual Studio 2005 can't provide this feature but we still can get this
> feature through SQL Management Studio 2005.
> We suggest you can use SQL Server Management Studio to generate scripts as
> the following step.
> Right click your Table and select "Script Table as".
>
> We also would like to suggest you can submit this feedback to our product
> feedback center if you really want our product team add this feature in
> next version of Visual Studio.
>
http://connect.microsoft.com/site/sitehome.aspx?SiteID=210 > Any suggestion from our customer will be appreciated.
>
> Thanks for your understanding!
> Wen Yuan
> ===============================
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> ===============================
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>