TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Jitendra Patel
NA
149
0
In Query use variable like Dynamic SQL
Jan 23 2012 3:56 AM
Hi All,
I have 1 query in sql server.
DECLARE @sqlWhere VARCHAR(MAX)
SET @sqlWhere = 'flg_active = 1 order by CreatedDate'
Select * from TableName1 where @sqlWhere
Is it possible with out dynamic SQL.
Thanks,
Jitendra Patel
Reply
Answers (
7
)
SQL Query
SQL Server user names and passwords