Showing posts with label pages. Show all posts
Showing posts with label pages. Show all posts

Thursday, March 8, 2012

Can i use the OleDbDataAdapter with SQL SERVER EXPRESS

i have a large amount of code to convert (over 100 asp ver. 2 pages)

Microsoft Access to SQL SERVER EXPRESS

the original code uses the OleDbDataAdapter

example: =========

Dim Connect As OleDbConnection = New OleDbConnection
Dim MyAdapter As OleDbDataAdapter = New OleDbDataAdapter
Dim MyCmdbuilder As OleDbCommandBuilder
Dim Mydataset As DataSet = New DataSet
Dim SelectStatement as string = "select * from tbl_weblog"
Dim connectString as string = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=e:\web\users\data\abc.mdb"

Connect.ConnectionString = ConnectString
MyAdapter.SelectCommand = new OleDbCommand(SelectStatement, Connect)
MyCmdbuilder = New OleDbCommandBuilder(MyAdapter)
MyAdapter.Fill(Mydataset,"tbl_weblog")

================

Can i just change the connection string to point to the new database, assuming the field names and structures are all the same.

Yes, you can, but it's not optimal. The native SqlClient is much better. You could just replace every occurance (search & replace in VS) of "OleDb" with "Sql", and take it from there.

|||

Thanks for the reply

Are there big differences between the Oledb and SQL Client?

You say "much better", in what areas?

reliabilty, scalability or performance?

Does anyone know where i could research this further?

|||

Sorry for being too brief...

The performance difference can be huge in some occasions, and you get nice features such as named parameters.


Friday, February 24, 2012

Can I tell how often the clustered index pages are spliting?

Greetings

For performance reasons I am trying to determine how often the pages in
the index split due to inserts. Are there any records in the 'sys' tables,
etc. Thanx"Robert" <stop.spam@.boeing.com> wrote in message news:<Hsw479.Mnx@.news.boeing.com>...
> Greetings
> For performance reasons I am trying to determine how often the pages in
> the index split due to inserts. Are there any records in the 'sys' tables,
> etc. Thanx

I don't think this is stored in any system table, but you can use the
Performance Monitor counter SQLServer:AccessMethods, Page Splits/sec
to capture the information.

Simon|||Many, many thanx. I found it.

"Simon Hayes" <sql@.hayes.ch> wrote in message
news:60cd0137.0402102355.4236cb34@.posting.google.c om...
> "Robert" <stop.spam@.boeing.com> wrote in message
news:<Hsw479.Mnx@.news.boeing.com>...
> > Greetings
> > For performance reasons I am trying to determine how often the pages
in
> > the index split due to inserts. Are there any records in the 'sys'
tables,
> > etc. Thanx
> I don't think this is stored in any system table, but you can use the
> Performance Monitor counter SQLServer:AccessMethods, Page Splits/sec
> to capture the information.
> Simon

Friday, February 10, 2012

Can I Install the reports server on a different web server than the database server

I cant install the reports seerver on the same machine than the database
server. What can I do?
I need database on one server and pages on another server. I just cant open
web server service on the database server.
Please helpme.
Thanks
--
LUIS ESTEBAN VALENCIA
MICROSOFT DCE 3.
MIEMBRO ACTIVO DE ALIANZADEV
http://spaces.msn.com/members/extremed/You can definitely do this. If you want multiple web servers then that is
considered a web farm and you need to read up on that. Otherwise there is a
process where you install RS on a different server than where the DB is that
is used by RS. Note that you have to buy a license for this server. It it is
installed on a different machine then you need to purchase a license.
Another thing for you to consider is to install SQL Server on your web
server and use it just for reports. RS uses the DB for object storage,
caching etc. The data you report off of can be anywhere. SQL Server is very
good on not consuming much resources when it is not under load. If you have
a 3/4 of aGig of RAM or more on your webserver I would consider this
approach.
I suggest going here:
http://www.microsoft.com/sql/reporting/
download books on line and search it on the word install
One point to consider (which even more makes it worthwhile to install SQL
Server on the webserver just for its use (no data) is this statement I found
when reading about command line install:
... the SQL Server instance that hosts the report server database. All
editions of Reporting Services require SQL Server 2000 with SP3a or later.
For Standard Edition, the instance of SQL Server must be local. For all
others, it can either be local or available over the network. The servername
portion of the parameter can be a hostname, or an IP address. Reporting
Services does not support MSDE as a SQL Server instance.
So, if you don't have SQL Server running on the same machine you have to buy
an enterprise license rather than standard.
--
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Luis Esteban Valencia" <luisvalen@.haceb.com> wrote in message
news:%23Sf0WsEEFHA.392@.TK2MSFTNGP14.phx.gbl...
> I cant install the reports seerver on the same machine than the database
> server. What can I do?
> I need database on one server and pages on another server. I just cant
open
> web server service on the database server.
> Please helpme.
> Thanks
> --
> LUIS ESTEBAN VALENCIA
> MICROSOFT DCE 3.
> MIEMBRO ACTIVO DE ALIANZADEV
> http://spaces.msn.com/members/extremed/
>