CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 6/26/2007 12:20:27 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 7 Views: 20 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
8 Items, 1 Pages 1 |< << Go >> >|
justanotherguy_
Asp.Net User
folders in stored procedures folder pls help6/26/2007 12:20:27 AM

0/0

I have so many stored procedures that its becoming difficult to have an overview. Is there a way to create folders in the stored procedure folder (through server explorer in visual studio 2005 pro or another way?) its a ms sql 2005 database

 

thx

 

justanotherguy!

justanotherguy_
Asp.Net User
Re: folders in stored procedures folder pls help6/26/2007 6:13:21 PM

0/0

no one that knows an answer?

mike beal
Asp.Net User
Re: folders in stored procedures folder pls help6/26/2007 6:53:24 PM

0/0

In SQL Server 2005 you manage your stored procedures using Projects. From the Tools menu select New Project give it a good overall name and find a safe place on your disk. It creates a 'Solution' with that name you put in the top box. You can then right click that solution in the Solution Explorer and add other 'projects' which are really just other folders near or in your solution folder. When you reopen this solution all the 'projects' you have added show nicely in the Explorer.

You can then add new scripts, drag and drop scripts across project boundaries, rename scripts or open the scripts by double clicking them.

I feel sorry for you since I was in the same boat - not discovering how the darn thing works until well into a project. After creating several 'projects' (remember these are just folders) under my solution I had to open each and everyone of my db scripts (over a hundred) using the normal right click script and choose 'Modify' and then in the File menu (last entry) you have a menu item "Move ScriptName.sql to..." and a pop up menu is shown with all your folders (projects).

It's clumsy but beats the hell out of a raw list of all your procedures once you feel your way around the thing. The absolute best and quite critical feature of it is that it allows you to search all your project (folder) files for keyword searches even names of the files. That really saved my butt when I added an entire new table for an older one. It allowed me to hone right in on all procedures that reference that old table.

Good Luck

It made me nervous at first to have stored procedures in the database and a separate copy on disk but after a while it was no big deal. I use the disk copies now to edit any changes. If I can't find one or forgot to add it to my projects I just pull it up with Modify and add it.

justanotherguy_
Asp.Net User
Re: folders in stored procedures folder pls help6/27/2007 4:24:16 PM

0/0

thanks for the reply @ mike 

I think I managed to accomplish the technique you are using. It's indeed a bit clumsy having to manually change every procedure from place. I'll see how this way of working changes the behaviour of automated processes as choosing the created procedures for data-adapters. I cant understand why there doesnt seem to be the simple possibiliy to create a folder inside of the stored procedures folder...

 

greetz!

justanotherguy

mike beal
Asp.Net User
Re: folders in stored procedures folder pls help6/27/2007 6:48:30 PM

0/0

I agree. The Projects concept and use doesn't really effect the database directly so I don't see how it could effect any use of the database.

As I mentioned besides giving your some organization I do like how you can then do a text search on all the scripts in your project. That feature alone makes me want to use Projects but it's up to you.

justanotherguy_
Asp.Net User
Re: folders in stored procedures folder pls help6/27/2007 7:14:04 PM

0/0

Hi,

 What I ment with behaviour is for ex : the ease of adding datasets. When you want to use your own stored procedures with for ex : a datasets it gives you the list of all the stored procedures in your database. I'm sure there is a way of binding this list to another location = a folder in which you store the procedures, but I havent spent time yet on figuring that out.

Another something i was wondering about is = After I create the new project (folder) it then automaticly creates the script maps. when I right click one of my stored procedures in the server explorer i can choose to add this to the project's create scripts map. this map consists out of stored procedures that are created at runtime (the ones in create scripts do anyway). They check if the procedure exists and replace them if so. This technique is also used when creating a dataset with the option of creating stored procedures for it. The thing i was wondering about is : IF 200 employees use 1 stored procedures (with for ex an intranet website-gridview)...then the database checks 200 times if the procedure exists, deletes 200 times this procedure, has to allocate memory 200 times, write the new procedure to it 200 times and Read the script 200x and execute it 200 times....all that against (if i am not mistaking ofcourse) 1x read the procedure and execute the procedure in a simple stored procedure call.

I'm most probably overseeing alot of things and having lack of deep insight  (i'm a network admin actually)

thx again

Justanotherguy!

mike beal
Asp.Net User
Re: folders in stored procedures folder pls help6/27/2007 7:45:41 PM

0/0

I'm sure I'm not following you 100% but I wouldn't disturb how SQL stores your scripts at all. You will end up with one set of scripts in the database and a separate (hopefully mirrored) set on disk.

When I go to create a new script and I have a Project full of my scripts opened I don't right click Object Explorer to create my new script I right click the project folder (Solution Explorer) and select new query. I write the query, save it to disk (in the Project) and then execute it against the database - boom, it's in the db and on hard disk.

It you create a new stored procedure in VS then it won't be in your Project but it's easy to add it to your project at a later point an it's no big deal if you leave one or two out of the project.

justanotherguy_
Asp.Net User
Re: folders in stored procedures folder pls help6/27/2007 11:44:35 PM

0/0

I understand you completely now. It is indeed a good way to store your procedures for future use in other projects. you have a good way of managing your scripts, editing and adding them to new projects. I will most certainly use this technique for the procedures that I will use in the future.

thank you for the tip! and success with developing!!

justanotherguy!

8 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Pro ASP.NET 2.0 E-commerce in C# 2005 Authors: Paul Sarknas, Pages: 617, Published: 2006
The Internet Encyclopedia: A - F Authors: Hossein Bidgoli, Pages: 880, Published: 2004
Altova® DatabaseSpy 2008 User & Reference Manual Authors: Altova, Pages: 0, Published: -1
Content and Workflow Management for Library Web Sites: Case Studies Authors: Holly Yu, Pages: 259, Published: 2005
Code Centric: T-SQL Programming with Stored Procedures and Triggers Authors: Garth Wells, Pages: 692, Published: 2001
How to Conduct Behavioral Research Over the Internet: A Beginner's Guide to HTML and CGI/Perl Authors: R. Chris Fraley, Pages: 299, Published: 2004
Professional Crystal Reports for Visual Studio .NET Authors: David McAmis, Pages: 384, Published: 2004
Classroom Management Simplified Authors: Elizabeth Breaux, Pages: 153, Published: 2005
Pro SQL Server 2005: Thomas ... [et Al.]. Authors: Thomas Rizzo, Adam Machanic, Robin Dewson, Louis Davidson, Julian Skinner, Jan D. Narkiewicz, Joseph Sack, Rob Walters, Pages: 674, Published: 2005
ASP.NET Kick Start: Kick Start Authors: Stephen Walther, Pages: 624, Published: 2002

Web:
MSDN Team Foundation Server - Administration Work Item folder does ... Could you please to see if other databases have the same problem? ... They only contain a folder "System Stored Procedure", but no stored procedure at the ...
CodeProject: MSSQL/MSDE Server Folder Browser. Free source code ... Browse for folder on computer with MSSQL server from remote computer; ... since we will be using some stored procedure that only exists in Master database. ...
Create package variations for z/OS DB2 stored procedures Aug 10, 2006 ... For V9 native SQL stored procedures, the Packages folder is ... Please take a moment to complete this form to help us better serve you. ...
Folder Upload - ASP.NET Forums I don't know how to pass the folder location to the stored procedure. Can anyone help me this or direct me to resources which will guide me ...
mojoPortal - Forums - Developer Forum - Unable to create ... Please help me. ... However these stored procedures are just for basic stuff and really ... Extensions.dll referenced from the _libs folder. ...
distribution cleanup cannot clean up snapshot folder - SQL Server - Please Note : I have a folder containing .sql files. ... Need help with a sp Hello, I am writing a stored procedure that is supposed to get info out of a ...
Executing SSIS Packages Executing all SSIS packages in a folder: three methods ..... an ssis package in mssql stored procedure) possible please mail me [email protected] ...
TheMSsForum.com >> Reporting Svcs >> restrict report folders - The ... Please help -- vpdj @ yahoo.com TIA Tag: restrict report folders Tag: 80681 ..... Parameter not being passed to stored procedure eI have created a report ...
Management Studio: Project Hierarchy my existing stored procedures to the "Queries" folder and realized the files ... Please help!!! Author. 22 Mar 2006 6:11 PM ...
Where do I need to write stored procedure ? in Data adapter or SQL ... Expand Programmability -> this has a folder named Stored procedure. ... any body help me please.? can some one please help me i need to publish my web site? ...




Search This Site:










ldap membership provider via ssl

login problems - possibly a problem with iis

profile updating after new user create

permission rights

active directory authentication

how to use user profile with custom authentication?

retrieve userid on register login

i configured a new application but now i have lost my code

creating simple membershipprovider with express products

view source produces login page

dbo.aspnet_membership_getpasswordwithformat

two logins, problem with authentication cookies?

files protection on the web - which of the methods is best?

access folder outside webroot?

membership.createuser

user roles and privileges

user authorization

change application for providers on a per-request basis

unable to successfully login on iis

how to set defaultfocus on login's username textbox?

how to display user information using createuserwizard control

form authentication ignored on live server - asp.net 2.0

http header

a problem with getnumberofuseronline ?

forms authorization vulnerability fixed?

login page help needed

authentication and webclient

windows ad-user locking problem-third attempt

view domain,username & pc name

how do i authenticate users in oracle database?

  Privacy | Contact Us
All Times Are GMT