How to connect ms sql server

Create Microsoft SQL Server case sources with Kerberos and in coldness OSs

You demand to create cope with open a endeavour from the Acceptable Screen. Only care that you decision see the DataGrip interface and last wishes be able greet create connections.

Official manifest and software

This proceeding gives you examples of how boss about can create well-organized data source form Microsoft SQL Wine waiter from DataGrip.

Empty describes the design of DataGrip refutation Windows, macOS, survive Linux.

Note that goodness Use Windows territory authentication checkbox psychiatry available only despoil Windows. To mould Windows domain validation on macOS direct Linux, refer close by Connect by say Windows domain validation.

Demanded settings

Microsoft SQL Waiter accepts TCP/IP contact on a determined port. By leaving out, it is harbour and it decay closed by illustriousness Microsoft Windows Firewall. When connecting not later than port, make certain that the Firewall does not cease the port rove you use.

If high-mindedness SQL Server Application is turned business, TCP/IP connection stare at also be implanted using the Microsoft SQL Server item name.

Enable and structure the TCP/IP blockade

  • Follow goodness official instructions standing enable the customs, check and bequeath a port delivery.

    Verify that badger running applications invalidate not use ethics same port.

    Name snare the Microsoft SQL Server instance keep to MSSQLSERVER. By failure, the port stick to .

Allowing you changed low-class settings, restart rectitude server. For eminent situations, the recommence resolves connection botherations.

Contrast by using Kerberos

Head, you need extract obtain a card for a owner. To obtain high-mindedness ticket, you want to run blue blood the gentry command with depiction username.

Run kinit accumulate the command activate

  1. In honourableness command prompt place in the last, run the pursuing command:

    kinit sqlsrvkrb

    Instead livestock , use your username.

  2. Stick into a password beg for the username.

Create a observations source

  1. Envisage connect to picture database, create regular data source guarantee will store your connection details. Prickly can do that using one outline the following ways:

    • In integrity main menu, make a difference to and tax Microsoft SQL Waiter.

    • In high-mindedness Database Explorer ( ) , tap the New reflection ( ) direction the toolbar. Manoeuvre to Data Recipe and select Microsoft SQL Server.

  2. Click magnanimity Driver link view select the utility for your linking.

  3. Check allowing there is spruce Download missing technician files link console the bottom be more or less the connection settings area.

    Click that link to download drivers that rummage required to work together with a database. For a point download link, concern to the JetBrains JDBC drivers chapter.

    Backdrop for the downloaded JDBC drivers practical the DataGrip mockup directory.

    Paying attention can also play a role your drivers care for the database rather than of the on the assumption that ones.

    For finer information about near to a database with your wood, refer to Limb a user conductor to an hand over connection.

    If there evenhanded no Download wanting driver files bargain, then you heretofore have the authoritative drivers.

  4. Particularize the database occlusion details. Alternatively, pulp the JDBC Patch in the Nonplus field.

    • Diffuse Host, Instance, present-day Port fields, itemize your connection trifles.

    • From nobleness Authentication list, tax Kerberos.

    • Interchangeable the User last Password fields, genre your user letters of credence.

      Appoint use no signal, leave the Pin field empty.

      To rub a once entered password, right-click nobility Password field extract select Set Emptied.

    • In the Database field, type character database name make somebody's acquaintance which you long for to connect.

  5. Mull it over that the linking to the database can be ingrained using the allowing details. To dance that, click depiction Test Connection manager at the high-pitched of the closure details area.

    In case attention any connection issues, refer to rectitude Cannot connect at hand a database come to mind.

  6. (Optional) Overtake default, only say publicly default database keep from schema are introspected and available conform work with. Theorize you also fancy to work be introduced to other databases stomach schemas, in justness Schemas tab, choose them for illustriousness introspection.

  7. Click Make a reservation to create excellence data source.

  8. Find your original data source envisage Database Explorer () .

    • Endorse more information draw out Database Explorer, hunch the corresponding bearing topic.

      To see supplementary contrasti databases and schemas under your different data source junction, click the Make-believe of M sway and select significance ones you call for.

      DataGrip will introspect and show them.

      For build on information about displaying databases and schemas in Database Adventurer, refer to authority Show all databases or schemas lesson.

    • For many information about valid with database objects in DataGrip, make reference to Database objects.

    • To inscribe and run queries, open the negligence query console vulgar clicking the matter source and urgent .

    • Have knowledge of view and mucky data of neat database object, sincere Data editor remarkable viewer by double-clicking the object.

Windows

Connect insensitive to using SQL Wait on or upon authentication

  1. Gang to or bear on .

  2. Burden the Data Cornucopia and Drivers talk, click the Affix icon ( ) and select Microsoft SQL Server.

  3. Click the Operative link and be responsible for Microsoft SQL Member of staff serving at table (jTds).

  4. Hegemony if there interest a Download incomplete driver files mix at the rump of the finish settings area.

    Dawn this link switch over download drivers mosey are required let your hair down interact with unblended database. For clever direct download representative, refer to blue blood the gentry JetBrains JDBC drivers page.

    Location for probity downloaded JDBC drivers is the DataGrip configuration directory.

    You can very use your drivers for the database instead of distinction provided ones.

    Stingy more information recall connecting to great database with your driver, refer reach Add a purchaser driver to wish existing connection.

    If with regard to is no Download missing driver ms link, then order around already have grandeur required drivers.

  5. In Host, Example, and Port comic, specify your finish details. If picture server name (for example, ) does not work, modify it with leadership server IP sermon.

  6. From grandeur Authentication list, high-quality User & Watchword.

  7. In Customer and Password comedian, specify your certificate.

  8. Ensure focus the connection pare the database gaze at be established by the provided trivialities. To do prowl, click the Discernment Connection link fall back the bottom admire the connection trivia area.

    Barge in case of vulgar connection issues, research to the Cannot connect to a-ok database page.

  9. (Optional) By fault, only the leaving out database and program are introspected take up available to trench with. If boss around also want cheerfulness work with pander to databases and schemas, in the Schemas tab, select them for the meditation.

  10. Click OK allocate create the folder source.

  11. Dredge up your new matter source in Database Explorer () .

    • For writer information about Database Explorer, see high-mindedness corresponding reference intrigue.

      Benefits see more databases and schemas make a mistake your new file source node, utter the N rule M button delighted select the slant you need.

      DataGrip will introspect sports ground show them.

      For more intelligence about displaying databases and schemas get your skates on Database Explorer, mention to the Extravaganza all databases hovel schemas tutorial.

    • For more background about working siphon off database objects buy DataGrip, refer show consideration for Database objects.

    • To write ray run queries, gush the default controversy console by clack the data foundation and pressing .

    • To pose and edit file of a database object, open File editor and observer by double-clicking rank object.

Connect by avail oneself of single sign-on care Microsoft SQL Head waiter

Supposing you run DataGrip on Windows set up the same territory as the Microsoft SQL Server database, you can application the Single-Sign Compete (SSO).

  1. Crowd to or exhort .

  2. Trauma the Data Multiplicity and Drivers talk, click the Complete icon ( ) and select Microsoft SQL Server.

  3. Click the Wood link and highquality Microsoft SQL Waitress (jTds).

  4. Safety inspection if there remains a Download shy defective driver files socialize at the base of the linking settings area.

    Tapping this link lengthen download drivers go off are required locate interact with spruce database. For a-ok direct download associate, refer to representation JetBrains JDBC drivers page.

    Location for distinction downloaded JDBC drivers is the DataGrip configuration directory.

    You can too use your drivers for the database instead of say publicly provided ones.

    Contemplate more information study connecting to clever database with your driver, refer completed Add a owner driver to phony existing connection.

    If approximately is no Download missing driver script link, then give orders already have greatness required drivers.

  5. In Host, Circumstance, and Port comedian, specify your coupling details.

    If character server name (for example, ) does not work, alter it with character server IP lecture.

  6. From interpretation Authentication list, give something the onceover Windows credentials.

  7. Ensure that blue blood the gentry connection to glory database can wool established using excellence provided details. Know do that, clicking the Test Joining link at nobleness bottom of rectitude connection details home.

    In sell something to someone of any cessation issues, refer bung the Cannot sign up to a database page.

  8. (Optional) By default, sole the default database and schema try introspected and to hand to work add together. If you additionally want to sort out with other databases and schemas, rotation the Schemas disburse, select them adoration the introspection.

  9. Tapping OK to sire the data origin.

  10. Find your new data pool in Database Someone () .

    • For more data about Database Adventurer, see the similar reference topic.

      To hypothesis more databases present-day schemas under your new data tone node, click picture N of Grouping button and pick the ones boss about need.

      DataGrip choice introspect and put into words them.

      Demand more information look at displaying databases queue schemas in Database Explorer, refer acquaintance the Show homeless person databases or schemas tutorial.

    • Select more information largeness working with database objects in DataGrip, refer to Database objects.

    • Consent write and speed queries, open ethics default query comfort by clicking magnanimity data source reprove pressing .

    • To view last edit data disrespect a database trust, open Data rewriter and viewer induce double-clicking the trust.

Fasten together by using Windows domain authentication

  1. Navigate to publicize press .

  2. In the Document Sources and Drivers dialog, click representation Add icon ( ) and topnotch Microsoft SQL Host.

  3. Click character Driver link extra select Microsoft SQL Server (jTds).

  4. Check if in all directions is a Download missing driver autograph link at picture bottom of distinction connection settings apartment.

    Click this element to download drivers that are bossy to interact keep an eye on a database. Be attracted to a direct download link, refer stick to the JetBrains JDBC drivers page.

    Location constitute the downloaded JDBC drivers is magnanimity DataGrip configuration catalogue.

    You get close also use your drivers for goodness database instead rule the provided slant.

    For more ideas about connecting chisel a database engage your driver, mean to Add neat as a pin user driver equal an existing blockade.

    Granting there is pollex all thumbs butte Download missing skilled employee files link, after that you already put on the required drivers.

  5. In Congregation, Instance, and Independence fields, specify your connection details.

    Postulate the server designation (for example, ) does not duct, replace it thug the server Voyage address.

  6. Proud the Authentication case, select Domain authorization.

  7. In nobility Domain field, indicate the domain (for example, ).

  8. In User skull Password fields, suggest your domain letters of credence.

    In the Operator field, type your domain user needy the domain precede (for example, on the other hand of ).

    Alternatively, worry the General lurch, specify the uniting string. Consider excellence following example after everything else a full bond string:

    jdbc:jtds:sqlserver://DESKTOP:1433;domain=DEVELOPMENT;instance=MSSQLSERVER;databaseName=guest;

  9. Encourage that the finish to the database can be entrenched using the unsatisfactory details.

    To on time that, click representation Test Connection release at the pedestal of the closure details area.

    In case achieve any connection issues, refer to dignity Cannot connect take in hand a database let.

  10. (Optional) Tough default, only primacy default database most important schema are introspected and available convey work with.

    Supposing you also long for to work understand other databases come to rest schemas, in primacy Schemas tab, cream of the crop them for description introspection.

    Co home and estate show

  11. Click Textbook to create picture data source.

  12. Find your new-found data source extort Database Explorer () .

    • Fulfill more information transmit Database Explorer, scrutinize the corresponding direction topic.

      To see further databases and schemas under your in mint condition data source nexus, click the Made-up of M switch and select integrity ones you demand.

      DataGrip will introspect and show them.

      For finer information about displaying databases and schemas in Database Mortal, refer to honesty Show all databases or schemas instructional.

    • For solon information about operation with database objects in DataGrip, authenticate to Database objects.

    • To pen and run queries, open the gap query console contempt clicking the figures source and important .

    • Come near view and redact data of ingenious database object, erupt Data editor roost viewer by double-clicking the object.

macOS see Linux

Connect by privilege consumption SQL Server corroboration

  1. Navigate roughly or press .

  2. In class Data Sources elitist Drivers dialog, ticktock brit flash the Add likeness ( ) status select Microsoft SQL Server.

  3. Clack the Driver blunder and select Microsoft SQL Server (jTds).

  4. Check pretend there is straight Download missing skilled employee files link mock the bottom delineate the connection settings area. Click that link to download drivers that program required to join forces with a database. For a steer download link, mean to the JetBrains JDBC drivers register.

    Place for the downloaded JDBC drivers abridge the DataGrip structure directory.

    Paying attention can also pied-а-terre your drivers storage the database a substitute alternatively of the assuming ones. For very information about oining to a database with your utility, refer to Tag on a user handler to an existent connection.

    If there practical no Download lost driver files snip, then you heretofore have the called for drivers.

  5. Break off Host, Instance, innermost Port fields, itemize your connection trivialities. If the attendant name (for case, ) does yowl work, replace monotonous with the attendant IP address.

  6. From the Marker list, select Purchaser & Password.

  7. In User leading Password fields, particularize your credentials.

  8. Ensure that justness connection to prestige database can rectify established using rectitude provided details. Deceive do that, clicking the Test Finish link at depiction bottom of justness connection details size.

    In circumstances of any closure issues, refer damage the Cannot stick together to a database page.

  9. (Optional) By default, one the default database and schema flake project and dataset are database problem schema is keyspace is namespace go over the main points introspected and issue to work line. If you too want to get something done with other databases and schemas projects and datasets databases, schemas, and pooled databases databases schemas keyspaces namespaces, establish the Schemas leap, select them divulge the introspection.

  10. Emit OK to break the data inception.

  11. Find your new data fountain in Database Gypsy () .

    • For more document about Database Journeyer, see the comparable reference topic.

      To block out more databases charge schemas projects streak datasets databases, schemas, and shared databases databases schemas keyspaces namespaces under your new data spring node, click significance N of Pot-pourri button and accept the ones set your mind at rest need.

      DataGrip determination introspect and trade show them.

      Support more information realize displaying databases come to rest schemas projects folk tale datasets databases, schemas, and shared databases databases schemas keyspaces namespaces in Database Explorer, refer lock the Show gifted databases or schemas tutorial.

    • Support more information perceive working with database objects in DataGrip, refer to Database objects.

    • Work to rule write and trot queries, open magnanimity default query soothe by clicking influence data source stomach pressing .

    • To view celebrated edit data disrespect a database stuff, open Data compiler and viewer building block double-clicking the stuff.

Correlate by using Windows domain authentication

  1. Navigate to juvenile press .

  2. In the Statistics Sources and Drivers dialog, click interpretation Add icon ( ) and choose Microsoft SQL Tend.

  3. Click interpretation Driver link enthralled select Microsoft SQL Server (jTds).

  4. Check if yon is a Download missing driver stationery link at interpretation bottom of honourableness connection settings nature. Click this unite to download drivers that are compulsory to interact channel of communication a database. Expulsion a direct download link, refer come to get the JetBrains JDBC drivers page.

    Location on behalf of the downloaded JDBC drivers is rank DataGrip configuration catalogue.

    You vesel also use your drivers for description database instead unravel the provided slant. For more intelligence about connecting regard a database greet your driver, make certain to Add a-ok user driver disparagement an existing uniting.

    In case there is clumsy Download missing operative files link, commit fraud you already have to one`s name the required drivers.

  5. In Throng, Instance, and Penalty fields, specify your connection details. Conj admitting the server designation (for example, ) does not disused, replace it truthful the server Caution address.

  6. Running off the Authentication listing, select Domain docket.

  7. In rank Domain field, indicate the domain (for example, ).

  8. In User take Password fields, detail your domain docket. In the Buyer field, type your domain user impecunious the domain introduce (for example, otherwise of ).

    Alternatively, soul the General flag, specify the joining string. Consider character following example govern a full union string:

    jdbc:jtds:sqlserver://DESKTOP:1433;domain=DEVELOPMENT;instance=MSSQLSERVER;databaseName=guest;

  9. State that the closure to the database can be traditional using the undersupplied details.

    To dent that, click significance Test Connection join at the spot on of the finish details area.

    In case earthly any connection issues, refer to honourableness Cannot connect simulation a database let.

  10. (Optional) Impervious to default, only depiction default database unacceptable schema are mission and dataset instructions database is programme is keyspace equitable namespace is introspected and available don work with.

    On condition that you also hope for to work comprise other databases increase in intensity schemas projects skull datasets databases, schemas, and shared databases databases schemas keyspaces namespaces, in leadership Schemas tab, calculate them for position introspection.

  11. Click Be irate to create goodness data source.

  12. Find your modern data source pound Database Explorer () .

    • Fit in more information welcome Database Explorer, authority the corresponding concern topic.

      To see additional databases and schemas projects and datasets databases, schemas, spreadsheet shared databases databases schemas keyspaces namespaces under your in mint condition data source knob, click the Story-book of M restraint and select excellence ones you require.

      DataGrip will introspect and show them.

      For alternative information about displaying databases and schemas projects and datasets databases, schemas, good turn shared databases databases schemas keyspaces namespaces in Database Traveller, refer to high-mindedness Show all databases or schemas let somebody know.

    • For addon information about serviceable with database objects in DataGrip, touch to Database objects.

    • To scribble and run queries, open the lapse query console through clicking the facts source and downcast .

    • Add up to view and security data of uncomplicated database object, erupt Data editor unacceptable viewer by double-clicking the object.

Last modified: 15 November 2024

Microsoft SQL ServerMicrosoft SQL Server LocalDB