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
krunal pande
NA
101
27.8k
I have one query regarding dynamic database.
Nov 14 2017 11:03 PM
Hi team,
I have one query regarding dynamic database.
I put database name in one variable and i want to pass that variable in place of (elcm_mahsqa) , how to pass that variable i tried but it throws error.
Please suggest solution.
SET @dbname=@OrganizationName
select 'ELCM_'+ @dbname '@dbname'
---------------------------------------employee id -------------------------------------------
set @EmpCode=(Select distinct(empcode) as empcode from elcm_mahsqa.tna.rostering where EmpCode=@EmpCode )
Reply
Answers (
3
)
From Promotion table get max value by date
How to use order by in union all