473,385 Members | 1,400 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Protocol or message pattern of SQL Server client and database syst

Now we have some trouble to directly access to SQL Server database.

I would like to know if there is a special protocol in the communication
between SQL SERVER client and databse system. What is the messaging pattern?

Thank you for any help.

David
May 16 '07 #1
8 1661
There are really only two areas here:
1) getting the connection string right.
2) Ensuring that the SQL Server is enabled for remote access, the correct
transports (e.g. TCP, Named Pipes) are enabled, and that mixed mode
authentication is enabled.

Once you can connect to your database you won't need to worry about
"messaging patterns" or protocols.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"david" wrote:
Now we have some trouble to directly access to SQL Server database.

I would like to know if there is a special protocol in the communication
between SQL SERVER client and databse system. What is the messaging pattern?

Thank you for any help.

David
May 16 '07 #2

To followup:

Correct Transports:
Sometimes you can switch out which one it is using to experiment with better
performance.
I remember a client that was a dog with named pipes, and tcp/ip fixed it.

Sql Server defaults to port 1433. So that port has to be open. (Or
whichever one it was setup for).

The things I mention are subpar to what Peter mentioned.
(Aka, don't go chasing these until you get the other stuff resolved first)

Get the connection working, and you don't worry about the other stuff.
To make sure you got a good connection string, you can try this object.
SqlConnectionStringBuilder

http://www.google.com/search?hl=en&q...r+&btnG=Search

"Peter Bromberg [C# MVP]" <pb*******@yahoo.yabbadabbadoo.comwrote in
message news:03**********************************@microsof t.com...
There are really only two areas here:
1) getting the connection string right.
2) Ensuring that the SQL Server is enabled for remote access, the correct
transports (e.g. TCP, Named Pipes) are enabled, and that mixed mode
authentication is enabled.

Once you can connect to your database you won't need to worry about
"messaging patterns" or protocols.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"david" wrote:
Now we have some trouble to directly access to SQL Server database.

I would like to know if there is a special protocol in the communication
between SQL SERVER client and databse system. What is the messaging
pattern?

Thank you for any help.

David

May 16 '07 #3
"sloan" <sl***@ipass.netwrote in message
news:ea**************@TK2MSFTNGP02.phx.gbl...
To make sure you got a good connection string, you can try this object.
SqlConnectionStringBuilder

http://www.google.com/search?hl=en&q...r+&btnG=Search
I've never needed to look any further than here:
http://www.connectionstrings.com/
--
http://www.markrae.net

May 16 '07 #4

Neither have I.

But the object gives you all the "options" with intellisense for a newbie I
guess.
http://msdn2.microsoft.com/en-us/lib...r_members.aspx

Heck, there are a few listed there I didn't know existed.

"Mark Rae" <ma**@markNOSPAMrae.netwrote in message
news:uQ**************@TK2MSFTNGP04.phx.gbl...
"sloan" <sl***@ipass.netwrote in message
news:ea**************@TK2MSFTNGP02.phx.gbl...
To make sure you got a good connection string, you can try this object.
SqlConnectionStringBuilder
http://www.google.com/search?hl=en&q...r+&btnG=Search
>
I've never needed to look any further than here:
http://www.connectionstrings.com/
--
http://www.markrae.net

May 16 '07 #5
One more qustion is if the network administrator can block the direct access
message to database for security reason.

Thank for all of you.

I will try and read what you suggested to.

David

"sloan" wrote:
>
Neither have I.

But the object gives you all the "options" with intellisense for a newbie I
guess.
http://msdn2.microsoft.com/en-us/lib...r_members.aspx

Heck, there are a few listed there I didn't know existed.

"Mark Rae" <ma**@markNOSPAMrae.netwrote in message
news:uQ**************@TK2MSFTNGP04.phx.gbl...
"sloan" <sl***@ipass.netwrote in message
news:ea**************@TK2MSFTNGP02.phx.gbl...
To make sure you got a good connection string, you can try this object.
>
>
SqlConnectionStringBuilder
>
>
http://www.google.com/search?hl=en&q...r+&btnG=Search

I've never needed to look any further than here:
http://www.connectionstrings.com/
--
http://www.markrae.net


May 17 '07 #6
"david" <da***@discussions.microsoft.comwrote in message
news:7B**********************************@microsof t.com...
One more qustion is if the network administrator can block the direct
access
message to database for security reason.
Direct access *message*...???

A network administrator can certainly restrict what can and cannot connect
to SQL Server and/or the machine that it's running on...

--
http://www.markrae.net

May 17 '07 #7
Hi, Peter:

I have checked the the setting for SQL Server Properties. Where to find
"enable remote access" and what you described in the Enterprise Manager? But
we found the following:

1. Remote server connections: two options (seems for server to server)
1.1. Allow other SQL Servers to connect remotely to this SQL server using
RPC (Checked)
1.2. Enforce distributed transactions (MTS) (unchecked)

2. Security Authentication:
2.1. SQL Server and Windows (not selected): means using both SQL Server ID
and Windows ID
2.2. Windows only (selected): means using windows ID and password

David
"Peter Bromberg [C# MVP]" wrote:
There are really only two areas here:
1) getting the connection string right.
2) Ensuring that the SQL Server is enabled for remote access, the correct
transports (e.g. TCP, Named Pipes) are enabled, and that mixed mode
authentication is enabled.

Once you can connect to your database you won't need to worry about
"messaging patterns" or protocols.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"david" wrote:
Now we have some trouble to directly access to SQL Server database.

I would like to know if there is a special protocol in the communication
between SQL SERVER client and databse system. What is the messaging pattern?

Thank you for any help.

David
May 17 '07 #8

2. Security Authentication:
2.1. SQL Server and Windows (not selected): means using both SQL Server ID
and Windows ID
2.2. Windows only (selected): means using windows ID and password
This means you're using Window/NT authentication. Aka, permissions need to
be set up for

mycompany/jsmith (nt login) in order to connect.

I always setup using both. (which 2.1 is unchecked for you)

uid=jimmy;pwd=jimmypassword

If you see these in your connect string AND 2.1 is unchecked, it won't work.

Either select 2.1 or give
mycompany/jsmith the privs.

Also remember, if you're using Asp.Net, you won't "be" mycompany/jsmith
you'll be mymachine/AspNet (user account on the machine hosting IIS).

If you're doing a windows service, you'll probably be mymachine/SYSTEM


"david" <da***@discussions.microsoft.comwrote in message
news:B0**********************************@microsof t.com...
Hi, Peter:

I have checked the the setting for SQL Server Properties. Where to find
"enable remote access" and what you described in the Enterprise Manager?
But
we found the following:

1. Remote server connections: two options (seems for server to server)
1.1. Allow other SQL Servers to connect remotely to this SQL server using
RPC (Checked)
1.2. Enforce distributed transactions (MTS) (unchecked)

2. Security Authentication:
2.1. SQL Server and Windows (not selected): means using both SQL Server ID
and Windows ID
2.2. Windows only (selected): means using windows ID and password

David
"Peter Bromberg [C# MVP]" wrote:
There are really only two areas here:
1) getting the connection string right.
2) Ensuring that the SQL Server is enabled for remote access, the
correct
transports (e.g. TCP, Named Pipes) are enabled, and that mixed mode
authentication is enabled.

Once you can connect to your database you won't need to worry about
"messaging patterns" or protocols.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"david" wrote:
Now we have some trouble to directly access to SQL Server database.
>
I would like to know if there is a special protocol in the
communication
between SQL SERVER client and databse system. What is the messaging
pattern?
>
Thank you for any help.
>
David

May 17 '07 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: ME | last post by:
Just thought I would post a solution (temporary at best, but a solution at least.) for all those using PostNuke who have upgraded MySql to 4.1. I have had problems with PostNuke logging into MySql...
2
by: yzzzzz | last post by:
Hi I just upgraded from MySQL 4.0.something to 4.1.1 (alpha). When I try to connect to MySQL in a PHP script, I get the following error: "mysql_connect(): Client does not support...
2
by: Madhu | last post by:
Hello All, I am getting the below error message when I am trying to connect from client to remote database server installed on Linux. DB2 UDB ESE database is running on a trail version on Linux...
4
by: Bob Badger | last post by:
Hi, Simple question (although I guess with a complicated answer). Is HTTP an async protocol? For instance, if I send a message to a c# webservice via http what is the protocol actually doing? ...
102
by: hug | last post by:
www.webmaster, was suggested that this ng could be a better place.] I've updated my test server to handle if-modified-since. I've noticed that the (old copies I run of) IE and Netscape seem...
1
by: Benry | last post by:
Hi guys. I hope I can discuss Twisted here. If not, direct me to the correct place please. My question(s): I'm working on a custom network protocol (application layer in TCP/IP model) for a...
8
by: czuvich | last post by:
Does anyone know how to in ASP.NET (VB.NET) to display the current protocol being used between a client and server? I noticed that IIS/SQL Server can use Named Pipes if TCP/IP is not available....
1
nirmalsingh
by: nirmalsingh | last post by:
hi my coding is <?php /* You should never post secure details like IP address, username and password on a public forum Removed for security Banfa Admin */
0
by: samuels | last post by:
HI Hello, I'm new to linux platform. I have installed oracle xe server in Fedora core 4. The installation is gone smoothly and it is working in that machine. I want to connect oracle...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.