Showing posts with label gurus. Show all posts
Showing posts with label gurus. Show all posts

Monday, March 26, 2012

Net Protocols - what if none are enabled?

Hopefully there's some SQL architect gurus reading...
I have a couple servers where none of the Net Protocols are enabled. I'm
not sure how they ended up that way. Usually we have at (default?) for
TCP/IP then Named Pipes, we have no need for other net protocols. However,
our apps and services are still able make SQL connections.
I'm verifying this via the SQL Network Client Utility. What else can
determine or configure Network Libraries? And what impacts might this have
on connectivity with no protocols enabled?
Thanks,
ThuanAre you saying that you use Client Network Utility on the server machine and
in the Client Network
Utility on the server machine not netlibs are enabled? You should be using S
erver Network Utility on
the server machine.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
"Thuan" <Thuan@.discussions.microsoft.com> wrote in message
news:1B4C234A-B5C8-474C-92A5-DB071BB530D3@.microsoft.com...
> Hopefully there's some SQL architect gurus reading...
> I have a couple servers where none of the Net Protocols are enabled. I'm
> not sure how they ended up that way. Usually we have at (default?) for
> TCP/IP then Named Pipes, we have no need for other net protocols. However
,
> our apps and services are still able make SQL connections.
> I'm verifying this via the SQL Network Client Utility. What else can
> determine or configure Network Libraries? And what impacts might this hav
e
> on connectivity with no protocols enabled?
> Thanks,
> Thuan|||Hi
If this is an MSDE instance then network access is not enabled by default on
the server. You should check out the Server Network Utility to see if
clients can connect and on each client check the Client Network Utility.
Enabling the protocols in the Client Network Utility will only affect the
client applications on the server.
John
"Thuan" <Thuan@.discussions.microsoft.com> wrote in message
news:1B4C234A-B5C8-474C-92A5-DB071BB530D3@.microsoft.com...
> Hopefully there's some SQL architect gurus reading...
> I have a couple servers where none of the Net Protocols are enabled. I'm
> not sure how they ended up that way. Usually we have at (default?) for
> TCP/IP then Named Pipes, we have no need for other net protocols.
> However,
> our apps and services are still able make SQL connections.
> I'm verifying this via the SQL Network Client Utility. What else can
> determine or configure Network Libraries? And what impacts might this
> have
> on connectivity with no protocols enabled?
> Thanks,
> Thuan

Net Protocols - what if none are enabled?

Hopefully there's some SQL architect gurus reading...
I have a couple servers where none of the Net Protocols are enabled. I'm
not sure how they ended up that way. Usually we have at (default?) for
TCP/IP then Named Pipes, we have no need for other net protocols. However,
our apps and services are still able make SQL connections.
I'm verifying this via the SQL Network Client Utility. What else can
determine or configure Network Libraries? And what impacts might this have
on connectivity with no protocols enabled?
Thanks,
ThuanAre you saying that you use Client Network Utility on the server machine and in the Client Network
Utility on the server machine not netlibs are enabled? You should be using Server Network Utility on
the server machine.
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/
"Thuan" <Thuan@.discussions.microsoft.com> wrote in message
news:1B4C234A-B5C8-474C-92A5-DB071BB530D3@.microsoft.com...
> Hopefully there's some SQL architect gurus reading...
> I have a couple servers where none of the Net Protocols are enabled. I'm
> not sure how they ended up that way. Usually we have at (default?) for
> TCP/IP then Named Pipes, we have no need for other net protocols. However,
> our apps and services are still able make SQL connections.
> I'm verifying this via the SQL Network Client Utility. What else can
> determine or configure Network Libraries? And what impacts might this have
> on connectivity with no protocols enabled?
> Thanks,
> Thuan|||Hi
If this is an MSDE instance then network access is not enabled by default on
the server. You should check out the Server Network Utility to see if
clients can connect and on each client check the Client Network Utility.
Enabling the protocols in the Client Network Utility will only affect the
client applications on the server.
John
"Thuan" <Thuan@.discussions.microsoft.com> wrote in message
news:1B4C234A-B5C8-474C-92A5-DB071BB530D3@.microsoft.com...
> Hopefully there's some SQL architect gurus reading...
> I have a couple servers where none of the Net Protocols are enabled. I'm
> not sure how they ended up that way. Usually we have at (default?) for
> TCP/IP then Named Pipes, we have no need for other net protocols.
> However,
> our apps and services are still able make SQL connections.
> I'm verifying this via the SQL Network Client Utility. What else can
> determine or configure Network Libraries? And what impacts might this
> have
> on connectivity with no protocols enabled?
> Thanks,
> Thuansql

Wednesday, March 21, 2012

Nested Stored Proceudre Error

Hi Gurus;
I m calling a stroed procedure B inside the stored procedure A from VB. If
error occured in stored procedure B VB code does detect that error nor it
raise any error why? So I m unable to do error handling if Procedure B
failed.
Any suggestion to solve this problem
AnsariIs procedure A returning some resultset? If so, you have to process that,
and move on to the next recordset, using the Recordset.NextRecordset method,
to get the error. Also make sure you have SET NOCOUNT ON at the beginning of
your stored procedure code.
--
HTH,
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/
"M.M Ansari" <mudasar_ansari@.hotmail.com> wrote in message
news:e230QN2iEHA.140@.TK2MSFTNGP12.phx.gbl...
Hi Gurus;
I m calling a stroed procedure B inside the stored procedure A from VB. If
error occured in stored procedure B VB code does detect that error nor it
raise any error why? So I m unable to do error handling if Procedure B
failed.
Any suggestion to solve this problem
Ansari|||MM
There are some errors that just terminate the bacth , you are not be able to
captute them ( like Primary Key Violation)
CREATE PROC Parent
@.ord INT
AS
SELECT OrderId FROM Orders WHERE OrderId =@.ord
IF @.@.ERROR >0
RETURN 99 --Failure
ELSE
RETURN 0 --Success
GO
CREATE PROC Child
@.ord INT
AS
DECLARE @.err INT
EXEC @.err=Parent @.ord
IF @.err =99
RAISERROR ('We have a problem',16,1)
"M.M Ansari" <mudasar_ansari@.hotmail.com> wrote in message
news:e230QN2iEHA.140@.TK2MSFTNGP12.phx.gbl...
> Hi Gurus;
> I m calling a stroed procedure B inside the stored procedure A from VB. If
> error occured in stored procedure B VB code does detect that error nor it
> raise any error why? So I m unable to do error handling if Procedure B
> failed.
> Any suggestion to solve this problem
> Ansari
>
>