cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
vharibal
Level III

Delete object reference in SQL custom query - JMP 17

Hi,

I am trying to query data base by providing input parameter through a variable.

 

1] I am seeing below error for attached:

a = 666.1;
deleted object reference[]

 

How do i resolve this?

 

 

It works when I  use 666.1 directly here FROM fer_view2 t1 where(t1.DVT_id = 666.1)

 
a = 666.1;

show(a);

obj = New SQL Query(
	Connection( "ODBC:DSN=DVT Data Server" ),
	QueryName( "fer_view2" ),
	CustomSQL(
		"SELECT *
FROM fer_view2  t1 where(t1.DVT_id = a) ;"
	)
	
) << Run;
	
 
Also same thing happens when i create a text edit box to input value from user
1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Delete object reference in SQL custom query - JMP 17

You will have to build the query string (currently you just have a there not the value). You can evaluate your variable there using Eval Insert (or use other methods)

a = 123;
Eval Insert("SELECT *
FROM fer_view2  t1 where(t1.DVT_id = ^a^) ;")

Eval insert uses ^ by default a startChar

-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: Delete object reference in SQL custom query - JMP 17

You will have to build the query string (currently you just have a there not the value). You can evaluate your variable there using Eval Insert (or use other methods)

a = 123;
Eval Insert("SELECT *
FROM fer_view2  t1 where(t1.DVT_id = ^a^) ;")

Eval insert uses ^ by default a startChar

-Jarmo
vharibal
Level III

Re: Delete object reference in SQL custom query - JMP 17

Thank you so much. It worked

Recommended Articles