SQL Server settingsAdd a column with a default value to an existing table in SQL ServerHow to return only the Date from a SQL Server DateTime datatypeHow to check if a column exists in a SQL Server table?Check if table exists in SQL ServerHow to concatenate text from multiple rows into a single text string in SQL server?LEFT JOIN vs. LEFT OUTER JOIN in SQL ServerInserting multiple rows in a single SQL query?How do I UPDATE from a SELECT in SQL Server?Unable to login to SQL Server + SQL Server Authentication + Error: 18456How to Delete using INNER JOIN with SQL Server?

Why were 5.25" floppy drives cheaper than 8"?

Forgetting the musical notes while performing in concert

How to remove border from elements in the last row?

What is required to make GPS signals available indoors?

In the UK, is it possible to get a referendum by a court decision?

Does Dispel Magic work on Tiny Hut?

What reasons are there for a Capitalist to oppose a 100% inheritance tax?

OP Amp not amplifying audio signal

Is there a hemisphere-neutral way of specifying a season?

Should I tell management that I intend to leave due to bad software development practices?

In Bayesian inference, why are some terms dropped from the posterior predictive?

How badly should I try to prevent a user from XSSing themselves?

"the same as" in a sentence

Was the Stack Exchange "Happy April Fools" page fitting with the '90's code?

Is it inappropriate for a student to attend their mentor's dissertation defense?

Do Iron Man suits sport waste management systems?

Do creatures with a listed speed of "0 ft., fly 30 ft. (hover)" ever touch the ground?

Was the old ablative pronoun "med" or "mēd"?

Unlock My Phone! February 2018

Am I breaking OOP practice with this architecture?

ssTTsSTtRrriinInnnnNNNIiinngg

Getting extremely large arrows with tikzcd

What are the G forces leaving Earth orbit?

Where would I need my direct neural interface to be implanted?



SQL Server settings


Add a column with a default value to an existing table in SQL ServerHow to return only the Date from a SQL Server DateTime datatypeHow to check if a column exists in a SQL Server table?Check if table exists in SQL ServerHow to concatenate text from multiple rows into a single text string in SQL server?LEFT JOIN vs. LEFT OUTER JOIN in SQL ServerInserting multiple rows in a single SQL query?How do I UPDATE from a SELECT in SQL Server?Unable to login to SQL Server + SQL Server Authentication + Error: 18456How to Delete using INNER JOIN with SQL Server?













0















I have a SQLServer database named : EventConsumerDB.



I have created Login, Password and User for this Login :



CREATE LOGIN EventConsumer WITH PASSWORD = 'EventConsumer', DEFAULT_DATABASE = EventConsumerDB;
CREATE USER EventConsumer FOR LOGIN EventConsumer;


Granted ROLE is : db_accessadmin



From Eclipse, I try to create the connection to this DataBase :



URL : jdbc:sqlserver://MyPC:1433;DATABASE_NAME=EventConsumerDB

Username : EventConsumer

Password : EventConsumer

Drive classname = com.microsoft.sqlserver.jdbc.SQLServerDriver


The result is always the same :



enter image description here



It's the first time I install a SQL Server at home, it's quiet complicated...
Is there anything I've forgotten ?



Thanx by advance.










share|improve this question






















  • probably you need check_expiration=off, check_policy=off. New login may require change password at first login.

    – Alex Kudryashev
    Mar 21 at 21:57















0















I have a SQLServer database named : EventConsumerDB.



I have created Login, Password and User for this Login :



CREATE LOGIN EventConsumer WITH PASSWORD = 'EventConsumer', DEFAULT_DATABASE = EventConsumerDB;
CREATE USER EventConsumer FOR LOGIN EventConsumer;


Granted ROLE is : db_accessadmin



From Eclipse, I try to create the connection to this DataBase :



URL : jdbc:sqlserver://MyPC:1433;DATABASE_NAME=EventConsumerDB

Username : EventConsumer

Password : EventConsumer

Drive classname = com.microsoft.sqlserver.jdbc.SQLServerDriver


The result is always the same :



enter image description here



It's the first time I install a SQL Server at home, it's quiet complicated...
Is there anything I've forgotten ?



Thanx by advance.










share|improve this question






















  • probably you need check_expiration=off, check_policy=off. New login may require change password at first login.

    – Alex Kudryashev
    Mar 21 at 21:57













0












0








0








I have a SQLServer database named : EventConsumerDB.



I have created Login, Password and User for this Login :



CREATE LOGIN EventConsumer WITH PASSWORD = 'EventConsumer', DEFAULT_DATABASE = EventConsumerDB;
CREATE USER EventConsumer FOR LOGIN EventConsumer;


Granted ROLE is : db_accessadmin



From Eclipse, I try to create the connection to this DataBase :



URL : jdbc:sqlserver://MyPC:1433;DATABASE_NAME=EventConsumerDB

Username : EventConsumer

Password : EventConsumer

Drive classname = com.microsoft.sqlserver.jdbc.SQLServerDriver


The result is always the same :



enter image description here



It's the first time I install a SQL Server at home, it's quiet complicated...
Is there anything I've forgotten ?



Thanx by advance.










share|improve this question














I have a SQLServer database named : EventConsumerDB.



I have created Login, Password and User for this Login :



CREATE LOGIN EventConsumer WITH PASSWORD = 'EventConsumer', DEFAULT_DATABASE = EventConsumerDB;
CREATE USER EventConsumer FOR LOGIN EventConsumer;


Granted ROLE is : db_accessadmin



From Eclipse, I try to create the connection to this DataBase :



URL : jdbc:sqlserver://MyPC:1433;DATABASE_NAME=EventConsumerDB

Username : EventConsumer

Password : EventConsumer

Drive classname = com.microsoft.sqlserver.jdbc.SQLServerDriver


The result is always the same :



enter image description here



It's the first time I install a SQL Server at home, it's quiet complicated...
Is there anything I've forgotten ?



Thanx by advance.







java sql-server settings






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 21 at 20:46









LovegiverLovegiver

14611




14611












  • probably you need check_expiration=off, check_policy=off. New login may require change password at first login.

    – Alex Kudryashev
    Mar 21 at 21:57

















  • probably you need check_expiration=off, check_policy=off. New login may require change password at first login.

    – Alex Kudryashev
    Mar 21 at 21:57
















probably you need check_expiration=off, check_policy=off. New login may require change password at first login.

– Alex Kudryashev
Mar 21 at 21:57





probably you need check_expiration=off, check_policy=off. New login may require change password at first login.

– Alex Kudryashev
Mar 21 at 21:57












2 Answers
2






active

oldest

votes


















0














Have you tried this: Connection-URL - Example ?



It shows you how to connect to an sql server via an URL:



public class ConnectURL 
public static void main(String[] args)

// Create a variable for the connection string.
String connectionUrl = "jdbc:sqlserver://<server>:<port>;databaseName=AdventureWorks;user=<user>;password=<password>";

try (Connection con = DriverManager.getConnection(connectionUrl); Statement stmt = con.createStatement();)
String SQL = "SELECT TOP 10 * FROM Person.Contact";
ResultSet rs = stmt.executeQuery(SQL);

// Iterate through the data in the result set and display it.
while (rs.next())
System.out.println(rs.getString("FirstName") + " " + rs.getString("LastName"));


// Handle any errors that may have occurred.
catch (SQLException e)
e.printStackTrace();








share|improve this answer























  • Hi @sophia-marie, thanx for your advice. Yes I've read this tutorial, but the solution was elsewhere

    – Lovegiver
    Mar 22 at 8:45


















0














OK, thanx to those who've tried to help me.



The problem was the following : When I installed the product (Windows 10 platform), Windows Authentication was the default authentication mode.



Solution found on MS page : "Change Server Authentication Mode"



In the SSMS, right-click on the server name > properties > security.



Then in the "server authentication" block, replace Windows Authentication Mode by SQL Server and Windows Authentication Mode.



Restart the server.



Note : don't forget to activate the TCP-IP protocol if needed. To turn it ON, you'll have to use the SQL Server Configuration console or PowerShell






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55288987%2fsql-server-settings%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Have you tried this: Connection-URL - Example ?



    It shows you how to connect to an sql server via an URL:



    public class ConnectURL 
    public static void main(String[] args)

    // Create a variable for the connection string.
    String connectionUrl = "jdbc:sqlserver://<server>:<port>;databaseName=AdventureWorks;user=<user>;password=<password>";

    try (Connection con = DriverManager.getConnection(connectionUrl); Statement stmt = con.createStatement();)
    String SQL = "SELECT TOP 10 * FROM Person.Contact";
    ResultSet rs = stmt.executeQuery(SQL);

    // Iterate through the data in the result set and display it.
    while (rs.next())
    System.out.println(rs.getString("FirstName") + " " + rs.getString("LastName"));


    // Handle any errors that may have occurred.
    catch (SQLException e)
    e.printStackTrace();








    share|improve this answer























    • Hi @sophia-marie, thanx for your advice. Yes I've read this tutorial, but the solution was elsewhere

      – Lovegiver
      Mar 22 at 8:45















    0














    Have you tried this: Connection-URL - Example ?



    It shows you how to connect to an sql server via an URL:



    public class ConnectURL 
    public static void main(String[] args)

    // Create a variable for the connection string.
    String connectionUrl = "jdbc:sqlserver://<server>:<port>;databaseName=AdventureWorks;user=<user>;password=<password>";

    try (Connection con = DriverManager.getConnection(connectionUrl); Statement stmt = con.createStatement();)
    String SQL = "SELECT TOP 10 * FROM Person.Contact";
    ResultSet rs = stmt.executeQuery(SQL);

    // Iterate through the data in the result set and display it.
    while (rs.next())
    System.out.println(rs.getString("FirstName") + " " + rs.getString("LastName"));


    // Handle any errors that may have occurred.
    catch (SQLException e)
    e.printStackTrace();








    share|improve this answer























    • Hi @sophia-marie, thanx for your advice. Yes I've read this tutorial, but the solution was elsewhere

      – Lovegiver
      Mar 22 at 8:45













    0












    0








    0







    Have you tried this: Connection-URL - Example ?



    It shows you how to connect to an sql server via an URL:



    public class ConnectURL 
    public static void main(String[] args)

    // Create a variable for the connection string.
    String connectionUrl = "jdbc:sqlserver://<server>:<port>;databaseName=AdventureWorks;user=<user>;password=<password>";

    try (Connection con = DriverManager.getConnection(connectionUrl); Statement stmt = con.createStatement();)
    String SQL = "SELECT TOP 10 * FROM Person.Contact";
    ResultSet rs = stmt.executeQuery(SQL);

    // Iterate through the data in the result set and display it.
    while (rs.next())
    System.out.println(rs.getString("FirstName") + " " + rs.getString("LastName"));


    // Handle any errors that may have occurred.
    catch (SQLException e)
    e.printStackTrace();








    share|improve this answer













    Have you tried this: Connection-URL - Example ?



    It shows you how to connect to an sql server via an URL:



    public class ConnectURL 
    public static void main(String[] args)

    // Create a variable for the connection string.
    String connectionUrl = "jdbc:sqlserver://<server>:<port>;databaseName=AdventureWorks;user=<user>;password=<password>";

    try (Connection con = DriverManager.getConnection(connectionUrl); Statement stmt = con.createStatement();)
    String SQL = "SELECT TOP 10 * FROM Person.Contact";
    ResultSet rs = stmt.executeQuery(SQL);

    // Iterate through the data in the result set and display it.
    while (rs.next())
    System.out.println(rs.getString("FirstName") + " " + rs.getString("LastName"));


    // Handle any errors that may have occurred.
    catch (SQLException e)
    e.printStackTrace();









    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Mar 22 at 0:27









    Sophia MarieSophia Marie

    24




    24












    • Hi @sophia-marie, thanx for your advice. Yes I've read this tutorial, but the solution was elsewhere

      – Lovegiver
      Mar 22 at 8:45

















    • Hi @sophia-marie, thanx for your advice. Yes I've read this tutorial, but the solution was elsewhere

      – Lovegiver
      Mar 22 at 8:45
















    Hi @sophia-marie, thanx for your advice. Yes I've read this tutorial, but the solution was elsewhere

    – Lovegiver
    Mar 22 at 8:45





    Hi @sophia-marie, thanx for your advice. Yes I've read this tutorial, but the solution was elsewhere

    – Lovegiver
    Mar 22 at 8:45













    0














    OK, thanx to those who've tried to help me.



    The problem was the following : When I installed the product (Windows 10 platform), Windows Authentication was the default authentication mode.



    Solution found on MS page : "Change Server Authentication Mode"



    In the SSMS, right-click on the server name > properties > security.



    Then in the "server authentication" block, replace Windows Authentication Mode by SQL Server and Windows Authentication Mode.



    Restart the server.



    Note : don't forget to activate the TCP-IP protocol if needed. To turn it ON, you'll have to use the SQL Server Configuration console or PowerShell






    share|improve this answer



























      0














      OK, thanx to those who've tried to help me.



      The problem was the following : When I installed the product (Windows 10 platform), Windows Authentication was the default authentication mode.



      Solution found on MS page : "Change Server Authentication Mode"



      In the SSMS, right-click on the server name > properties > security.



      Then in the "server authentication" block, replace Windows Authentication Mode by SQL Server and Windows Authentication Mode.



      Restart the server.



      Note : don't forget to activate the TCP-IP protocol if needed. To turn it ON, you'll have to use the SQL Server Configuration console or PowerShell






      share|improve this answer

























        0












        0








        0







        OK, thanx to those who've tried to help me.



        The problem was the following : When I installed the product (Windows 10 platform), Windows Authentication was the default authentication mode.



        Solution found on MS page : "Change Server Authentication Mode"



        In the SSMS, right-click on the server name > properties > security.



        Then in the "server authentication" block, replace Windows Authentication Mode by SQL Server and Windows Authentication Mode.



        Restart the server.



        Note : don't forget to activate the TCP-IP protocol if needed. To turn it ON, you'll have to use the SQL Server Configuration console or PowerShell






        share|improve this answer













        OK, thanx to those who've tried to help me.



        The problem was the following : When I installed the product (Windows 10 platform), Windows Authentication was the default authentication mode.



        Solution found on MS page : "Change Server Authentication Mode"



        In the SSMS, right-click on the server name > properties > security.



        Then in the "server authentication" block, replace Windows Authentication Mode by SQL Server and Windows Authentication Mode.



        Restart the server.



        Note : don't forget to activate the TCP-IP protocol if needed. To turn it ON, you'll have to use the SQL Server Configuration console or PowerShell







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 22 at 9:04









        LovegiverLovegiver

        14611




        14611



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55288987%2fsql-server-settings%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

            은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현