Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"No sample profile found for sqlserver" when running dbt init #419

Open
1 of 5 tasks
jrschueller opened this issue Jun 21, 2023 · 3 comments
Open
1 of 5 tasks

"No sample profile found for sqlserver" when running dbt init #419

jrschueller opened this issue Jun 21, 2023 · 3 comments

Comments

@jrschueller
Copy link

Describe the bug

I am attempting to initialize a dbt project and create a profiles.yml file. Doing so returns an error of No sample profile found for sqlserver.

Steps To Reproduce

After installing dbt-sqlserver and its dependencies, run dbt init and select the sqlserver option as the database to use for building the profile, e.g.

dbt init

19:54:03  Running with dbt=1.3.4
19:54:04  Setting up your profile.

Which database would you like to use?
[1] sqlserver

(Don't see the one you want? https://docs.getdbt.com/docs/available-adapters)

Enter a number: 1

Expected Behavior

Successfully generate profiles.yml

System Information

Which database are you using dbt with?

  • postgres
  • redshift
  • bigquery
  • snowflake
  • other (specify: Azure SQL)

The output of dbt --version:

Core:
  - installed: 1.3.4
  - latest:    1.5.1 - Update available!

  Your version of dbt-core is out of date!
  You can find instructions for upgrading here:
  https://docs.getdbt.com/docs/installation

Plugins:
  - sqlserver: 1.3.2 - Update available!

  At least one plugin is out of date or incompatible with dbt-core.
  You can find instructions for upgrading here:
  https://docs.getdbt.com/docs/installation

Plugins:

  • sqlserver: 1.3.2

The operating system you're using:
Windows 10 Enterprise version 22H2, OS build 19045.2965

The output of python --version:

Python 3.10.11

@ghost
Copy link

ghost commented Oct 11, 2023

hi @jrschueller. did you ever find a work round for this? i'm trying to run dbt with mssql on a windows laptop and getting the same error. your post is the only example of this issue i can find on the web.

i can't see what the error message No sample profile found for sqlserver is referring to. i wasn't aware that dbt required a sample profile (whatever one of those might be).

@trymzet
Copy link

trymzet commented Nov 28, 2023

@krismurfi Sorry I'm replying so late, but you mentioned it's hard to google this problem, so let me answer anyway: it's about this file. Basically, the dbt-sqlserver adapter doesn't include a profile_template.yml, so dbt init doesn't know how to create an empty profile for the new project in your ~/.dbt/profiles.yml.

@ghost
Copy link

ghost commented Dec 9, 2023

thanks @trymzet, the dbt scaffolding can be a bit baffling to begin with, but starting to make sense now. it works really well with on-prem mssql & much better than working with ssis. it's now my go-to integration tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants