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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:55:42+00:00 2026-05-18T01:55:42+00:00

in stored procedure cant i set set ANSI_NULLS OFF instead of using (first_name IS

  • 0

in stored procedure cant i set set ANSI_NULLS OFF instead of using (first_name IS NULL) in one of my query…
also i want to know how can i debug stored procedure and how can i see result generated by stored procedure …like for normal query i get the option sql written tag…….but how can i achieve this for stored procedure….please elaborate me on this too

basically i want to know, following is my exact query

SELECT     student_id, first_name, last_name, user_name, password, father_name, DOB, gender, local_address, permanent_Address, phone, mobile, email, college_id, 
                      course_id, branch_id, highschool_passout_year, highschool_percentage, ssc_passout_year, ssc_percentage, passing_year_higher, graduation_percentage, 
                      graduation_passout_year, post_graduation_percentage, post_graduation_passout_year, diploma_percentage, diploma_passout_year, number_of_ATKT, 
                      current_backlog, gapin_education, sem1P, sem2P, sem3P, sem4P, sem5P, sem6P, sem7P, sem8P, total_sem_percentage, total_year_percentage, flag, image, 
                      native_place, high_school_board, ssc_board, diploma_university, graduation_university, post_graduation_university, training_details, Project_Work, Skills, 
                      extra_curricular, blood_group, profile_updated, year_of_admission, security_question, security_answer, admission_year, passing_year, enrollment_no, 
                      first_year_percent, second_year_percent, third_year_percent, final_year_percent, current_degree_percent, year1P, year2P, year3P, year4P, roll_no, 
                      diploma_details
FROM         tbl_students
WHERE     (first_name = 'Rupesh' COLLATE Latin1_General_CS_AS) OR
                      (first_name IS NULL)

right now i am explicitly checking for first name is null, but i want to know if i set SET ANSI off then can i remove the first_name=null from my query and still i will get the correct result

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

    If you set ansi nulls off then you can test for null values using first_name = null

    As for debugging you can execute the query to see its results in SQLServer Management studio, stored procedures are stored per database under programmability | stored procedures

    If you are running a script rather than a single statement you can output to the messages tab of the results pane using the print command

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

Sidebar

Related Questions

I have a stored procedure that contains dynamic sql to return a result set.
I am calling an SSIS package remotely using a stored procedure and a call
I'm having some problems with my stored procedure. Hope anyone can help me figure
I have the following stored procedure that I working on. I have noticed that
I have the following stored procedure: proc_main:begin declare done tinyint unsigned default 0; declare
Let's say I have a MySql stored procedure that inserts a record with some
Working in SQL Server 2005, I have a stored procedure that inserts a record
I'm working with a system which had to create objects in one database based
OK, first my simple Domain Model is 2 classes with a one-to-many relationship, a
Getting this error when updating a row via a gridview with a sqldatasource in

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.