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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T11:32:28+00:00 2026-06-05T11:32:28+00:00

I want to store SQL statements inside SQL db. What datatype would you recommend

  • 0

I want to store SQL statements inside SQL db. What datatype would you recommend for that?

At the moment I am using varchar(max), is it OK?

Also I do have a problem, probably because of the brackets, it tells me:
Incorrect syntax near the keyword 'NULL'.

Do you have any example how should I execute query to avoid such error?

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-06-05T11:32:29+00:00Added an answer on June 5, 2026 at 11:32 am

    its better you make use of nvarchar(max) and escape ' in you sql statement replace by '' so it doesnt cause any problem for you

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

Sidebar

Related Questions

I am using a sql store procedure for custom paging. Now i want to
I have few inline sql statements with some arrays and if loops. I want
I want to create a stored procedure (on SQL Server 2005) that fetches a
I have an SQL database stored in my server, and I want my iOS
Here, i have coded to get data from DB. I want to store the
I have a java class and I want to Load a class inside a
I'm using ADO.NET to access SQL Server 2005 and would like to be able
I'm using C# and .NET 3.5. I need to generate and store some T-SQL
I have an Access database where I want to store the contacts in a
Let's say I have a fairly simple app that lets users store information on

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.