Importing Data into STATA

  • I have data in my SQL Server which I want to export into STATA. I am able to view my database in STATA when I use odbc list command but when I click my database is giving me an error. I guess this error is coming about because I have a password for this database. How should I get the data from SQL Server into STATA?

  • What is the error?

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • This is the error I am getting in STATA:

    . odbc query "ADJusT"

    The ODBC driver reported the following diagnostics

    [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user ''.

    SQLSTATE=28000

    r(682);

  • I have never worked with STATA before, but is there a place somewhere where you can specify credentials?

    Or maybe you can specify those in the ODBC connection itself when you define it?

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • Thanks for your enthusiasm to see this problem solved. I have consulted a colleague who will assist in the next twenty minutes time. I will give you the feedback once its resolved.

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply