Hello there,
I was wondering if anyone knows if there is an easy way to import
expressions into my typed dataset from the original view/sql statement
For example if I drag a view from the server explorer onto my dataset I
would like it to import not just the caculated field but also the expression
that creates the field.
I think that an ORM mapper would probably do this for me but unfortunatly I
am stuck with datasets :(
Any ideas would be much appreciated, thank you
John Sheppard 4 1087
Hello,
Have you tried to edit the text in the selectcommand for the created
tableadapter, and copy from the definition for the view in sql server and
paste on the selectcommand text ?
Bye,
--
Roger Tranchez
MCTS
..NET 2005 and DB developer
"John Sheppard" wrote:
Hello there,
I was wondering if anyone knows if there is an easy way to import
expressions into my typed dataset from the original view/sql statement
For example if I drag a view from the server explorer onto my dataset I
would like it to import not just the caculated field but also the expression
that creates the field.
I think that an ORM mapper would probably do this for me but unfortunatly I
am stuck with datasets :(
Any ideas would be much appreciated, thank you
John Sheppard
Thanks Roger,
Yes I could do that, I just thought perhaps there might be a better way...
The expression field isnt standard sql or anything either which makes things
kind of difficult :(
I think I was perhaps hoping too much that I could automate it....
"Roger Tranchez" <ru*****@community.nospamwrote in message
news:B8**********************************@microsof t.com...
Hello,
Have you tried to edit the text in the selectcommand for the created
tableadapter, and copy from the definition for the view in sql server and
paste on the selectcommand text ?
Bye,
--
Roger Tranchez
MCTS
.NET 2005 and DB developer
"John Sheppard" wrote:
>Hello there,
I was wondering if anyone knows if there is an easy way to import expressions into my typed dataset from the original view/sql statement
For example if I drag a view from the server explorer onto my dataset I would like it to import not just the caculated field but also the expression that creates the field.
I think that an ORM mapper would probably do this for me but unfortunatly I am stuck with datasets :(
Any ideas would be much appreciated, thank you John Sheppard
In fact, if you have a view in sql server you can import it directly, doing
drag'n drop from server explorer to the design surface for your xsd file. It
seems obvious that if the select statement is not into a view, user function
or stored procedure, it is not possible to directly import it (you are trying
to import a "piece of text", so what could be expected ?!)
Bye,
--
Roger Tranchez
MCTS
..NET 2005 and DB developer
"John Sheppard" wrote:
Thanks Roger,
Yes I could do that, I just thought perhaps there might be a better way...
The expression field isnt standard sql or anything either which makes things
kind of difficult :(
I think I was perhaps hoping too much that I could automate it....
"Roger Tranchez" <ru*****@community.nospamwrote in message
news:B8**********************************@microsof t.com...
Hello,
Have you tried to edit the text in the selectcommand for the created
tableadapter, and copy from the definition for the view in sql server and
paste on the selectcommand text ?
Bye,
--
Roger Tranchez
MCTS
.NET 2005 and DB developer
"John Sheppard" wrote:
Hello there,
I was wondering if anyone knows if there is an easy way to import
expressions into my typed dataset from the original view/sql statement
For example if I drag a view from the server explorer onto my dataset I
would like it to import not just the caculated field but also the
expression
that creates the field.
I think that an ORM mapper would probably do this for me but unfortunatly
I
am stuck with datasets :(
Any ideas would be much appreciated, thank you
John Sheppard
When I tried it it did not import the expression from the view..it just
creates the field like its any other field...I thought perhaps it might try
and import the underlying expression as well...
It's double the work and error prone to make views that calculate then have
to duplicate any expression into the dataset manually...seems silly...
Thanks roger
John
"Roger Tranchez" <ru*****@community.nospamwrote in message
news:2F**********************************@microsof t.com...
In fact, if you have a view in sql server you can import it directly,
doing
drag'n drop from server explorer to the design surface for your xsd file.
It
seems obvious that if the select statement is not into a view, user
function
or stored procedure, it is not possible to directly import it (you are
trying
to import a "piece of text", so what could be expected ?!)
Bye,
--
Roger Tranchez
MCTS
.NET 2005 and DB developer
"John Sheppard" wrote:
>Thanks Roger,
Yes I could do that, I just thought perhaps there might be a better way...
The expression field isnt standard sql or anything either which makes things kind of difficult :(
I think I was perhaps hoping too much that I could automate it....
"Roger Tranchez" <ru*****@community.nospamwrote in message news:B8**********************************@microso ft.com...
Hello,
Have you tried to edit the text in the selectcommand for the created
tableadapter, and copy from the definition for the view in sql server
and
paste on the selectcommand text ?
Bye,
--
Roger Tranchez
MCTS
.NET 2005 and DB developer
"John Sheppard" wrote:
Hello there,
I was wondering if anyone knows if there is an easy way to import expressions into my typed dataset from the original view/sql statement
For example if I drag a view from the server explorer onto my dataset I would like it to import not just the caculated field but also the expression that creates the field.
I think that an ORM mapper would probably do this for me but unfortunatly I am stuck with datasets :(
Any ideas would be much appreciated, thank you John Sheppard
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Garry Dawkins |
last post by:
Hey Frank, I'm a novice with this taking over someone elses application.
I'm attempting to add a dataset to a page. I have the query to populate
the page and I have the walkthrough instructions. ...
|
by: jtsree |
last post by:
i am using Visual Studio.net professional 2003 (VisualBasic.net).I am
building a very very simple project where i need to connect to Microsoft
access database through OledbDataAdapter in design...
|
by: jtsree |
last post by:
I am Using (Windows XP) Visual Studio.net 2003 professional edition working
on VB.net language.
I am bulding a very very simple project in VB.net where i connect to Access
Database by dragging...
|
by: Ook |
last post by:
I think I'm being bitten by holes in the documentation - documentation that
assumes a certain knowledge of how dotnet works, knowledge that I lack :-)
I downloaded and installed odbc.net. I...
|
by: S. H. |
last post by:
I am using a small function to return information from an Access
database.
Whether I use xml formatted text or otherwise, the results are
returned to me in a formatted way. I'm new to C#, so I'm...
|
by: ASP.Net programmer |
last post by:
I have a few SQLDataAdapters which select a MAX() value from a few
different tables.
Here is a sample of the SQL statement:
SELECT MAX(startdate) AS startdate
FROM some_table1
WHERE (startdate...
|
by: pete |
last post by:
Help, I can not find this data wizard in my toolbox under data.
To generate a dataset
1.. From the Data menu, choose Generate DataSet.
Tip If you do not see the Data menu, click in the...
|
by: sambuela |
last post by:
All data controls and wizards
about dataset, adapter or dataviewer disappear in the IDE.
How can i let them appear again?
It is because i want to generate dataset by these wizard.
Thanks in...
|
by: G .Net |
last post by:
Hi
Can anybody help with a problem with Expressions for DataColumns
Suppose I have a table with three fields A, B and C.
I want an expression in column C so that
C = 2 * A if A is not...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
| |