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

How do I find a job after BTech in ECE?
Approach in multiple ways. Practice in your communication and technical skills. Look for Walkins. Apply in Naukri, Times Jobs, Monster jobs etc., Look for referrals - get help from your seniors or collegues.
Abinaya
0 0
5
Is it possible to do Phd after BTech?
Some institute give integrated PhD course ..u can go mtech and PhD together...many iits and premier institutions provide this course
Karthik
0 0
5

"निशान्धकारे" explain the sandhi  ?

Which language you want ?? If you have it in Telugu it is savarnadeergha sandhi. Nisa and andhakaara.both words end with the sound a.when it happens this will be savarna dheerga sandhi.
Renu

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

Ask a Question

Related Lessons

Introduction To Accounting: Part 4: Accounting Cycle
Remember when we started learning English? We started off by learning Alphabets, then we joined Alphabets to form Words, then we joined Words to form Sentences, then we joined Sentences to form Paragraphs,...


Cost Accounting: Overhead
Hello dear students, This lesson is an extension to my previous lesson titled overhead. Once the overhead rate is determined, the overhead rate is to be used to find out the recovered overhead, for calculating...

What is weight?
Weight is a form of measurement that is dependent on gravity and, unlike mass, your weight can vary depending on where you are in the universe. Weight is a pretty important measure not only to dieters...

English Comprehension
Brain Point Classes English- State Board Date-__/__/2017 ...
T

Tanvi M.

1 0
0

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