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 spiders manage without getting caught in their own web?
If you observe the spider web carefully, there are two types of fibers, the first kind will be sticky where as the second type will not be. And the spider being the creator knows it very well, hence it...
Guru
i am work as tutor.i want student for teaching.
I work as a tutor or I'm working as a tutor. Please correct your sentence.
Harihar
2 5
8
Which software and device should I use for online teaching?
webex is perfect for online classes.
DEEPAK KUMAR

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

Ask a Question

Related Lessons


Master the Object-Oriented Mindset via Coding
Master the Object-Oriented Mindset via Coding It's time to make objects work for you. You will learn Object-Oriented perspective by example, in the context of simple applications of your programming...

Introduction To Accounting: Part 17: Dual Aspect Concept
There are always two aspects of a Business Transaction. Examples: Purchase of Machinery for Rs 50,000. The two aspects in this transaction are: Incoming of Machinery Outflow of...

Spoken English Practice Worksheet: Adjective
Adjectives: Circle the adjective in each sentence. Underline the noun that the adjective describes: There was a large table on the porch. Jenny's costume was scary. I played a game on...
E

Edusmart Skills

0 0
0

Product Design
Product DesignThere are three Main Point to Be Consider To Start Product Design: Functionality Mechanism Assembly These point is important role in any prodct design start .like :- mechanical parts, plastics parts, Sheetmetal Part.
A

Acad Design Solutation

0 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