Creating dataset with wizard
-
- Posts: 30
- Joined: Fri 31 Aug 2007 03:30
- Location: India
Creating dataset with wizard
hi,
What I am doing is not using table adapters / data adapters to create the dataset instead using command schema.
I follow the following procedure
1. select data set name
2. select connection
3. select data source type as NONE (Command Schema)
3. In data table add table that comes default as Table1
4. From data source dropdown select command schema it prompts me for the command
5. I type in the command as
select col1 , col2 from mytable where col3 = ':parameter1'
6. I select "Select Parameter Tab" add a parameter as parameter1 and give its data type bigint,
direction input
Now go to previw the data it gives me a error saying Parameter missing
Am I doing something wrong ??
What I am doing is not using table adapters / data adapters to create the dataset instead using command schema.
I follow the following procedure
1. select data set name
2. select connection
3. select data source type as NONE (Command Schema)
3. In data table add table that comes default as Table1
4. From data source dropdown select command schema it prompts me for the command
5. I type in the command as
select col1 , col2 from mytable where col3 = ':parameter1'
6. I select "Select Parameter Tab" add a parameter as parameter1 and give its data type bigint,
direction input
Now go to previw the data it gives me a error saying Parameter missing
Am I doing something wrong ??
-
- Posts: 729
- Joined: Thu 13 Dec 2007 10:24
I cannot reproduce the error.
Try deleting quote signs next to the parameter.Please send me a small test project to reproduce the problem.
It is desirable to use 'emp' and 'dept' database objects, otherwise include the
definition of your own database objects.
Do not use third party components.
If it is impossible for you to create the test project, send us a piece of
your code where the error occurs.
Try deleting quote signs next to the parameter.
Code: Select all
select col1 , col2 from mytable where col3 = :parameter1
It is desirable to use 'emp' and 'dept' database objects, otherwise include the
definition of your own database objects.
Do not use third party components.
If it is impossible for you to create the test project, send us a piece of
your code where the error occurs.
-
- Posts: 30
- Joined: Fri 31 Aug 2007 03:30
- Location: India
What if using regular expression
what to do if using reg exp like
This would run in any postgresql database as
I dont think you need a test case for this.
Create a similar query let col3 has values like 2000 , 20000 , 2001,208976
Code: Select all
select col1, col2 from mytable where col3 ~'^:parameter1'
Code: Select all
select col1, col2 from mytable where col3 ~'^20'
Create a similar query let col3 has values like 2000 , 20000 , 2001,208976
-
- Posts: 729
- Joined: Thu 13 Dec 2007 10:24
Try this SELECT string:
Code: Select all
select * from TABLE where COLUMN1 = '~^' || :parameter1
-
- Posts: 30
- Joined: Fri 31 Aug 2007 03:30
- Location: India
noop does not work
sorry for the late reply
that does not pull any record from database.
moreover how will it help we are just piping the parameter also we using a "=" which does not make any sence in first place.
the operator that I want to use is ~'^ ' not =
looking for a solution
Alexey.mdr wrote:Try this SELECT string:Code: Select all
select * from TABLE where COLUMN1 = '~^' || :parameter1
that does not pull any record from database.
moreover how will it help we are just piping the parameter also we using a "=" which does not make any sence in first place.
the operator that I want to use is ~'^ ' not =
looking for a solution
-
- Posts: 729
- Joined: Thu 13 Dec 2007 10:24
-
- Posts: 30
- Joined: Fri 31 Aug 2007 03:30
- Location: India
still does not work
it still does not work .
what to talk about the wizard I am not even able to run a query with typed command. i.e manually written code.
I have a strong fealing we are missing this capability in the .net adapter
what to talk about the wizard I am not even able to run a query with typed command. i.e manually written code.
I have a strong fealing we are missing this capability in the .net adapter
-
- Posts: 729
- Joined: Thu 13 Dec 2007 10:24
-
- Posts: 30
- Joined: Fri 31 Aug 2007 03:30
- Location: India
-
- Posts: 729
- Joined: Thu 13 Dec 2007 10:24