473,406 Members | 2,549 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Seek method, table-direct, and sql server2005

From what I've read in the docs, ado.net currently supports opening sql
server ce tables in table-direct mode and performing Seek operations on them
(using SqlCeDataReader), but not on the full-blown sql server. Is this
(will this be) still true with ado.net 2.0 & sql server 2005?

Jul 23 '05 #1
11 2534
Manuel Lopez (ma******************************@deadspam.com) writes:
From what I've read in the docs, ado.net currently supports opening sql
server ce tables in table-direct mode and performing Seek operations on
them (using SqlCeDataReader), but not on the full-blown sql server. Is
this (will this be) still true with ado.net 2.0 & sql server 2005?


I looked the MSDN for the VS 2005 beta, and there is no Seek method
for the SqlDataReader.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 23 '05 #2
I'm doing a CF2.0, SQLMobile app right now and using Seek. It *is*
supported and works well.
The documentation is probably just not up to date yet.
--
Darren Shaffer
Principal Architect
Connected Innovation

"Erland Sommarskog" <es****@sommarskog.se> wrote in message
news:Xn**********************@127.0.0.1...
Manuel Lopez (ma******************************@deadspam.com) writes:
From what I've read in the docs, ado.net currently supports opening sql
server ce tables in table-direct mode and performing Seek operations on
them (using SqlCeDataReader), but not on the full-blown sql server. Is
this (will this be) still true with ado.net 2.0 & sql server 2005?


I looked the MSDN for the VS 2005 beta, and there is no Seek method
for the SqlDataReader.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp

Jul 23 '05 #3
Darren Shaffer (da***********@discussions.microsoft.com) writes:
I'm doing a CF2.0, SQLMobile app right now and using Seek. It *is*
supported and works well.
The documentation is probably just not up to date yet.


And you use SqlDataReader and not SqlCeDataReader with SQL Mobile? (The
original poster asked for Seek in SqlDataReader when talking to
SQL2005 non-Mobile.

--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 23 '05 #4
apologies - read the orig post too quickly and assumed he was asking about
SQLMobile.
--
Darren Shaffer
Principal Architect
Connected Innovation

"Erland Sommarskog" <es****@sommarskog.se> wrote in message
news:Xn**********************@127.0.0.1...
Darren Shaffer (da***********@discussions.microsoft.com) writes:
I'm doing a CF2.0, SQLMobile app right now and using Seek. It *is*
supported and works well.
The documentation is probably just not up to date yet.


And you use SqlDataReader and not SqlCeDataReader with SQL Mobile? (The
original poster asked for Seek in SqlDataReader when talking to
SQL2005 non-Mobile.

--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp

Jul 23 '05 #5
I don't mind using SqlCeDataReader, but I assume there's no way to get it to
work with sql server (except the ce version). On the other hand, perhaps
that's wrong? are there really two diffferent file formats for sql server,
ce and non-ce? if not, couldn't the ce version conceivably be used against
regular sql server?

"Darren Shaffer" <da***********@discussions.microsoft.com> wrote in message
news:eY**************@TK2MSFTNGP14.phx.gbl...
apologies - read the orig post too quickly and assumed he was asking about
SQLMobile.
--
Darren Shaffer
Principal Architect
Connected Innovation

"Erland Sommarskog" <es****@sommarskog.se> wrote in message
news:Xn**********************@127.0.0.1...
Darren Shaffer (da***********@discussions.microsoft.com) writes:
I'm doing a CF2.0, SQLMobile app right now and using Seek. It *is*
supported and works well.
The documentation is probably just not up to date yet.


And you use SqlDataReader and not SqlCeDataReader with SQL Mobile? (The
original poster asked for Seek in SqlDataReader when talking to
SQL2005 non-Mobile.

--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp


Jul 23 '05 #6
Manuel Lopez (ma******************************@deadspam.com) writes:
I don't mind using SqlCeDataReader, but I assume there's no way to get
it to work with sql server (except the ce version). On the other hand,
perhaps that's wrong? are there really two diffferent file formats for
sql server, ce and non-ce? if not, couldn't the ce version conceivably
be used against regular sql server?


I don't know much about SQL Server CE/Mobile, but as I understood it from
a discussion about the OLE DB provider for SQL Server CE, that provider
really pokes around in the files - that is SQL Server CE is not a server
at all.

With the real SQL Server you communicate over some network protocol, and
the data provider never directly accesses the files. From this reason,
a Seek method makes less sense with SQL Server non-CE.

There are also interesting syntax differences between the two. For instance
in the real SQL Server you cannot use ALTER TABLE to add the IDENTITY
property to a column. This feature which is often asked for is available
in SQL Server CE!
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 23 '05 #7
The fact that the ce provider accesses the sql server files directly, rather
than use a network protocol, is actually a plus for me, since I use sql
server only as a local database (desktop database). As I understand it,
you're saying the file formats are the same, so then conceivably it could be
made to work against sql server (though there are probably other obstacles,
and perhaps the eula prevents trying).
"Erland Sommarskog" <es****@sommarskog.se> wrote in message
news:Xn**********************@127.0.0.1...
Manuel Lopez (ma******************************@deadspam.com) writes:
I don't mind using SqlCeDataReader, but I assume there's no way to get
it to work with sql server (except the ce version). On the other hand,
perhaps that's wrong? are there really two diffferent file formats for
sql server, ce and non-ce? if not, couldn't the ce version conceivably
be used against regular sql server?


I don't know much about SQL Server CE/Mobile, but as I understood it from
a discussion about the OLE DB provider for SQL Server CE, that provider
really pokes around in the files - that is SQL Server CE is not a server
at all.

With the real SQL Server you communicate over some network protocol, and
the data provider never directly accesses the files. From this reason,
a Seek method makes less sense with SQL Server non-CE.

There are also interesting syntax differences between the two. For
instance
in the real SQL Server you cannot use ALTER TABLE to add the IDENTITY
property to a column. This feature which is often asked for is available
in SQL Server CE!
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp

Jul 23 '05 #8
Manuel Lopez (ma******************************@deadspam.com) writes:
The fact that the ce provider accesses the sql server files directly,
rather than use a network protocol, is actually a plus for me, since I
use sql server only as a local database (desktop database). As I
understand it, you're saying the file formats are the same, so then
conceivably it could be made to work against sql server (though there
are probably other obstacles, and perhaps the eula prevents trying).


Did I say the file formats are the same? In such case I take that back.
I don't know anything about the file format of SQL Server CE.

However, I would be very much suprised if they have the same format, since
the databases are accessed in so different ways. The data files in real
SQL Server are accessed by one single executable: sqlsrvr.exe, whereas
several processes could access an SQL Server CE database.

Essentially it seems to be that the two databases are in fact two quite
different architectures, but with an (almost common) interface in T-SQL.

--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 23 '05 #9
You hadn't said it, but I wrongly inferred it from your remarks. I'll see
if I can find something from Microsoft on this; but I take it the ce version
is like sql server in the sense of supporting the same query language, but
in other respects it's likely to be an entirely different database.

"Erland Sommarskog" <es****@sommarskog.se> wrote in message
news:Xn*********************@127.0.0.1...
Manuel Lopez (ma******************************@deadspam.com) writes:
The fact that the ce provider accesses the sql server files directly,
rather than use a network protocol, is actually a plus for me, since I
use sql server only as a local database (desktop database). As I
understand it, you're saying the file formats are the same, so then
conceivably it could be made to work against sql server (though there
are probably other obstacles, and perhaps the eula prevents trying).


Did I say the file formats are the same? In such case I take that back.
I don't know anything about the file format of SQL Server CE.

However, I would be very much suprised if they have the same format, since
the databases are accessed in so different ways. The data files in real
SQL Server are accessed by one single executable: sqlsrvr.exe, whereas
several processes could access an SQL Server CE database.

Essentially it seems to be that the two databases are in fact two quite
different architectures, but with an (almost common) interface in T-SQL.

--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp

Jul 23 '05 #10
CE is likely closer to Jet internally than to SQL Server. Most of the
original Jet programmers moved over to the SQL team to develop the
product. That being said, I don't actually know much about the
internals of CE vis a vis SQLS other than that factoid :-)

--Mary

On Fri, 25 Feb 2005 20:13:38 -0600, "Manuel Lopez"
<ma******************************@deadspam.com> wrote:
You hadn't said it, but I wrongly inferred it from your remarks. I'll see
if I can find something from Microsoft on this; but I take it the ce version
is like sql server in the sense of supporting the same query language, but
in other respects it's likely to be an entirely different database.

"Erland Sommarskog" <es****@sommarskog.se> wrote in message
news:Xn*********************@127.0.0.1...
Manuel Lopez (ma******************************@deadspam.com) writes:
The fact that the ce provider accesses the sql server files directly,
rather than use a network protocol, is actually a plus for me, since I
use sql server only as a local database (desktop database). As I
understand it, you're saying the file formats are the same, so then
conceivably it could be made to work against sql server (though there
are probably other obstacles, and perhaps the eula prevents trying).


Did I say the file formats are the same? In such case I take that back.
I don't know anything about the file format of SQL Server CE.

However, I would be very much suprised if they have the same format, since
the databases are accessed in so different ways. The data files in real
SQL Server are accessed by one single executable: sqlsrvr.exe, whereas
several processes could access an SQL Server CE database.

Essentially it seems to be that the two databases are in fact two quite
different architectures, but with an (almost common) interface in T-SQL.

--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp


Jul 23 '05 #11
Thanks, that's more than I was able to find out on my own.

"Mary Chipman [MSFT]" <mc***@online.microsoft.com> wrote in message
news:jv********************************@4ax.com...
CE is likely closer to Jet internally than to SQL Server. Most of the
original Jet programmers moved over to the SQL team to develop the
product. That being said, I don't actually know much about the
internals of CE vis a vis SQLS other than that factoid :-)

--Mary

On Fri, 25 Feb 2005 20:13:38 -0600, "Manuel Lopez"
<ma******************************@deadspam.com> wrote:
You hadn't said it, but I wrongly inferred it from your remarks. I'll see
if I can find something from Microsoft on this; but I take it the ce
version
is like sql server in the sense of supporting the same query language, but
in other respects it's likely to be an entirely different database.

Jul 23 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Average Bear | last post by:
If anyone could help with this one, I am a bit puzzled. I understand you can create an index using two fields of a database, then use the seek method to find a record based on both fields. My...
5
by: MLH | last post by:
I have a table I can open as table type recordset or a dynaset. Searching for a particular value in the table's main keyfield, which would be faster and less strain on the application......
11
by: Tiger | last post by:
We can use seek() in the FileStream class,as we know. But I found that seek() is not work correctly in StreamReader. Who can tell me how to use seek() correctly in StreamReader? thanks a lot! I...
59
by: Rico | last post by:
Hello, I have an application that I'm converting to Access 2003 and SQL Server 2005 Express. The application uses extensive use of DAO and the SEEK method on indexes. I'm having an issue when...
4
by: Terry | last post by:
Hi, I am both new to .Net (coming from VB6 and DAO) and to this news group. I am trying to convert some code from VB6 that uses a "record set" to help the user locate a specific record. As the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...
0
jinu1996
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.