Question: When using database projects, compare, and then Generate Script then the generated scripts is default for SqlCmd. E.g. it generates a row like:

```
/*
Detect SQLCMD mode and disable script execution if SQLCMD mode is not supported.
To re-enable the script after enabling SQLCMD mode, execute the following:
SET NOEXEC OFF; 
*/
:setvar __IsSqlCmdEnabled "True"

```

Is it possible to generate scripts in the Database Project that just generates the stuff that can be executed via SQL Server Management Studio?

(I use Visual Studio 2022)

Answer: 
Check this out. This way you will get the value for the currently logged-in user.

```
function get_user_profile_choices() {
    $user_id = get_current_user_id();
    $field = get_field_object('color_choices', 'user_'.$user_id);
}
add_shortcode( 'user-profile', 'get_user_profile_choices' );

```
Add second parameter "**user\_*USERID***" in the function "**get\_field\_object**" in order to get value from the user profile fields.

**change "1" to your user ID**

```
$user_id = 1;
$field = get_field_object('color_choices', 'user_' . $user_id);

```