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

i want a bsc 2nd year coaching class in bilaspur for chemistry physics and maths pls any one can help me for this
visit www.apniphysics.com for physics lectures....or ask any question where do you face the problem
Profile Photo
Tejendra
1 0
View Comments7
How can I start teaching tutions online?
Hi You can teach using team viewer or through goto meeting. These are all the software use to share the screen. With these u need desktop whiteboard. You can download all the software for free.
Profile Photo
Rakhi
Hi, if anybody looking for tution in VLSI, DIGITAL ELECTRONICS you can contact me.
Hi, I am working in this domain since 3 years . Do let me know how can I help you.
Profile Photo
Sathish
0 0
View Comments6
I want to teach online, physics subject to class 9 and 10 students. How can I get students and if there are websites which give direct acess to students.
Make a good profile, Keep yourself equipped with Laptop and a good internet connection, Connect with us for more details.
Profile Photo
Saurabh Chand
Why density of Ice is lesser than water?
The main reason why the density of ice is lesser than that of water is because of its crystal structure. Four hydrogen atoms tetrahedrally surround each oxygen atom in the ice. Two of the hydrogen atoms...
Profile Photo
Bitu

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

Ask a Question

Related Lessons

How to Clear Engineering Mathematics
Clearing Maths is not a great deal. All you need to follow is just a small key. Take last three years question papers and start working out the sums. Do not leave the choices. work out all sums. thats...
Profile Photo

HOW TO LEARN EFFECTIVELY
Learnig is such a process which is very easy for some while it is a difficult also for many persons .so mainly what to do is that don't learn such that you need to learn it again only after some days...
Profile Photo

How to Make Your Kids Do Homework(Without Having a Nervous Breakdown Yourself)
Tired of arguing, nagging, and struggling with your kids to get them to do homework? Are you discovering that bribing, threatening, and punishing don't yield positive results? If so, this article is for...
A

Amrtha S.

0 0
View Comments0

स्वर संधि
दो स्वरों के मेल से होने वाले विकार (परिवर्तन) को स्वर-संधि कहते हैं। जैसे - विद्या + आलय = विद्यालय। स्वर-संधि छ: प्रकार की होती हैं - दीर्घ संधि गुण संधि वृद्धि संधि यण संधि अयादि संधि वृद्धि संधि
Profile Photo

How to Study and Learn Better: Tips to Students!
Find out where, when and how you learn best: By taking notes? Reading one book at a time? Through all-out effort? Study groups? Organise your time and the place to study according to that. Take breaks. Check...
Profile Photo

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