Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6637757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:21:08+00:00 2026-05-25T23:21:08+00:00

I have a SQL function that I am calling in my VB.Net code within

  • 0

I have a SQL function that I am calling in my VB.Net code within a display function. The SQL function will format my account data to include the following results form a Table.

The table data: “001000011121” (this is the type of structure the data has before formated)
So the data table data and vb Properties would be called Myaccount, HerAccount, ThisAccount.

Once the data is pulled and then formatted in the VB.net code it will result into a GridDisplay as as: “001.00.001.1121”

The way I have my Public Function in my code is:

Public Funcion GetDisplay(_
ByVal dbBass as DataProvider_
,ByVal pps AS TMGDatarequestParms_
,By filter As IFilter_
) As Ilist

Dim strobe As String = CType(parms.OptionalParameters,  DataProvider).Database

Dim sql As BiGSqlBuilder(TABLE)
sql.Select = String.Format("ID, [{0}].dbo.GLForamtAcct(Myaccount) AS [Myaccount], [{0}].dbo.GLFormatAccount(HerAccount) AS [HerAccount], [{0}].dbo.GLFormatAccount(ThisAccount) AS [ThisAccount]", strobe)

I left out some of the return code since not necessary. The only thing I’m concerned is how to format the SQL within the VB.net Code above. I hope this makes sense I’m new to this whole abstraction stuff. Any help would be Highly appreciated cause I’m pretty sure how I have it above does not work.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T23:21:09+00:00Added an answer on May 25, 2026 at 11:21 pm

    Suggest implementing your display code in your higher tiers, rather than burdening your database with this business logic.

    It sounds like you’re string to use String.Format() to insert the table name in your string. This syntax of database.schema.object is really only needed if performing cross database calls.

    If you really want to use your SQL UDF to perform your formatting, suggest using/formulating a SELECT statement like:

     SELECT ID,
            dbo.GLFormatAccount(Acct1) AS Acct1,
            dbo.GLFormatAccount(Acct2) AS Acct2,
            dbo.GLFormatAccount(Acct3) AS Acct3
     FROM MyTable
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an MS SQL function that is called with the following syntax: SELECT
I have an user defined table function in SQL Server that aggregate data from
I have created a function that takes a SQL command and produces output that
I have a function in SQL server 2008 that takes a string: 'A,B,C,D' and
I have a function, parseQuery, that parses a SQL query into an abstract representation
I have functions in place that will convert the results of sql queries into
Scenario: I have an application that pulls data from a SQL database as well
I have a SQL function called get_forecast_history(integer,integer) that takes two arguments, a month and
I have the following recursion code, at each node I call sql query to
I have a function defined in SQL Server (that takes a string and a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.