Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
3
Reply
I have one query regarding dynamic database.
krunal pande
Nov 14 2017 11:03 PM
170
Reply
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 )
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
From Promotion table get max value by date
How to use order by in union all