cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

How to Create a Stored Procedure from thingworx service

vxba
10-Marble

How to Create a Stored Procedure from thingworx service

I want to create a stored procedure from thingworx service, when I'm run test it throw an error 

"Unable to Invoke Service ListServices on  TestDatabase: Incorrect syntax near 'GO'. "

for example:

USE [SERVICE1]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
 
CREATE PROCEDURE [dbo].[ListServices]
@product_id nvarchar(32)
AS
BEGIN
.........
END
ACCEPTED SOLUTION

Accepted Solutions
supandey
19-Tanzanite
(To:vxba)

Hi @vxba could you try something like this :

 

Create procedure dbo.demoProc1
@Sno int
AS
SET NOCOUNT ON;
Select * from table1
where sNO = @Sno;

Let me know if there's any issue.

View solution in original post

2 REPLIES 2
supandey
19-Tanzanite
(To:vxba)

Hi @vxba could you try something like this :

 

Create procedure dbo.demoProc1
@Sno int
AS
SET NOCOUNT ON;
Select * from table1
where sNO = @Sno;

Let me know if there's any issue.

vxba
10-Marble
(To:supandey)

Thank you! It worked for me

Announcements


Top Tags