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?
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 :
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
add a comment |
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 :
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
probably you needcheck_expiration=off, check_policy=off
. New login may require change password at first login.
– Alex Kudryashev
Mar 21 at 21:57
add a comment |
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 :
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
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 :
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
java sql-server settings
asked Mar 21 at 20:46
LovegiverLovegiver
14611
14611
probably you needcheck_expiration=off, check_policy=off
. New login may require change password at first login.
– Alex Kudryashev
Mar 21 at 21:57
add a comment |
probably you needcheck_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
add a comment |
2 Answers
2
active
oldest
votes
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();
Hi @sophia-marie, thanx for your advice. Yes I've read this tutorial, but the solution was elsewhere
– Lovegiver
Mar 22 at 8:45
add a comment |
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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();
Hi @sophia-marie, thanx for your advice. Yes I've read this tutorial, but the solution was elsewhere
– Lovegiver
Mar 22 at 8:45
add a comment |
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();
Hi @sophia-marie, thanx for your advice. Yes I've read this tutorial, but the solution was elsewhere
– Lovegiver
Mar 22 at 8:45
add a comment |
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();
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();
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
add a comment |
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
add a comment |
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
add a comment |
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
add a comment |
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
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
answered Mar 22 at 9:04
LovegiverLovegiver
14611
14611
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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