What is the Qlikview syntax for SQL Server's DB_NAME()
I need to pull data from different databases. There are no unique keys across the different databases. I would like to create a unique key by concatenating the database name, which can be found using DB_NAME() in SQL Server, with the unique key found within the database. Is there a way to pull data into Qlikview, directly from SQL Server and accomplish this?
Re: What is the Qlikview syntax for SQL Server's DB_NAME()
If you want to create a unique key for a table, why don't you try using RowNo(). This will give a unique number for each row(it will also be sequential based on load order). Also when you pull the table you will be knowing which database you are pulling from. Just Create a field like 'Microsoft DB' as [DB Name] for each of the tables with their respective DB names. Store those tables in qvds and later use those qvds to perform your modelling