I want to avoid dynamic pivot in SQL Server.

I want to declare a variable in SQL SERVER 2000?

  • I Query this variable from Table which is of Text type and store in variable.What datatype should be used to store this variable.Actually this variable has SQL QUERY stored, I execute this variable by sp_executequery method in SQL SERVER 2000 i m not able to take varchar(max) since max is not supported by SQL SERVER 2000.it is only supported by SQL SERVER 2005.Text,nText types are also not allowed I dont know what datatype should be there for it. Please tell me what should be its data type

  • Answer:

    Try the READTEXT statement you can read more about it in the SQL Server books online try copying and pasting the following in IE or just search for it in books online mk:@MSITStore:C:\Program%20Files\Micro…

nitin k at Yahoo! Answers Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.