Hi All, I have SQL query which is set to a varchar(max) variable. But varchar(max) takes 8000 characterds, now how can I store this select statement in a variable? Text datatype results in error stating it cannot be used in local variable. Can anyone provide the solution?? Thanks in Advance!!!!

Asked by Last Modified  

4 Answers

Follow 0
Answer

Please enter your answer

"Read , Recall and Procure"

ok
Comments

instead of one query break it in to sub query and then try
Comments

TINYTEXT 255 (+1 byte overhead) TEXT 64K - 1 (+2 bytes overhead) MEDIUMTEXT 16M - 1 (+3 bytes overhead) LONGTEXT 4G - 1 (+4 bytes overhead)
Comments

Tutor

You can store your query by parts in multiple variables and while executing that query append these variables.
Comments

View 2 more Answers

Related Questions

What are the opportunities after a B.Tech in EEE?
All state electricity boards recruit electrical engineer..also various PSU recruit electrical engineer..
Swarnalakshmi
0 0
7
What are the most required medical courses in India?
As an experienced tutor registered on UrbanPro.com, I can provide insights into some of the most required and sought-after medical courses in India. These courses are integral to the healthcare sector...
Gaurang
0 0
5
What is Soil erosion?
Soil erosion is the blowing away of the top layer of soil.
Rayyan

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

HRA: House Rent Allowance
What is HRA? HRA or House Rent Allowance is a component of salary provided by employer to his employee. If you receive HRA as part of your salary and you live in a rented accommodation, then you can claim...

कर्ता कारक
कर्ता कारक क्रिया को करने वाले को कर्ता कहते हैं , अर्थात् जिस किसी भी वाक्य में जो शब्द उस वाक्य में वर्तमान क्रिया को कर रहा है वह उस वाक्य का 'कर्ता ' है उदाहरण =...

BASICS REVISITED
An isothermal process is governed by (A) Lussac law (B) Charles' law (C) Boyle's law (D) Avogadro's law Correct Answer One kg of carbon requires 4/3 kg of oxygen and produces ________ kg of carbon...

Civil Engineering Tuitions
In the Odd semesters (1st, 3rd, 5th...) new students come to colleges and before they get used to the admission procedures, new environment, new friends, new books, sudden freedom from schools/parents...
S

Softtech

0 0
0

ClassNotFoundException vs NoClassDefFoundError
ClassNotFoundException NoClassDefFoundError It is an exception and happens due to programmer’s mistake and can be recovered by updating the code. Thrown when an application tries...

Recommended Articles

E-learning is not just about delivering lessons online. It has a much broader scope that goes beyond manual paper or PowerPoint Presentations. To understand the reach of E-learning and how the whole process works in developing the Educational system, we will discuss a few points here. Let us find out how this new learning...

Read full article >

With the current trend of the world going digital, electronic renaissance is a new movement that is welcomed by the new generation as it helps makes the lives of millions of people easier and convenient. Along with this rapidly changing movement and gaining popularity of Internet, e-Learning is a new tool that emerging...

Read full article >

While schools provide formal education to the children, the home is where they start learning about things informally. Parents think that schools will take the initiative to educate their children. Well, this is partially true, as parents also play an essential role in bringing up their child. For the development of particular...

Read full article >

With the mushrooming of international and private schools, it may seem that the education system of India is healthy. In reality, only 29% of children are sent to the private schools, while the remaining head for government or state funded education. So, to check the reality of Indian education system it is better to look...

Read full article >

Looking for Tuition ?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you