Results 1 to 4 of 4
  1. #1
    ExcessionOCP is offline Advanced Beginner
    Windows 11 Office 365
    Join Date
    May 2023
    Posts
    31

    Beginners question on stored procedures

    Hi,

    I've recently migrated my Access application BE to Azure SQL and am loving learning all about the possibilities. I have what is probably a stupid question though - do stored procedures have to be written in T-SQL? Or can they be written in VB.NET? I'm have some functions in my Access FE that I want to migrate to the SQL server and have them run on a scheduled basis to manipulate some data that is being written to the database by an external application. My thinking was that I could just migrate these functions into the SQL database as "stored functions" or similar but I'm beginning to think that this isn't possible. If it isn't possible, what's the recommended way of doing this?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    It's my understanding that stored procedures are T-SQL coding.

    Your Access VBA functions will have to be rewritten in whichever code is appropriate.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Minty is offline VIP
    Windows 10 Office 365
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,003
    For anything involving data manipulation I would probably stick with T-SQL, as any other external processing is unlikely to be more efficient than SQL itself.

    If it's something more exotic, then yes you can do all sorts of external things:
    https://learn.microsoft.com/en-us/az...?view=azuresql

    But there is obviously a learning curve.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  4. #4
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,044
    Here you can find a good tutorial o, stored procedures: https://www.mssqltips.com/sqlservert...m_content=head
    If you're interested in basic T-SQL, just send me a PM with your e-mail and I'll forward you my training manual T-SQL.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Using Stored Procedures with QODBC (sp_reports)
    By mcucino in forum Import/Export Data
    Replies: 0
    Last Post: 09-13-2018, 04:28 PM
  2. Use stored procedures from database
    By jaryszek in forum SQL Server
    Replies: 3
    Last Post: 06-29-2018, 02:40 AM
  3. Queries, Views, Stored Procedures, Oh my!
    By ssanfu in forum SQL Server
    Replies: 7
    Last Post: 10-08-2017, 12:02 PM
  4. Set date parameters within Stored Procedures
    By Brian62 in forum SQL Server
    Replies: 0
    Last Post: 02-15-2012, 04:40 PM
  5. stored procedures failure
    By MrGrinch12 in forum Programming
    Replies: 1
    Last Post: 06-23-2010, 12:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums