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 816483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T01:50:17+00:00 2026-05-15T01:50:17+00:00

When the function is defined like this it will return the correct rows. ALTER

  • 0

When the function is defined like this it will return the correct rows.

ALTER FUNCTION [dbo].[exampleFunction](
 @GUID VARCHAR(20)--NUMERIC(16,0)
,@BrowseName VARCHAR(200)
)

But when I use Numeric(16,0), which is the correct data type for the data that’s being passed, I receive 0 rows.

ALTER FUNCTION [dbo].[exampleFunction](
 @GUID NUMERIC(16,0)
,@BrowseName VARCHAR(200)
)

The function is returning a BIT. Basically the function finds the GUID then compares the BrowseTreeName.

Anyone know why this is?

Thanks

  • 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-15T01:50:18+00:00Added an answer on May 15, 2026 at 1:50 am

    just a guess based on your parameter name (@GUID), but a GUID is not actually “numeric”, see uniqueidentifier (Transact-SQL). A 16 byte GUID value does not map properly to a numeric(16,0).

    Why not just define the @GUID parameter as a uniqueidentifier data type?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 544k
  • Answers 544k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Have you included the source under test (in addition to… May 17, 2026 at 6:55 am
  • Editorial Team
    Editorial Team added an answer Yes, you have to do it this way. You cannot… May 17, 2026 at 6:55 am
  • Editorial Team
    Editorial Team added an answer I would create a new class which manages all interactions… May 17, 2026 at 6:55 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I would like to write this as a user defined function: private double Score(Story
Given that a function a_method has been defined like def a_method(arg1, arg2): pass Starting
My function goes something like this function multiple_delete($checkbox, $table, $url, $picture1 = 0, $picture2
I have an IEnumerable of an item class defined like this: public class Item
Let's say we have a simple function defined in a pseudo language. List<Numbers> SortNumbers(List<Numbers>
I have a Delphi DLL with a function defined as: function SubmitJobStringList(joblist: tStringList; var
I have a function pointer defined by: typedef void (*EventFunction)(int nEvent); Is there a
I have a user defined function in SQL called getBuisnessDays it takes @startdate and
How can I get a user-defined function to re-evaluate itself based on changed data
I'm attempting to pass a pointer to a function that is defined in one

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.