SQL Connections Stop & Webservices

Oct 10, 2007

Hello, I appeal to all to save me from this situation.

I have a WebService in VB.net by IIS and a operation to connect to the SQL server and run a query and others operations. All fine...

But after a certain time only the SQL operations don't respond nothing, the others are OK. So the problem is not in the IIS i think and something between the IIS and the SQL Server.

Can you give me some light about this PLEASEEEE :D ?
Thanks

If any of you need the source say it.
Thanks

View 9 Replies


ADVERTISEMENT

Anyway To Stop DSN && DSNless Connections To SQL Server?

Sep 6, 2006

I'm trying to setup a new server but need to stop people accessing the database via Access, Excel etc

Is there any way to set SQL server up to stop connections from such applications?

Is there any way to allow only certain users to connect via a DSN

We are not using windows authentication on the server

Cheers

View 1 Replies View Related

Webservices And SQL 2005

May 15, 2007

Hey guy and gals,
I need to connect to a web service from a Sproc, can this be done? I've google and found out about Httpendpoints but that is running the web service on the server, not connecting to one from the server in a sproc. Any ideas or site links would be helpful. TIA.
 Jason
 

View 1 Replies View Related

Triggers Calling WebServices

Mar 16, 2006

Yes, I know there is at least one other thread about this type of thing, but my error is a bit different............

I have been trying to call a webservice from within a trigger and i keep receiving the following error:

Msg 6522, Level 16, State 1, Procedure wepTestTrigger, Line 1

A .NET Framework error occurred during execution of user defined routine or aggregate 'wepTestTrigger':

System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

System.Security.SecurityException:

at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)

at System.Security.CodeAccessPermission.Demand()

at System.Net.CredentialCache.get_DefaultCredentials()

at Triggers.wepTestTrigger()

.

The statement has been terminated.

How or what do I need to do in order to call this webservice?

Thank you for any help.



Wayne E. Pfeffer

View 3 Replies View Related

Windows Authentication And WebServices.

Jun 14, 2006

If the web service is talking to a SQL Server database and the authentication used is SSPI (Security Support Provider Interface
) / windows authentication, does the ASP.Net user or machine id user
need to be added to the list of allowed ids to the database server? Or
am I misunderstanding the security constraints?



If I run my code through an Nunit test conduit, I can retrieve data,
but If I run it through my webservice it fails authentication.



advTHANKSance

View 1 Replies View Related

Calling WebServices Asynchronously From SQL CLR

Sep 18, 2007

I'm assuming it's possible to call a web service asynchronously from a SQL CLR function, is this correct or is there a fundamental flaw in calling the asynchronous methods?

I've tried coding a sample and despite creating a new thread, which in turn calls the web service asynchronously and using newthread.join I can never get the webmethodasync_completed sub to be called.



View 1 Replies View Related

How To Create Installer For Webservices

Nov 24, 2007

Hi Experts,
I have to create Installer or setup for my project.
My project Containg 2 webservices and one applicationProject.
I donot Know About Installer How To create SetUp For AboveProject . I want In setup wizard shows in grid it shows the 2 Webservices and PrudentialApplications. and How To add a sqlserver Bootstrapper in this application.
Regards
Venkat.

View 2 Replies View Related

Design Question About Webservices

Mar 30, 2007

Hi,



I need to expose data in a SQL server 2005 database as a webservices. I have 2 options to choose. I can create an End point in sql or build a webservices in .NET.

So what are de advantages and disadvantages of those 2 approaches ?



Of course they want the webservices secure. I know that authentication is not a problem since we use windows integrated security for the intranet. But what will happen if we move to an extranet or the internet ?



But how do you enable authorization ? and Context security ? Is context security better done in .NET then in SQL ?



Thanks in advance.





View 3 Replies View Related

WebServices: This Complex Type Does Not Contain Any Properties

Aug 9, 2007

Hello everyone,
I am newbie in SSIS and I have one problem.
I have defined in Control Flow one WebService Task, specified the WSDL-File.
I have chosen one method from WS as Input. But this method requires one parameter of the ArrayOf_xsd_string type.
If I try to choose it, I receive following error:

===================================
This complex type does not contain any properties. (Microsoft.SqlServer.WebServiceTaskUI)
------------------------------
Program Location:
at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.CustomGridControl.HandleEllipseBtn(Int64 row, Int32 col)

in my WSDL-File it already defined:



Code Snippet<complexType name="ArrayOf_xsd_string"><complexContent><restriction base="soapenc:Array"><attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]"/>





Could you help me? Where I can define this ArrayOf_xsd_string type, or how can I correct my problem?
Thanks a lot for your Help!
Regards,

View 1 Replies View Related

How To Render One Page At A Time Using SSRS Webservices

Apr 10, 2008

I developed a java proxy application for SSRS(Sql Server Reporting services) and able to render the reports by making webservice calls to SSRS webservices. But I am getting the data for the complete report. How can I get only a partial report( like page by page as we get in the Report Manager)? Which parameters should I pass.
As some of the reports are too big, the java application is getting memory issues and I want to limi the data that I get from SSRS.

Appreciate your suggestions.


View 6 Replies View Related

Using Web Services Data Source With A Param From Another WebServices

Apr 4, 2007

Hi !!!
I have to use 2 web services !
One (WebServices A) which contains methods I need to call, and the other (WebServices B) which contains a method who returns a autenticationCookie, that I have to use in parameter for call method from WebServices A ?
It is clear ? I hope...

So my question is how I can do ?
I know I can create few dataSet, but how can I pass a data from on dataSet (from my WebServices B) to the query on an other dataSet (from my WebServices A) ?

Thank your help !

View 3 Replies View Related

Need Help On Creating ENDPOINT To Define Webservices In SQL SERVER 2005!

Feb 23, 2006

Hi there,   I am just trying to create an ENDPOINT to define a Web Service in Sql
server 2005. Here is my code
Create ENDPOINT AWService         STATE = STARTED As HTTP (         PATH = '/ADVENTUREWORKS',         AUTHENTICATION = (INTEGRATED),         PORTS = (CLEAR),         SITE = 'DEVISQLDM2005' ) FOR SOAP (         WEBMETHOD 'GetProductList'         (NAME = 'AdventureWorks.Dbo.GetProductList'),         DATABASE  = 'AdventureWorks',         WSDL = DEFAULT )
and when i run this T-SQL its complaining about
Msg 7807, Level 16, State 1, Line 1 An error ('0x80070057') occurred while attempting to register the endpoint 'AWService'.
I am trying this code to run on Windows XP pro and Sql Server 2005. Any
clue why its complaining about this ?
Thanks -D

View 1 Replies View Related

How To Call Via CLR One Dll Which Calls Two Webservices (endpoints) With Dynamic Parameter

May 23, 2007

I developed one DLL in vb .Net which call two web services (sql endpoints) I wish to use this solution but for hundreds of servers (endpoints) I want to ask if I could do that with dynamic parameters passed to de DLL CALL in sql server clr.

Actually when I compile de DLL I need to have referenced (hardcoded) the webservices (endpoints) and when I need a brand new endpoint I need to reference it, compile the dll and release.



I cannot find how to invoke the service within the DLL with the namespace or webservice name as parameter.



Mi code to invoke now my referenced end point is: (note that my endpoint name is rperez)



Dim CallWebService As New rperez.IntelisisServiceEndPoint

CallWebService.Credentials = System.Net.CredentialCache.DefaultCredentials

Call CallWebService.IntelisisService(ArchivoOriginal)





My class rperez.IntelisisServiceEndPoint is referenced (hardcoded) in the dll project I need it dynamic



Do I need to change my code to PROXY object ?

View 1 Replies View Related

Integration Services :: SSIS - WebServices To OLEDB Destination

Oct 8, 2015

I have requirement to update/insert the DPID based on the address which are passed as an input values.There are more than one address at the same time and I configured to get the address from the query which are correct and output of the address values will be stored as system object variable.I am then passing the system object variable to for each loop container and I have configured the collection and variable mappings as a variable for each input value.

when I pass the value manually to the web service task it works correctly.When I pass it as a variable to web service task it doesn't return any value.I have a data flow task which converts the ouput from web service task using the xml source converts it to oledb destination.I don't see any rows being written to the target table.

View 6 Replies View Related

Need Help - Converting OLEDB Connections To SQL Connections In Asp.net

May 17, 2005

Hi there,
        Here we have got a
asp.net application that was developed when database was
sitting on SQL server 6.5. Now client has moved all of their databases
to SQL server 2000. When the database was on 6.5 the previous
development team has used oledb connections all over. As the databases
have been moved to SQL server 2000 now i am in process of changing the
database connection part. As part of the process i have a login
authorization code.
Private Function Authenticate(ByVal username As String, ByVal password As String, ByRef results As NorisSetupLib.AuthorizationResult) As Boolean
Dim conn As IDbConnection = GetConnection()
Try
Dim cmd As IDbCommand = conn.CreateCommand()
Dim sql As String = "EDSConfirmUpdate" '"EDSConfirmUpdate""PswdConfirmation"
'Dim cmd As SqlCommand = New SqlCommand("sql", conn)

cmd.CommandText = sql
cmd.CommandType = CommandType.StoredProcedure
NorisHelpers.DBHelpers.AddParam(cmd, "@logon", username)
NorisHelpers.DBHelpers.AddParam(cmd, "@password", password)
conn.Open()
'Get string for return values
Dim ReturnValue As String = cmd.ExecuteScalar.ToString
'Split string into array
Dim Values() As String = ReturnValue.Split(";~".ToCharArray)
'If the return code is CONTINUE, all is well. Otherwise, collect the
'reason why the result failed and let the user know
If Values(0) = "CONTINUE" Then
Return True
Else
results.Result = Values(0)
'Make sure there is a message being returned
If Values.Length > 1 Then
results.Message = Values(2)
End If
Return False
End If
Catch ex As Exception
Throw ex
Finally
If (Not conn Is Nothing AndAlso conn.State = ConnectionState.Open) Then
conn.Close()
End If
End Try
End Function
''' -----------------------------------------------------------------------------
''' <summary>
''' Getting the Connection from the config file
''' </summary>
''' <returns>A connection object</returns>
''' <remarks>
''' This is the same for all of the data classes.
''' Reads a specific
connection string from the web.config file for the service, creates a
connection object and returns it as an IDbConnection.
''' </remarks>
''' -----------------------------------------------------------------------------
Private Function GetConnection() As IDbConnection
'Dim conn As IDbConnection = New System.Data.OleDb.OleDbConnection
Dim conn As IDbConnection = New System.Data.SqlClient.SqlConnection
conn.ConnectionString = NorisHelpers.DBHelpers.GetConnectionString(NorisHelpers.DBHelpers.COMMON)
Return conn
End Function
in the above GetConnection() method i
have commented out the .net dataprovider for oledb and changed it to
.net dataprovider for SQLconnection. this function works fine. But in
the authenticate method above at the line
Dim ReturnValue As String = cmd.ExecuteScalar.ToString

for some reason its throwing the below error.
Run-time exception thrown : System.Data.SqlClient.SqlException - @password is not a parameter for procedure EDSConfirmUpdate.
If i comment out the
Dim conn As IDbConnection = New System.Data.SqlClient.SqlConnection
and uncomment the .net oledb provider,
Dim conn As IDbConnection = New System.Data.OleDb.OleDbConnection
then it works fine.
I also have changed the webconfig file as  below.
<!--<add
key="Common" value='User ID=**secret**;pwd=**secret**;Data
Source="ESMALLDB2K";Initial Catalog=cj_common;Auto
Translate=True;Persist Security Info=False;Provider="SQLOLEDB.1";'
/>-->
<add key="Common" value='User ID=**secret**;pwd=**secret**;Data Source="ESMALLDB2K";Initial Catalog=cj_common;' />
 
Please help. Thanks in advance.
 

View 4 Replies View Related

Rendering Report Page By Page Using Webservices

Apr 10, 2008

How can I get only one page of data each time when I call the render menthod from the SSRS webservice

View 3 Replies View Related

Keep A Few Connections Open All The Time Or Open/close Connections On The Fly?

Jul 20, 2005

Just a quick question about connection management. My application willnever need more than 1 or 2 connections about at any given time. Also, I donot expect many users to be connected at any given time. For efficiency, Iwould like to keep connections alive throughout the lifetime of the objectsrequiring them, rather than opening a new connection, executing code andthen closing it again. What is the most efficient way of doing this?Should I perform the open/close or just one open when I create the objectand a close when I dispose of it?

View 1 Replies View Related

Net Stop....

Mar 11, 2002

Hi All,
I'd like to remotly stop an instance of SQL Server
but this command does not seem to work....

net stop mssql$<server name> (eg. net stop mssql$prod)

...any ideas? I'll want to start this sql server again too.

David.

View 1 Replies View Related

Stop SQL CLR In DB

Jan 30, 2008

Is there any way to stop SQL CLR on database apart from using

sp_configure 'clr enabled', 1
GO
RECONFIGURE
GO

I want to stop this functionality on database...any idea...

View 1 Replies View Related

SQL Autoincrement Id STOP

Apr 10, 2008

 Hi  All        I am using SQL server Database in one of my table there is a column which is set to Identity=Yes i.e., The ID is increment by one on every insert and if  the insertion failed then the id generated goes off then in the next generation it uses new id ..........EXfirst insertion id=1 then in the second insertion if while adding data to other rows if i get some error  then the id 2 is not used and when i correct the error and insert it then id=3? can any one give me the solution for this and NextWhen i delete the datafrom the table see the ids are upto 20 and i delete all the records from the table after insertion of new  record the id will be 21plese help me in this  

View 3 Replies View Related

How Do I Stop These Duplicates

Feb 25, 2004

I have these two tables and I cant prevent duplicates.
SEARCH
Item
ItemID
Info

CATEGORYDATA
CategoryID
ItemID

SELECT DISTINCT SEARCH.ItemId, SEARCH.Item, CATEGORYDATA.CategoryId
FROM SEARCH
INNER JOIN CATEGORYDATA
ON SEARCH.ItemID = CATEGORYDATA.ItemID
And I get something like:ItemID Item CategoryID
1 item1 1
3 item3 1
1 item1 2 <---duplicate
1 item1 3 <---duplicate
2 item2 3
4 item4 3
Thanks in advance

View 4 Replies View Related

Stop Replication

Apr 29, 2002

I have a snapshot replication is running and now I want to stop the replication for a while. Is it possible to do that? If it is then where I can set to stop it? Please help.

Thanks for Help!

View 2 Replies View Related

Net Use Start/stop Sql

Apr 25, 2000

Hello,

Does any one know how I can start and stop the sql services with the net use command?

Thanks,
Anthony

View 1 Replies View Related

Cant Stop SQL Server

Sep 1, 1998

I use EM to handle 2 SQL servers. One I can `stop`; the other I can`t. (except I think I used to be able to do so).

When I select the `stop` I get the following message from EM:

"An error 1051 - (A stop control has bee sent to a service which other running services are dependent on) occurred while performing the service operation on the MSSQLServer service."

How do I track down what this other running service is? How do I stop SQL?

All help greatly appreciated.

Judith

View 1 Replies View Related

Start/Stop SQL From Far Away

May 10, 2002

I need to remotely start and stop SQL from another machine from a program or command line. Thanks in advance.

View 1 Replies View Related

How To Stop Replication

Aug 29, 2002

I wanted to remove my Northwind database. But that database is currently used for replication. I'll have to stop the replication first before I can remove it.

So how to stop the replication?

Thanks!

amy

View 1 Replies View Related

Stop Execution

Feb 13, 2006

Hi,
Can anybody tell me how to stop the execution of a T-SQL statement at once? I have tried Alt+Break but its taking a long time to stop.Whats the reason?Plz suggest....I am dealing with a database containing 24343000 data.
Joydeep

View 5 Replies View Related

Why Would This Stop Working

Sep 7, 2007

Hey

I have a statement that has been running great for the past hour but now it will not pull the info any longer and just gives me a null

DECLARE @Text VARCHAR(2000)
SELECT @Text = COALESCE(@Text + '', '') + x.memotext
FROM (SELECT TOP 100 PERCENT memotext FROM customermemoheader WHERE memonumber = 'TERMS' and customernumber = '0009' ORDER BY seqnumber) AS x

SELECT @Text AS MemoText


I have verified in the tables that the info is there by running the select statement from within the (). It has worked for 8000 records and now it no longer works. Any help would be much appreciated.

THanks

View 14 Replies View Related

Stop Preparing My SQL!

Nov 30, 2007

I have a performance issue with a Cognos report against SQL Server 2005.
The total running time of the report is 1 minute 15, and using SQL Profiler I found out that 1m13 is spent preparing SQL. Execution and generating the report takes up 2 seconds; no problem there.
The SQL is the same every time I run the report, yet SQL Server spends 1m13 preparing it every single time! I'm no DBA, but as far as I understand that's not what's supposed to happen; once prepared, the SQL should execute quickly every time.

Is there a way to stop SQL from preparing the statement every time?

(Cognos 8 against SQL Server 2005 through OLEDB. Oh, and this query takes about a second when run in EM.)

View 14 Replies View Related

How To Stop Replication

Jun 29, 2015

How do you stop Replication?It is causing blocking. URLs....

View 9 Replies View Related

Do We Have A STOP Command

Feb 26, 2008

Hey Guys, I have a question. I know you can put a 'STOP' command in VBA code. Is there something like that for SQL Server Stored Procedures?

View 3 Replies View Related

How To Stop Logging

Jul 20, 2005

Hi,I am doing some resource hungry tasks (some extraction and loadingthrough DTS), for which each time the SQL Server Log files gets filledup!Is there any way to stop the logging (like as during restore)?Thanks in advance.-surajit

View 1 Replies View Related

How To Stop Mssql

Jul 20, 2005

Hi.I need to stop mssql service via command row.How can I do?Tnk,Luca

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved