Re: Use query or stored procedure

From: J West (jimw_at_fluffypaws.co.uk)
Date: 12/20/04

  • Next message: Marc Scheuner: "Re: Use query or stored procedure"
    Date: Mon, 20 Dec 2004 07:26:51 -0000
    
    

    Stord procedures are far more efficient for use with MSSQL than using
    embeded SQL (Not so for other databses) the only draw back is version
    control becomes more difficult. Also pay careful attention to naming stored
    procedures. Use a naming convention like GetTableNameAll, GetTableNameByID,
    UpdateTableName, DeleteTableName, etc..... Where TableName obviously is the
    name of the table that is being worked on. Things become a little wooly when
    dealing with joins etc... but if you don't do this then it becomes very
    difficult to pic the one stored proc out of the hundred or so (For very
    large databases) that you need to change.

    Regards

    James West

    "Alan" <NOSPAMalan_pltse@yahoo.com.au> wrote in message
    news:41c6189c@newsgroups.borland.com...
    >I am learning to use SQL Server and TADO.
    > I am going to write a small application to manage the data of membership,
    > which component is better to use if I add a new member to the table
    > Membership ?
    >
    > Should I use the TADOQuery to embed the SQL statement like:
    > INSERT INTO Membership values (......)
    >
    > OR write a stored procedure in SQL Server and pass the parameters to it ?
    >
    >


  • Next message: Marc Scheuner: "Re: Use query or stored procedure"

    Relevant Pages

    • Re: Replacing VS .NETs SQL Server Express Edition Integration
      ... As you said you already have an existing database that contains the ... membership structure, ... Replacing VS .NET's SQL Server Express Edition Integration ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: DataAdapters and Parameters
      ... server goes down and we need to check a customer's membership. ... using SQL Server and ASP.NET via our intranet. ... I guess I could go with a synchronized SQL database?... ... >> downtime backup, that is why I am currently working with Access. ...
      (microsoft.public.dotnet.framework.adonet)
    • Re: loop and recordset
      ... those members whose membership lapsed. ... Use the SQL language to return only the set of required ... This table obviously needs some constraints. ... ALTER TABLE enrollment_2 ADD ...
      (microsoft.public.access.modulesdaovba)
    • Re: Membership functions connect to Sql Server as Process Identity, not user identity??
      ... as i said - you could just use the source of the sql provider released by MS last week and remove the impersonation/revert to self code - look out for calls to "SqlConnectionHelper.GetConnection" ... forms authentication and the membership class for everything. ... to sql server, including connection pool issues, but that's the way it ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • Re: Bastion Host running SQL server 2000
      ... The local admin on the server does not have an SQL login individually ... > "I guess the lookup of group membership is somehow disabled. ...
      (microsoft.public.sqlserver.security)