Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Help me decipher this SQL query

Posted on 2010-11-30
1
Medium Priority
?
258 Views
Last Modified: 2012-05-10
Select name into ##TestFields from syscolumns where Id = object_id('" + @tablename + "') and xtype in (167,231)
0
Comment
Question by:spirose
1 Comment
 
LVL 6

Accepted Solution

by:
hyphenpipe earned 200 total points
ID: 34242419
It appears to be part of a stored procedure where you supply the name of a table (@tablename) and it will insert into a global temporary table, hence the ##, the name of every varchar (167) and nvarchar(231) column in that table.
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question