Showing posts with label application. Show all posts
Showing posts with label application. Show all posts

Friday, March 30, 2012

poor preformance usinng sql 2005 with access 2003 application

we have run access 2003 application using SQL 2005 server
and the data transfer rate is extreamly slow.
we are using ODBC connection
and the access apllication works very fast with SQL 2000.

we have the tested the comptabilty of the application to SQL 2005 with Microsoft wizard and it had no problems.
even when i run simple application on the sql 2005 server, it runs very slowly.

i am using the MDAC clients ODBC component and the SQL Native Clients one.
which eliminates the possibilty of network problem.

what could be the problem?

Most likely the problem is improper indexing on the SQL Server side. Typically the driver used is not going to have a huge impact on overall performance. The simplest way to verify if you have index issues is run your application against SQL 2005 and capture a SQL Profiler trace of the activity. Then take the profiler trace and run it though the "Database Engine Tuning Advisor" tool that comes with SQL 2005 and it will analyze the trace and make recommendations as to what indexes to build.

Poor performance when accessing reports through URL

When viewing reports through the ReportServer application, I typically can
get response times that are between 5 and 10 seconds for my reports (in pdf
format). However, when I attempt to just view the report directly using a URL
(with the appropriate arguments supplied), the reponse time is usually 3 or 4
times worse, and it seems to eat up more resources. Is accessing reports
through a URL somehow doing something different? Anyone else experience this?
Any help would be appreciated.When you use Report Manager you are not getting the report as PDF. You are
getting them as HTML. Then through URL you can get them as PDF or HTML (your
choice). PDF and Excel formats are much much slower than HTML and are much
more resource intensive.
Try your URL as html (if you leave off the rendering format it defaults to
HTML).
You should not be seeing a difference if the format is the same with both. I
suspect that you are rendering in different formats.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"blabore" <blabore@.discussions.microsoft.com> wrote in message
news:EECE8772-5AEA-40F1-AE63-AA9A409A4646@.microsoft.com...
> When viewing reports through the ReportServer application, I typically can
> get response times that are between 5 and 10 seconds for my reports (in
> pdf
> format). However, when I attempt to just view the report directly using a
> URL
> (with the appropriate arguments supplied), the reponse time is usually 3
> or 4
> times worse, and it seems to eat up more resources. Is accessing reports
> through a URL somehow doing something different? Anyone else experience
> this?
> Any help would be appreciated.|||Bruce,
Thanks for the response. I probably wan't clear in my first post. To make
sure I was comparing apples to apples, I used the export functionality in the
report server to get a PDF. The time to complete the export was approximately
6 seconds, while when I attempted to do the same through a URL, it was over
20. To be sure that the time used to load Acrobat Reader doesn't affect
anything, I don't even have it installed, which just forces IE to download
the file. It seems odd, since the web serivce should be used no matter.
What I've found is that when I use slashes in the URL (instead of esacping
them), it significant slows things down. Is this a known issue?
"Bruce L-C [MVP]" wrote:
> When you use Report Manager you are not getting the report as PDF. You are
> getting them as HTML. Then through URL you can get them as PDF or HTML (your
> choice). PDF and Excel formats are much much slower than HTML and are much
> more resource intensive.
> Try your URL as html (if you leave off the rendering format it defaults to
> HTML).
> You should not be seeing a difference if the format is the same with both. I
> suspect that you are rendering in different formats.
>
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
> "blabore" <blabore@.discussions.microsoft.com> wrote in message
> news:EECE8772-5AEA-40F1-AE63-AA9A409A4646@.microsoft.com...
> > When viewing reports through the ReportServer application, I typically can
> > get response times that are between 5 and 10 seconds for my reports (in
> > pdf
> > format). However, when I attempt to just view the report directly using a
> > URL
> > (with the appropriate arguments supplied), the reponse time is usually 3
> > or 4
> > times worse, and it seems to eat up more resources. Is accessing reports
> > through a URL somehow doing something different? Anyone else experience
> > this?
> >
> > Any help would be appreciated.
>
>|||Also, not sure if you are really comparing apples to apples. When you export
you get the report you are currently looking at. This means it uses the data
that it has already retrieved at the server. So the export would not have
the data retrieval time from whatever database you are hitting. There might
be some other differences as well.
The only other thing I can think of is authorization of the user. Could be
that this is taking some time.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"blabore" <blabore@.discussions.microsoft.com> wrote in message
news:238C6980-AD52-4CFF-BD67-84408CEE5263@.microsoft.com...
> Bruce,
> Thanks for the response. I probably wan't clear in my first post. To make
> sure I was comparing apples to apples, I used the export functionality in
> the
> report server to get a PDF. The time to complete the export was
> approximately
> 6 seconds, while when I attempted to do the same through a URL, it was
> over
> 20. To be sure that the time used to load Acrobat Reader doesn't affect
> anything, I don't even have it installed, which just forces IE to download
> the file. It seems odd, since the web serivce should be used no matter.
> What I've found is that when I use slashes in the URL (instead of esacping
> them), it significant slows things down. Is this a known issue?
> "Bruce L-C [MVP]" wrote:
>> When you use Report Manager you are not getting the report as PDF. You
>> are
>> getting them as HTML. Then through URL you can get them as PDF or HTML
>> (your
>> choice). PDF and Excel formats are much much slower than HTML and are
>> much
>> more resource intensive.
>> Try your URL as html (if you leave off the rendering format it defaults
>> to
>> HTML).
>> You should not be seeing a difference if the format is the same with
>> both. I
>> suspect that you are rendering in different formats.
>>
>> --
>> Bruce Loehle-Conger
>> MVP SQL Server Reporting Services
>> "blabore" <blabore@.discussions.microsoft.com> wrote in message
>> news:EECE8772-5AEA-40F1-AE63-AA9A409A4646@.microsoft.com...
>> > When viewing reports through the ReportServer application, I typically
>> > can
>> > get response times that are between 5 and 10 seconds for my reports (in
>> > pdf
>> > format). However, when I attempt to just view the report directly using
>> > a
>> > URL
>> > (with the appropriate arguments supplied), the reponse time is usually
>> > 3
>> > or 4
>> > times worse, and it seems to eat up more resources. Is accessing
>> > reports
>> > through a URL somehow doing something different? Anyone else experience
>> > this?
>> >
>> > Any help would be appreciated.
>>

Wednesday, March 28, 2012

Poor Performance on Dual Xeon Machine

Hi,

I've been creating a db application using MS Access and MSDE. Only two
of us are using the application, and the server and the app both run
great on my laptop (1.6 GHz Pentium M, 2GB RAM, W2KPro). Only problem
is when I take my laptop home, my coworker loses access to the server.

We recently purchased a dedicated server to run the db on at the
office. It's a 2.8 GHz Dual Xeon, 2GB RAM, running XPPro. We also
bought SQL Server, but I installed the Personal Edition becuase we are
not using a server OS. It's my understanding that XP can utilize both
processors, and the Personal Edition can use both processors as well.
(On a side note, why is Enterprise Manager showing that I have 4
processors - why?) In addition, I understand PE has a work-load
governor that cripples performance when more than 5 TSQL commands are
being run simultaneously.

I backed up the db on my laptop and restored it on our new server. But
when I run the exact same queries with the exact same number of rows,
my queries on the new server are take 3x longer(!?). Can someone
please offer a few suggestions for why this is happening? What can I
do to improve performance on the server machine?
Please let me know if I need to supply more information.

Thanks,
Alex>>>We recently purchased a dedicated server to run the db on at the
office. It's a 2.8 GHz Dual Xeon, 2GB RAM, running XPPro

You really should install a Server OS not XPPro. If you're stuck with
XPPro, you should install Developer Edition not PE, which is meant for
laptops.

>>>On a side note, why is Enterprise Manager showing that I have 4
processors - why?

MSSQL 2000 was written before Pentium 4 hyperthreading came out. The 2
chips appears as 4 to the software.

>>>I backed up the db on my laptop and restored it on our new server.
But when I run the exact same queries with the exact same number of
rows, my queries on the new server are take 3x longer(!?).
Try running sp_updatestats.|||Louis,

We have MSSQL Standard Edition (which includes Personal and MSDE), and
for the time being we have XPPro.

It seems to me that I'm running a very similar configuration on the
server to what I am on my laptop. PE should perform about the same if
not a little better than MSDE; same w/ XPPro over W2kPro.

I tried updating the statistics; that had no effect.

I've also been using the performance monitor a little and haven't found
anything out of the ordinary; the simple select queries I'm using as
benchmarks between the two machines are not accessing the physical disk
on either.

Alex|||I doubt performance monitor will say much -- as the new server
shouldn't have any hardware bottlenecks. More likely, it has to do
with the way MSSQL is configured/setup on the machine. (And the fact
it's XP professional with MSSQL PE). What does the execution plans say?|||:(

The execution plan on the laptop and the server are identical. Perhaps
you are right about the OS/MSSQL combinations we're using.

On a positive note, I tracked down a copy of Developer in the office;
I'm going to test XPPro w/ that.|||In article <1106840171.084819.266910@.z14g2000cwz.googlegroups. com>,
alex4groups@.gmail.com says...
> Hi,
> I've been creating a db application using MS Access and MSDE. Only two
> of us are using the application, and the server and the app both run
> great on my laptop (1.6 GHz Pentium M, 2GB RAM, W2KPro). Only problem
> is when I take my laptop home, my coworker loses access to the server.
> We recently purchased a dedicated server to run the db on at the
> office. It's a 2.8 GHz Dual Xeon, 2GB RAM, running XPPro. We also
> bought SQL Server, but I installed the Personal Edition becuase we are
> not using a server OS. It's my understanding that XP can utilize both
> processors, and the Personal Edition can use both processors as well.

Here's the issue - XP Pro can only use 2CPU's, so it's going to use the
first CPU on each Chip and the second (the HT part) virtual CPU will not
be used - at least if I understand it correctly.

While XP makes good use of HT, it does not make as good a use of it as
does Server 2003 Standard does. In fact, XP is not optimised for a
server running Dual Xeons.

In many cases, having HT enabled on a motherboard, but not having full
support in the OS for it (as is W2000), you will see a decrease in
performance.

Disable HT in your BIOS until you can get Server 2000 Standard. OEM cost
for server 2003 standard with 5CAL should be under $500.

> (On a side note, why is Enterprise Manager showing that I have 4
> processors - why?) In addition, I understand PE has a work-load
> governor that cripples performance when more than 5 TSQL commands are
> being run simultaneously.

HT based CPU's always show up as 2 CPU's under Windows 2000 and above -
this is the nature of Xeon and HT type CPU's on Windows. In some cases,
when the OS and App are HT aware, you can see a boost in performance of
as much as 30%, but most people never see it in real life.

I have a 4CPU Xeon and never see any difference in 2000 Server (SP5) and
SQL 2000 between HT enabled or disabled on our 200GB databases with
hundreds of users.

> I backed up the db on my laptop and restored it on our new server. But
> when I run the exact same queries with the exact same number of rows,
> my queries on the new server are take 3x longer(!?). Can someone
> please offer a few suggestions for why this is happening? What can I
> do to improve performance on the server machine?
> Please let me know if I need to supply more information.

There are several things - drop XP Prof, get MSDE 2000 Version, or
better yet, get SQL 2000 Standard and Windows 2003 server standard.

Also, you need to setup your drives properly:

Drive 0 + 1: Mirror (C: 12GB, D:40+GB)
Drive 2,3,4,5,6: RAID-5 (E: big GB)
Drive 7: Single drive - (F: Size as DB backup * 5+)

With the OS on Drive C and the SQL transaction logs on D and the
database data files on E and then online backups nightly to E with tape
backing up E.

You also need to leave 128MB for the OS and as much other RAM for the
SQL Server. Also set your swap file to something like a fixed size of
1GB, set SQL memory to a fixed size of MIN/MAX = TOTAL RAM - 128MB

--
--
spamfree999@.rrohio.com
(Remove 999 to reply to me)|||louis (louisducnguyen@.gmail.com) writes:
> You really should install a Server OS not XPPro. If you're stuck with
> XPPro, you should install Developer Edition not PE, which is meant for
> laptops.

Wait! That depends on what Alex is using the database for. If he is
developing an application, it's alright. But if he is using an application,
no, that's a license breach. Developer Edition is *not* for running
applications.

--
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp|||In article <Xns95EC3BF8DED7Yazorman@.127.0.0.1>, esquel@.sommarskog.se
says...
> louis (louisducnguyen@.gmail.com) writes:
> > You really should install a Server OS not XPPro. If you're stuck with
> > XPPro, you should install Developer Edition not PE, which is meant for
> > laptops.
> Wait! That depends on what Alex is using the database for. If he is
> developing an application, it's alright. But if he is using an application,
> no, that's a license breach. Developer Edition is *not* for running
> applications.

Actually, you might want to check - depending on what you used to design
the application/database with you can redistribute MSDE with your
product.

--
--
spamfree999@.rrohio.com
(Remove 999 to reply to me)|||Leythos (void@.nowhere.lan) writes:
> In article <Xns95EC3BF8DED7Yazorman@.127.0.0.1>, esquel@.sommarskog.se
> says...
>> louis (louisducnguyen@.gmail.com) writes:
>> > You really should install a Server OS not XPPro. If you're stuck with
>> > XPPro, you should install Developer Edition not PE, which is meant for
>> > laptops.
>>
>> Wait! That depends on what Alex is using the database for. If he is
>> developing an application, it's alright. But if he is using an
>> application, no, that's a license breach. Developer Edition is *not*
>> for running applications.
> Actually, you might want to check - depending on what you used to design
> the application/database with you can redistribute MSDE with your
> product.

MSDE is another thing. The issue at hand is Developer Edition which costs
50 USD and is exactly the same as Enterprise Edition - except for the
restriction in license.

--
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp|||In article <Xns95EC62C1AC31AYazorman@.127.0.0.1>, esquel@.sommarskog.se
says...
> Leythos (void@.nowhere.lan) writes:
> > In article <Xns95EC3BF8DED7Yazorman@.127.0.0.1>, esquel@.sommarskog.se
> > says...
> >> louis (louisducnguyen@.gmail.com) writes:
> >> > You really should install a Server OS not XPPro. If you're stuck with
> >> > XPPro, you should install Developer Edition not PE, which is meant for
> >> > laptops.
> >>
> >> Wait! That depends on what Alex is using the database for. If he is
> >> developing an application, it's alright. But if he is using an
> >> application, no, that's a license breach. Developer Edition is *not*
> >> for running applications.
> > Actually, you might want to check - depending on what you used to design
> > the application/database with you can redistribute MSDE with your
> > product.
> MSDE is another thing. The issue at hand is Developer Edition which costs
> 50 USD and is exactly the same as Enterprise Edition - except for the
> restriction in license.

Sorry, I thought that MSDE was mentioned by the OP in another part of
the thread.

--
--
spamfree999@.rrohio.com
(Remove 999 to reply to me)|||Everyone, thanks for the information.

I installed Developer, and lo and behold, it solved my performance
issues (thanks for your persistance Louis). I'm now querying faster on
the server than I was on my laptop. I'm thinking either the workload
governor for PE was kicking in, or PE was having trouble w/ the
processors like Leythos suggested.

This is a very small tool that I'm developing as we go; only two of us
are using it, and we do not have a huge budget. We are not deploying
it or selling it; we are using it for inhouse analysis. In an effort
to save money, we opted for good processors and 2GB RAM, but we have
only 2 SATA 160 GB harddrives and no RAID. It was my error that we
bought the Standard edition expecting to use it with XP Pro (which my
company owns a ton of licenses already). See, if we had bought the
Server OS, I would have had to pare down my hardware configuration.

I will work on getting W2K3 Server. Until then, would anyone like to
comment on how I have my drives set up?

Disk 1: C, OS and Apps; D, MSSQL Backups; E, Sharedrive for our team
Disk 2: Z, 6GB Virtual Mem; F, MSSQL DB; G, OS & Apps, Sharedrive
backups

In addition, we will also be conducting db backups on a network drive
once a week.
Is this a good configuration given that I only have two drives?|||In article <1106928400.227674.185100@.c13g2000cwb.googlegroups. com>,
alex4groups@.gmail.com says...
> Everyone, thanks for the information.
> I installed Developer, and lo and behold, it solved my performance
> issues (thanks for your persistance Louis). I'm now querying faster on
> the server than I was on my laptop. I'm thinking either the workload
> governor for PE was kicking in, or PE was having trouble w/ the
> processors like Leythos suggested.

Glad to hear that it's working now.

[snip]

> I will work on getting W2K3 Server. Until then, would anyone like to
> comment on how I have my drives set up?
> Disk 1: C, OS and Apps; D, MSSQL Backups; E, Sharedrive for our team
> Disk 2: Z, 6GB Virtual Mem; F, MSSQL DB; G, OS & Apps, Sharedrive
> backups
> In addition, we will also be conducting db backups on a network drive
> once a week.
> Is this a good configuration given that I only have two drives?

Not knowing what you have to a motherboard, I would strongly suggest
that you consider at least a RAID controller card and set that up with
the drives in a Mirror. The PromiseTX card, or if the motherboard
supports RAID, either will work fine.

It appears that you use SQL and your apps and a common sharing point for
everyone, a MIRROR would provide redundancy that would help in the case
of a fault.

You should also consider nightly backups - even a tape backup to a cheap
Travan drive would help in the event of a fault.

My guess would be that if you are using 2xSATA on a Dual Xeon, that the
board supports RAID with an onboard controller.

--
--
spamfree999@.rrohio.com
(Remove 999 to reply to me)|||Leythos,

I forgot to mention that I am doing full backups once a week,
differential backups daily, and transaction logs hourly (overkill, I
know). The backups are made to the first disk, while the database
resides on the second disk. We are also doing a network backup once a
week.

So given that we are already doing all these backups, and given that
this is not a highly time critical application, I'm not too worried
about implementing a fault tolerant RAID configuration. We'd rather
have the extra disk space for now.
I did ask for your advice, though, and I thank you for it.

Alex|||(alex4groups@.gmail.com) writes:
> I installed Developer, and lo and behold, it solved my performance
> issues (thanks for your persistance Louis). I'm now querying faster on
> the server than I was on my laptop. I'm thinking either the workload
> governor for PE was kicking in, or PE was having trouble w/ the
> processors like Leythos suggested.
> This is a very small tool that I'm developing as we go; only two of us
> are using it, and we do not have a huge budget. We are not deploying
> it or selling it; we are using it for inhouse analysis.

Since I brought up licensing, I guess I should comment. Although I have
to say that I have no idea what applies in this case. It you were
developing it, and then would sell it to people, who would run it on
anything but Developer, it would be OK. But when development and
usage is on the same machine it's more difficult. My gut feeling says
that if you use the information from the analisys for business decisions
you are violating the license terms.

But if you really want to find out to avoid being caught red-handed, I
can only recommend you to contact your local Microsoft representative.

--
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp|||In article <1106952467.779676.29880@.f14g2000cwb.googlegroups.c om>,
alex4groups@.gmail.com says...
> Leythos,
> I forgot to mention that I am doing full backups once a week,
> differential backups daily, and transaction logs hourly (overkill, I
> know). The backups are made to the first disk, while the database
> resides on the second disk. We are also doing a network backup once a
> week.
> So given that we are already doing all these backups, and given that
> this is not a highly time critical application, I'm not too worried
> about implementing a fault tolerant RAID configuration. We'd rather
> have the extra disk space for now.
> I did ask for your advice, though, and I thank you for it.

Alex, we're cool - I would have opted for the Dual 250GB SATA drives and
then mirrored them.

What motherboard are you using in the server? ASUS PC-DL Deluxe?

--
--
spamfree999@.rrohio.com
(Remove 999 to reply to me)|||Cool. Not sure what make/model the motherboard is - the machine is a
Dell SC1420, and the motherboard is RAID capable; there are RAID
options in the bios and it came w/ raid management software.

Erland, thanks for the licensing tips; I'm looking into getting the
server OS and running Standard Ed.

poor performance

Hello all,

I recently pick up a SQL-Server Client-Server application system and I saw very poor performance.

for example, if I was doing some join from 3 or 4 tables, our data entry staff can not do anything, the front end VB application would just hang. There are 10 users at maximum logging on the system concurrently.

I am not sql server dba but like to improve it, where should I begin to check? detailed steps are appreciated.

Thanks,

Jane

what version of sql server are you using?

If the VB application hangs, how do you know it's SQL Server that's the problem?

|||

Profiler is the first step.
Identify the long running queries and check out their query plan.

poor performance

Hello all,

I recently pick up a SQL-Server Client-Server application system and I saw very poor performance.

for example, if I was doing some join from 3 or 4 tables, our data entry staff can not do anything, the front end VB application would just hang. There are 10 users at maximum logging on the system concurrently.

I am not sql server dba but like to improve it, where should I begin to check? detailed steps are appreciated.

Thanks,

Jane

what version of sql server are you using?

If the VB application hangs, how do you know it's SQL Server that's the problem?

|||

Profiler is the first step.
Identify the long running queries and check out their query plan.

sql

Monday, March 26, 2012

Pooling Connection Object

Hello:

How does one pool a connection object? I have the same application running
on 4 different machines, all connecting to the same server/SQL Server 2000
instance for DB activity.

Some posts have mentioned pooling the connection objects to reduce overhead,
but how do I do that for the 4 separate computers.

Appreciate any response.

Regards,

Ryan Kennedy
Ryan P. Kennedy wrote:

> Hello:
> How does one pool a connection object? I have the same application running
> on 4 different machines, all connecting to the same server/SQL Server 2000
> instance for DB activity.
> Some posts have mentioned pooling the connection objects to reduce overhead,
> but how do I do that for the 4 separate computers.
> Appreciate any response.

You would want to connect your four applications to a single middle tier
process, which remained running, and which maintained one or more open
connections to the DBMS. The middle tier process would act as a proxy for
your client applications, receiving requests, and sending them to the
DBMS via a perpetually-kept connection, and then relaying the returns from
the DBMS to the clients.
A pooled connection can only live as long as the client that made it.
There are two main savings from pooled connections: They save the typically
longer time it takes to make a new connection, and they can be used to
limit the number of simultaneously open DBMS connections, in cases where
licensing or performance dictate that you cannot make a separate connection
for each client.
Joe Weinstein at BEA
> Regards,
>
> Ryan Kennedy

Polish characters problem.

Hi,
First off all I am not SQL expert so pls forgive me if something will be
unclear.
I have old SQL 7.0 with Code page CP1252 and database application on it with
polish characters.
I migrated to SQL 2000 with Server collation Latin1_General_CI_AS (also on
database) and my application do not see polish characters.
Any idea?
Artur
Hi
If you had code page 1250 then I would expect a Polish collation to be used.
Extended data would be lost if you switched from 1250 to 1252. Therefore you
may want to try a Polish collation for the destination database.
How did you convert the database?
John
"arti" <artipp@.op.pl> wrote in message news:cll8au$odf$1@.news.onet.pl...
> Hi,
> First off all I am not SQL expert so pls forgive me if something will be
> unclear.
>
> I have old SQL 7.0 with Code page CP1252 and database application on it
with
> polish characters.
> I migrated to SQL 2000 with Server collation Latin1_General_CI_AS (also on
> database) and my application do not see polish characters.
> Any idea?
>
> Artur
>

Polish characters problem.

Hi,
First off all I am not SQL expert so pls forgive me if something will be
unclear.
I have old SQL 7.0 with Code page CP1252 and database application on it with
polish characters.
I migrated to SQL 2000 with Server collation Latin1_General_CI_AS (also on
database) and my application do not see polish characters.
Any idea?
ArturHi
If you had code page 1250 then I would expect a Polish collation to be used.
Extended data would be lost if you switched from 1250 to 1252. Therefore you
may want to try a Polish collation for the destination database.
How did you convert the database?
John
"arti" <artipp@.op.pl> wrote in message news:cll8au$odf$1@.news.onet.pl...
> Hi,
> First off all I am not SQL expert so pls forgive me if something will be
> unclear.
>
> I have old SQL 7.0 with Code page CP1252 and database application on it
with
> polish characters.
> I migrated to SQL 2000 with Server collation Latin1_General_CI_AS (also on
> database) and my application do not see polish characters.
> Any idea?
>
> Artur
>sql

Friday, March 23, 2012

Point-in-time backup of database & filesystem

We're considering purchasing an application,
which stores some data in the filesystem, and
some data (meta data and links to files) in
MS-SQL.

We need to be able to create a backup wherein
the database and files are "in synch" (in other words,
in a consistent state). We need to maintain the
"referential integrity" between database and files.

What I'm thinking of is something like this:
1. stop the application server
2. set database to readonly (flush updates
from cache to disk)
3. backup database to disk files
4. back up application files and backup files.
(We could use "snapshot" capabilities of our disk
hardware, so that the backup could run against the
snapshot; that would minimize downtime.)
4. set database to read_write; restart app server

Recovery scenario would be:
1. Stop application server.
2. restore application files and database backup files
3. restore database from disk backup
4. restart application server

Is there a simpler way to get a "point in time" backup
of application files and the database?"L. Bertolini" <bertolini.1@.osu.edu> wrote in message news:<c25aq0$59b$1@.charm.magnus.acs.ohio-state.edu>...
> We're considering purchasing an application,
> which stores some data in the filesystem, and
> some data (meta data and links to files) in
> MS-SQL.
> We need to be able to create a backup wherein
> the database and files are "in synch" (in other words,
> in a consistent state). We need to maintain the
> "referential integrity" between database and files.
> What I'm thinking of is something like this:
> 1. stop the application server
> 2. set database to readonly (flush updates
> from cache to disk)
> 3. backup database to disk files
> 4. back up application files and backup files.
> (We could use "snapshot" capabilities of our disk
> hardware, so that the backup could run against the
> snapshot; that would minimize downtime.)
> 4. set database to read_write; restart app server
> Recovery scenario would be:
> 1. Stop application server.
> 2. restore application files and database backup files
> 3. restore database from disk backup
> 4. restart application server
> Is there a simpler way to get a "point in time" backup
> of application files and the database?

The first place to ask would be the vendor - find out what their
recommended backup strategy is, and how they say you should recover in
case of failure. If they can't give you a good answer, then you should
make that fact part of your decision.

The snapshot backup might be a good option if you already have the
hardware to support it - you probably wouldn't need to stop the server
at all in that case.

Simonsql

Pointing my new .ADP file to my new SQL Server DB

I hope this question belongs in this forum.

I have a .ADP application (access 2000 front end, SQL Server 2000 back end)
I basically want to create a new .ADP file and point it to a different SQL Server 2000 Database.

I've copied the current SQL Server DB and recreated it. Same for the .ADP file, but it is currently pointing to the old Db, where do I go to have it point to the new SQL Server DB?

Thanksi figured this out thanks.|||You know, you don't need to create a copy of the ADP file. You can easily change the datasource as long as the schemas in both databases are the same.

Wednesday, March 21, 2012

Pocket PC is not connection to MSDE database

I want to connect a MSDE database exists in the desktop from Pocket pc 2003 application developed using vb.net. It is giving sql server not found error. It is working in the pocket pc simulater. But it is not working in the pocket pc device. Connection is also working sql server 2000 database. Please help me.Want to show us the connection string?

Might help...|||cs = "data source=mypc\test;initial catalog=test;user id=sa;persist security info=False;workstation id=mypc\test;packet size=4096"|||It's not listed here (and you should post the actual one) but are you supplying a password?|||Originally posted by Brett Kaiser
It's not listed here (and you should post the actual one) but are you supplying a password?

Not supplying the password
I am not supplying the password. I have used the following entries in the setup.ini file while installing the MSDE
[Options]
INSTANCENAME=TEST
SECURITYMODE=SQL
BLANKSAPWD=1

I think i no need a password here. I have also tried with password it is giving same problem. here the code...
Dim cnfordesktop As New System.Data.SqlClient.SqlConnection

'-----------------------
' Open the desktop connection
'-----------------------
Public Function OpenConnectionForDeskTop() As Boolean
Dim cnstr As String = ConnectionStringForDeskTop()
Try
cnfordesktop = New system.Data.SqlClient.SqlConnection(cnstr)
cnfordesktop.Open()
Catch e As SqlClient.SqlException
MessageBox.Show("Error Number: " & e.Number & ", Error Message: " & e.Message & ", Command: " & cnstr, "Database ", MessageBoxButtons.OK, MessageBoxIcon.Hand, MessageBoxDefaultButton.Button1)
Return False
End Try
Return True
End Function
'-----------------------
'close the connection
'-----------------------
Public Sub CloseConnectionForDesktopVM()
Try
cnfordesktop.Close()
Catch ex As Exception

End Try
End Sub
'-----------------------
'Set the connection string property
'-----------------------
Public Function ConnectionStringForDeskTop() As String
Dim cs As String = ""
cs = "data source=mypc\test;initial catalog=test;user id=sa;password=;persist security info=False;"
Return cs
End Function

Pocket PC database connection

Hi,

I am developing an application for a Pocket PC (PPC). I am using Visual studio 2005, and the Operating system on this PPC is Window Mobile 2003 SE. The followings are my codes to connect PPC with the database on my PC with sql server 2005. But when I cick the button1, the error with "SQL Server does not exist or access denied." Any ideas? Thanks a lot.

Imports System.IO

Imports System.Data

Imports System.Data.SqlClient

Imports System.Math

Imports System.Drawing

Imports System

Public Class Form1

Dim strConnection As String = "Server=localhost;Integrated Security=SSPI;database=AdventureWorks"

Dim strQuery As String

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Label1.Text = "Hello, Clicking after."

ReadOrderData()

End Sub

Private Sub ReadOrderData()

Dim queryString As String = "select * from Person.Address where AddressID < '10'"

Using connection As New SqlConnection(strConnection)

Dim command As New SqlCommand(queryString, connection)

connection.Open()

Dim reader As SqlDataReader = command.ExecuteReader()

While reader.Read()

MsgBox(String.Format("{0}, {1}", _

reader(0), reader(1)))

End While

reader.Close()

End Using

End Sub

End Class

Please see this:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=184007&SiteID=1

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=235638&SiteID=1

If it still does not work after you fixed your 'localhost' issue:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=270532&SiteID=1

Also, we have forum dedicated to SQL Mobile. Please post to it should you have any SQL or SQL Mobile related questions:

http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=152&SiteID=1

|||

Thanks for your reply.

I would like to install vxUtil, and I have already read the readme.txt file. But I still have some questions about that. Should vxUtil be installed on my personal PC or the Pocket PC(PPC)? If it should be installed in the PPC, how can I install? In the readme.txt, I get the following information:


Open the appropriate folder on the hard drive then double-click
on the InstallCE icon to start the install process for the correct device.

From this information, I feel that vxUtil should be installed in my personal PC. Is it correct?

Could you please answer me about that?

Thanks a lot.

|||

vxUtil should be ultimately installed on device. However, like pretty much all Pocket PC products, it goes through desktop and Active Sync. You install/unzip application on to desktop, then you (or desktop installer) execute something which would push it to device via AS. As a developer you would have to do the same for your application eventually. In some cases there's no desktop installer, just a device CAB file. In that case simply copy CAB to device and click on it from device's file explorer.

|||

Dear Ilya Tumanov,

Your answer is so great. I have already installed it into the PPC, and it scanned the ports in my desktop PC. From the result, the ports 25, 80, 135, 139, 443, 445, 990 and1025 are all open. But the program that I posted yesterday and listed above can not still work. What do I need in the next step?

Moreover, I have changed the connection string to

Dim strConnection As String = "Server=Server1;Integrated Security=SSPI;database=AdventureWorks"

Thanks a lot.

|||

Hi,

I am developing an application for a Pocket PC (PPC). I am using Visual studio 2005, and the Operating system on this PPC is Window Mobile 2003 SE. The followings are my codes to connect PPC with the database on my PC with sql server 2005. But when I cick the button1, the error with "SQL Server does not exist or access denied."

I have already installed vxUtil into the PPC, and Ping is OK. I use it to scan the ports in my desktop PC. From the result, the ports 25, 80, 135, 139, 443, 445, 990 and1025 are all open. But the program can not still work.

Any ideas? Thanks a lot.

Imports System.IO

Imports System.Data

Imports System.Data.SqlClient

Imports System.Math

Imports System.Drawing

Imports System

Public Class Form1

Dim strConnection As String = "Server=server1;Integrated Security=SSPI;database=AdventureWorks"

Dim strQuery As String

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Label1.Text = "Hello, Clicking after."

ReadOrderData()

End Sub

Private Sub ReadOrderData()

Dim queryString As String = "select * from Person.Address where AddressID < '10'"

Using connection As New SqlConnection(strConnection)

Dim command As New SqlCommand(queryString, connection)

connection.Open()

Dim reader As SqlDataReader = command.ExecuteReader()

While reader.Read()

MsgBox(String.Format("{0}, {1}", _

reader(0), reader(1)))

End While

reader.Close()

End Using

End Sub

End Class


|||

Default SQL Server port is 1433 which is not opened so it's not going to work until your SQL Server is properly configured. Also you have to provide credential in connection string, this string is not going to work.

I'm moving this thread to appropriate forum.

|||

Hi,

Thanks for your answer, and right now 1433 port is open. I would like to use windows authentication protocol. Could you please provide a sample for the connection string? Thanks a lot.

|||

Hi,

Thanks for your answer, and right now 1433 port is open. I would like to use windows authentication protocol. Could you please provide a sample for the connection string? Thanks a lot.

|||

This should work:

"Server=YourServerHere,1433;Initial Catalog=YourDataBaseHere;User ID=YourLoginHere;Password=YourPasswordHere;Integrated Security=SSPI;"

Note you have to provide login and password even though windows authentication will be used. That's because there's no login procedure on devices.

|||

Dear Ilya Tumanov,

Thanks a lot for your so many helps, and it works.

|||

so..It must have a password?is it same with windows user's password?what if blank?

if I'm not wrong, if we set the windows password, we should change the SQL password too right?

|||

you should check this link http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=709129&SiteID=1&mode=1

It works for me after a loooooonggg time testing

Pocket PC database connection

Hi,

I am developing an application for a Pocket PC (PPC). I am using Visual studio 2005, and the Operating system on this PPC is Window Mobile 2003 SE. The followings are my codes to connect PPC with the database on my PC with sql server 2005. But when I cick the button1, the error with "SQL Server does not exist or access denied." Any ideas? Thanks a lot.

Imports System.IO

Imports System.Data

Imports System.Data.SqlClient

Imports System.Math

Imports System.Drawing

Imports System

Public Class Form1

Dim strConnection As String = "Server=localhost;Integrated Security=SSPI;database=AdventureWorks"

Dim strQuery As String

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Label1.Text = "Hello, Clicking after."

ReadOrderData()

End Sub

Private Sub ReadOrderData()

Dim queryString As String = "select * from Person.Address where AddressID < '10'"

Using connection As New SqlConnection(strConnection)

Dim command As New SqlCommand(queryString, connection)

connection.Open()

Dim reader As SqlDataReader = command.ExecuteReader()

While reader.Read()

MsgBox(String.Format("{0}, {1}", _

reader(0), reader(1)))

End While

reader.Close()

End Using

End Sub

End Class

Please see this:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=184007&SiteID=1

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=235638&SiteID=1

If it still does not work after you fixed your 'localhost' issue:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=270532&SiteID=1

Also, we have forum dedicated to SQL Mobile. Please post to it should you have any SQL or SQL Mobile related questions:

http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=152&SiteID=1

|||

Thanks for your reply.

I would like to install vxUtil, and I have already read the readme.txt file. But I still have some questions about that. Should vxUtil be installed on my personal PC or the Pocket PC(PPC)? If it should be installed in the PPC, how can I install? In the readme.txt, I get the following information:


Open the appropriate folder on the hard drive then double-click
on the InstallCE icon to start the install process for the correct device.

From this information, I feel that vxUtil should be installed in my personal PC. Is it correct?

Could you please answer me about that?

Thanks a lot.

|||

vxUtil should be ultimately installed on device. However, like pretty much all Pocket PC products, it goes through desktop and Active Sync. You install/unzip application on to desktop, then you (or desktop installer) execute something which would push it to device via AS. As a developer you would have to do the same for your application eventually. In some cases there's no desktop installer, just a device CAB file. In that case simply copy CAB to device and click on it from device's file explorer.

|||

Dear Ilya Tumanov,

Your answer is so great. I have already installed it into the PPC, and it scanned the ports in my desktop PC. From the result, the ports 25, 80, 135, 139, 443, 445, 990 and1025 are all open. But the program that I posted yesterday and listed above can not still work. What do I need in the next step?

Moreover, I have changed the connection string to

Dim strConnection As String = "Server=Server1;Integrated Security=SSPI;database=AdventureWorks"

Thanks a lot.

|||

Hi,

I am developing an application for a Pocket PC (PPC). I am using Visual studio 2005, and the Operating system on this PPC is Window Mobile 2003 SE. The followings are my codes to connect PPC with the database on my PC with sql server 2005. But when I cick the button1, the error with "SQL Server does not exist or access denied."

I have already installed vxUtil into the PPC, and Ping is OK. I use it to scan the ports in my desktop PC. From the result, the ports 25, 80, 135, 139, 443, 445, 990 and1025 are all open. But the program can not still work.

Any ideas? Thanks a lot.

Imports System.IO

Imports System.Data

Imports System.Data.SqlClient

Imports System.Math

Imports System.Drawing

Imports System

Public Class Form1

Dim strConnection As String = "Server=server1;Integrated Security=SSPI;database=AdventureWorks"

Dim strQuery As String

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Label1.Text = "Hello, Clicking after."

ReadOrderData()

End Sub

Private Sub ReadOrderData()

Dim queryString As String = "select * from Person.Address where AddressID < '10'"

Using connection As New SqlConnection(strConnection)

Dim command As New SqlCommand(queryString, connection)

connection.Open()

Dim reader As SqlDataReader = command.ExecuteReader()

While reader.Read()

MsgBox(String.Format("{0}, {1}", _

reader(0), reader(1)))

End While

reader.Close()

End Using

End Sub

End Class


|||

Default SQL Server port is 1433 which is not opened so it's not going to work until your SQL Server is properly configured. Also you have to provide credential in connection string, this string is not going to work.

I'm moving this thread to appropriate forum.

|||

Hi,

Thanks for your answer, and right now 1433 port is open. I would like to use windows authentication protocol. Could you please provide a sample for the connection string? Thanks a lot.

|||

Hi,

Thanks for your answer, and right now 1433 port is open. I would like to use windows authentication protocol. Could you please provide a sample for the connection string? Thanks a lot.

|||

This should work:

"Server=YourServerHere,1433;Initial Catalog=YourDataBaseHere;User ID=YourLoginHere;Password=YourPasswordHere;Integrated Security=SSPI;"

Note you have to provide login and password even though windows authentication will be used. That's because there's no login procedure on devices.

|||

Dear Ilya Tumanov,

Thanks a lot for your so many helps, and it works.

|||

so..It must have a password?is it same with windows user's password?what if blank?

if I'm not wrong, if we set the windows password, we should change the SQL password too right?

|||

you should check this link http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=709129&SiteID=1&mode=1

It works for me after a loooooonggg time testing

Pocket PC database connection

Hi,

I am developing an application for a Pocket PC (PPC). I am using Visual studio 2005, and the Operating system on this PPC is Window Mobile 2003 SE. The followings are my codes to connect PPC with the database on my PC with sql server 2005. But when I cick the button1, the error with "SQL Server does not exist or access denied." Any ideas? Thanks a lot.

Imports System.IO

Imports System.Data

Imports System.Data.SqlClient

Imports System.Math

Imports System.Drawing

Imports System

Public Class Form1

Dim strConnection As String = "Server=localhost;Integrated Security=SSPI;database=AdventureWorks"

Dim strQuery As String

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Label1.Text = "Hello, Clicking after."

ReadOrderData()

End Sub

Private Sub ReadOrderData()

Dim queryString As String = "select * from Person.Address where AddressID < '10'"

Using connection As New SqlConnection(strConnection)

Dim command As New SqlCommand(queryString, connection)

connection.Open()

Dim reader As SqlDataReader = command.ExecuteReader()

While reader.Read()

MsgBox(String.Format("{0}, {1}", _

reader(0), reader(1)))

End While

reader.Close()

End Using

End Sub

End Class

Please see this:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=184007&SiteID=1

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=235638&SiteID=1

If it still does not work after you fixed your 'localhost' issue:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=270532&SiteID=1

Also, we have forum dedicated to SQL Mobile. Please post to it should you have any SQL or SQL Mobile related questions:

http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=152&SiteID=1

|||

Thanks for your reply.

I would like to install vxUtil, and I have already read the readme.txt file. But I still have some questions about that. Should vxUtil be installed on my personal PC or the Pocket PC(PPC)? If it should be installed in the PPC, how can I install? In the readme.txt, I get the following information:


Open the appropriate folder on the hard drive then double-click
on the InstallCE icon to start the install process for the correct device.

From this information, I feel that vxUtil should be installed in my personal PC. Is it correct?

Could you please answer me about that?

Thanks a lot.

|||

vxUtil should be ultimately installed on device. However, like pretty much all Pocket PC products, it goes through desktop and Active Sync. You install/unzip application on to desktop, then you (or desktop installer) execute something which would push it to device via AS. As a developer you would have to do the same for your application eventually. In some cases there's no desktop installer, just a device CAB file. In that case simply copy CAB to device and click on it from device's file explorer.

|||

Dear Ilya Tumanov,

Your answer is so great. I have already installed it into the PPC, and it scanned the ports in my desktop PC. From the result, the ports 25, 80, 135, 139, 443, 445, 990 and1025 are all open. But the program that I posted yesterday and listed above can not still work. What do I need in the next step?

Moreover, I have changed the connection string to

Dim strConnection As String = "Server=Server1;Integrated Security=SSPI;database=AdventureWorks"

Thanks a lot.

|||

Hi,

I am developing an application for a Pocket PC (PPC). I am using Visual studio 2005, and the Operating system on this PPC is Window Mobile 2003 SE. The followings are my codes to connect PPC with the database on my PC with sql server 2005. But when I cick the button1, the error with "SQL Server does not exist or access denied."

I have already installed vxUtil into the PPC, and Ping is OK. I use it to scan the ports in my desktop PC. From the result, the ports 25, 80, 135, 139, 443, 445, 990 and1025 are all open. But the program can not still work.

Any ideas? Thanks a lot.

Imports System.IO

Imports System.Data

Imports System.Data.SqlClient

Imports System.Math

Imports System.Drawing

Imports System

Public Class Form1

Dim strConnection As String = "Server=server1;Integrated Security=SSPI;database=AdventureWorks"

Dim strQuery As String

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Label1.Text = "Hello, Clicking after."

ReadOrderData()

End Sub

Private Sub ReadOrderData()

Dim queryString As String = "select * from Person.Address where AddressID < '10'"

Using connection As New SqlConnection(strConnection)

Dim command As New SqlCommand(queryString, connection)

connection.Open()

Dim reader As SqlDataReader = command.ExecuteReader()

While reader.Read()

MsgBox(String.Format("{0}, {1}", _

reader(0), reader(1)))

End While

reader.Close()

End Using

End Sub

End Class


|||

Default SQL Server port is 1433 which is not opened so it's not going to work until your SQL Server is properly configured. Also you have to provide credential in connection string, this string is not going to work.

I'm moving this thread to appropriate forum.

|||

Hi,

Thanks for your answer, and right now 1433 port is open. I would like to use windows authentication protocol. Could you please provide a sample for the connection string? Thanks a lot.

|||

Hi,

Thanks for your answer, and right now 1433 port is open. I would like to use windows authentication protocol. Could you please provide a sample for the connection string? Thanks a lot.

|||

This should work:

"Server=YourServerHere,1433;Initial Catalog=YourDataBaseHere;User ID=YourLoginHere;Password=YourPasswordHere;Integrated Security=SSPI;"

Note you have to provide login and password even though windows authentication will be used. That's because there's no login procedure on devices.

|||

Dear Ilya Tumanov,

Thanks a lot for your so many helps, and it works.

|||

so..It must have a password?is it same with windows user's password?what if blank?

if I'm not wrong, if we set the windows password, we should change the SQL password too right?

|||

you should check this link http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=709129&SiteID=1&mode=1

It works for me after a loooooonggg time testing

sql

PLZZ HELP ! ERROR CONNECTING TO SQL SERVER

Hello everybody

i am getting problem in connecting my asp.net(c#) web application with Sql Server 2000 programatically on the page load of my web form

I wrote following code in the page load

private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page
SqlConnection myConnection = new SqlConnection("server=(local);database=master;Integrated Security=SSPI");
SqlDataAdapter myCommand = new SqlDataAdapter("select * from emp", myConnection);

DataSet ds = new DataSet();
myCommand.Fill(ds, "emp");

DataGrid1.DataSource=ds.Tables["emp"].DefaultView;
DataGrid1.DataBind();
}

Build OK but following exception occurred:

Server Error in '/datagridtest' Application.
------------------------

Login failed for user 'MATRIX\ASPNET'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'MATRIX\ASPNET'.

Source Error:

Line 27:
Line 28: DataSet ds = new DataSet();
Line 29: myCommand.Fill(ds, "emp"); //THIS APPEARS IN RED ON THE PAGE
Line 30:
Line 31: DataGrid1.DataSource=ds.Tables["emp"].DefaultView;

----------------------------
PLZ HELP ME, I THINK THE PROBLEM IS WITH CONNECTIONSTRING, I STUCK UP HERE FROM LAST 3 DAYS AND COULD NOT PROCEED WITH MY FURTHER STUDY AND PRACTICE

THANX IN ADVANCE

BSSGlad you got this worked out!view post 806235

Friday, March 9, 2012

Please! Help me.

When I open SQL Server 2000( Enterprise Manager). I face on the problem:
"Microsoft Management Console:mmc.exe - Application Error".
I don't instal SQL Server 2000 again. How can I do it?
Please, help me! Thank!Hi
Re-apply SQL Server 2000 SP3a onto the machine. If that does not solve it,
apply the latest Windows SP on you machine. mmc is a windows application and
SQL server just uses it for EM.
Regards
Mike
"hvan2203" wrote:

> When I open SQL Server 2000( Enterprise Manager). I face on the problem:
> "Microsoft Management Console:mmc.exe - Application Error".
> I don't instal SQL Server 2000 again. How can I do it?
> Please, help me! Thank!
>|||Thank you!
You send for me "SQL Server 2000 SP3a". I need it, I try it
"Mike Epprecht (SQL MVP)" wrote:
> Hi
> Re-apply SQL Server 2000 SP3a onto the machine. If that does not solve it,
> apply the latest Windows SP on you machine. mmc is a windows application a
nd
> SQL server just uses it for EM.
> Regards
> Mike
> "hvan2203" wrote:
>|||Download it here:
http://www.microsoft.com/sql/downloads/2000/sp3.asp
David Portas
SQL Server MVP
--

please verify syntax

I haven't written any .net database updates before. I wrote the following code for a visual web developer application and it appears to work. There is no close function or anything. Will the adapter, builder, dataset, and row objects be cleaned up and disposed of properly? Please tell me if I need to include anything else. The connection object is made elsewhere. Thanks

Dim adapterAsNew Data.SqlClient.SqlDataAdapter("SELECT * FROM Inventory WHERE InUnique=" & ListValue.Value, connect)

Dim builderAsNew Data.SqlClient.SqlCommandBuilder(adapter)

Dim datasetAs Data.DataSet =New Data.DataSet()

adapter.Fill(dataset,"Inventory")

Dim datarowAs Data.DataRow = dataset.Tables(0).Rows(0)

datarow("InAgUnique") = Val(InAgUnique.Text)

datarow("InTyUnique") = Val(InTyUnique.Text)

datarow("InName") = InName.Text

datarow("InPnUniquePrimary") = Val(InPnUniquePrimary.Text)

datarow("InPnUniqueSecondary") = Val(InPnUniqueSecondary.Text)

datarow("InPnUniqueTertiary") = Val(InPnUniqueTertiary.Text)

datarow("InPnUniqueSupervisor") = Val(InPnUniqueSupervisor.Text)

datarow("InDescription") = InDescription.Text

datarow("InProblemInstructions") = InProblemInstructions.Text

adapter.Update(dataset,"Inventory")

If the connection is not open, Adapter would open it and once done with the operation, would close itself (as per .net 1.1), not sure of the chanegs in 2.0 though!

PLEASE TELL ME WHAT TO DO NEXT _ 2000 instead of 2005

Hi all.

My webhost prepared a server for me with sql 2000 instead of sql 2005.
Will my asp.net 2005 application work there?
I generated a script to export my sql server 2005 objects
Lots of failures appeard.

IF NOT EXISTS (SELECT * FROM sys.database_principals WHERE name =
N'aspnet_WebEvent_FullAccess' AND type = 'R')
CREATE ROLE [aspnet_WebEvent_FullAccess]
GO

This is the error:
Server: Msg 170, Level 15, State 1, Line 2
Line 2: Incorrect syntax near 'ROLE'.

The object is part of the asp.net security/login components - I did not create these
objects myself!

Please tell me what to do next........

TIA
Guy

You should not have any problem from 2005 to 2000, however looks like you didn't install the whole database as does not understand ROLE

|||

Dear Al

THanks for the reply

Please explain more... what should I do......?????

When I generated the script I chose "export all objects"

Guy

|||

There is an .sql file, can you install that?

|||

You need to be certain that the scripts are exported for SQL Server 2000.

When you go to "generate scripts" (right click on DB, Tasks->Generate Scripts), after you choose the DB and pick to export all objects, you come across a long list of options. One is called "Script for Server Version". That needs to be set to SQL Server 2000. By default it is set fo SQL Server 2005. If you do not do this syntactic differences will throw many, many errors.

As long as your database doesn't use anything that is 2005 specific, you should be able to run the script.

|||Tony is right, a lot of things have been changed in SQL2005, such as system objects, some T-SQL syntax, etc. For example in the script we can see sys.database_principals, which is a view in SQL2005 but does not exist in SQL2000; and CREATE ROLE is a new command in SQL2005, but invalid in SQL2000, in SQL2000 you need to use sp_addrole.

Please suggest type Of Replication suitable in this scenario !

Hi All:
I have 2 sites, one here in India & one at Montreal working on same
database, hosted here (India), using ASP Application.
The link is dedicated over WAN. Now I want both sites to access their own DB
at their local ends (structure being same) & then replicate/snycronize both
Databases periodically, say every 60 mins or in worst case once every day.
Both sites receive customer inbound calls & people take orders, troubleshoot
product. The DB size is 3 GB & growing, though slowly.
What is best type of replication which i can use here?
Please suggest!
Thanks,
Anukul
anukuls@.yahoo.com
If your schema is static, and your users will never be accessing these
databases at the same time or if you can minimize conflicts using
partitioning you could use bi-directional transactional replication.
Otherwise you should look at merge replication.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
"Anukul" <Anukul@.discussions.microsoft.com> wrote in message
news:10746DEA-A21D-4702-A44B-B46631DC89FC@.microsoft.com...
> Hi All:
> I have 2 sites, one here in India & one at Montreal working on same
> database, hosted here (India), using ASP Application.
> The link is dedicated over WAN. Now I want both sites to access their own
DB
> at their local ends (structure being same) & then replicate/snycronize
both
> Databases periodically, say every 60 mins or in worst case once every day.
> Both sites receive customer inbound calls & people take orders,
troubleshoot
> product. The DB size is 3 GB & growing, though slowly.
> What is best type of replication which i can use here?
> Please suggest!
> Thanks,
> Anukul
> anukuls@.yahoo.com
|||Thanks Hilary!
Yes the Database structure is static, but may change once every 1 month.
Also, users will be accessing the DB simultaneously at both ends, as Inbound
customer calls will be received at both sites, so changes relating to a
customer's address, name, order may get updated. I am over looking the
scenario where same customer calls at same time at both sites, but the same
customer's data may be worked on at both sites at same time. My ASP
application will change as it uses identities right now, but will I will
create site specific ids.
Please suggest.
Thanks,
Anukul
"Hilary Cotter" wrote:

> If your schema is static, and your users will never be accessing these
> databases at the same time or if you can minimize conflicts using
> partitioning you could use bi-directional transactional replication.
> Otherwise you should look at merge replication.
>
> --
> Hilary Cotter
> Looking for a SQL Server replication book?
> http://www.nwsu.com/0974973602.html
> "Anukul" <Anukul@.discussions.microsoft.com> wrote in message
> news:10746DEA-A21D-4702-A44B-B46631DC89FC@.microsoft.com...
> DB
> both
> troubleshoot
>
>
|||merge replication will probably work best for you then.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
"Anukul" <Anukul@.discussions.microsoft.com> wrote in message
news:0A5E7A9E-43E7-43DC-8F45-0926FD654F0C@.microsoft.com...
> Thanks Hilary!
> Yes the Database structure is static, but may change once every 1 month.
> Also, users will be accessing the DB simultaneously at both ends, as
Inbound
> customer calls will be received at both sites, so changes relating to a
> customer's address, name, order may get updated. I am over looking the
> scenario where same customer calls at same time at both sites, but the
same[vbcol=seagreen]
> customer's data may be worked on at both sites at same time. My ASP
> application will change as it uses identities right now, but will I will
> create site specific ids.
> Please suggest.
> Thanks,
> Anukul
> "Hilary Cotter" wrote:
own[vbcol=seagreen]
day.[vbcol=seagreen]
|||Thanks Again!
Is there a Book which you can recommend to setup Merge Replication?
Are there any 3rd party tools for Conflict Resolution available?
Please guide.
Thanks,
Anukul
"Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
news:eqXWnHp8EHA.2876@.TK2MSFTNGP12.phx.gbl...[vbcol=seagreen]
> merge replication will probably work best for you then.
> --
> Hilary Cotter
> Looking for a SQL Server replication book?
> http://www.nwsu.com/0974973602.html
> "Anukul" <Anukul@.discussions.microsoft.com> wrote in message
> news:0A5E7A9E-43E7-43DC-8F45-0926FD654F0C@.microsoft.com...
> Inbound
> same
their[vbcol=seagreen]
> own
replicate/snycronize[vbcol=seagreen]
every
> day.
>
|||Well I am working on a merge book. There are no third party tools I know of.
The default conflict resolvers which ship with SQL Server are pretty good.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
"Anukul" <anukuls@.yahoo.com> wrote in message
news:u961qLp8EHA.3988@.TK2MSFTNGP10.phx.gbl...[vbcol=seagreen]
> Thanks Again!
> Is there a Book which you can recommend to setup Merge Replication?
> Are there any 3rd party tools for Conflict Resolution available?
> Please guide.
> Thanks,
> Anukul
> "Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
> news:eqXWnHp8EHA.2876@.TK2MSFTNGP12.phx.gbl...
month.[vbcol=seagreen]
a[vbcol=seagreen]
will[vbcol=seagreen]
these[vbcol=seagreen]
replication.[vbcol=seagreen]
same
> their
> replicate/snycronize
> every
>
|||Hi Hilary:
Just another query:
As I mentioned , what would be the best way of adding / dropping columns to
an existing Database, which is published for replication (merge
replication)?
Would sp_addrplcolumn & sp_deleterplcolumn work or are there any other ways
to it ? Even datatype changes or size changes.
Thanks,
Anukul
"Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
news:eu7mcWp8EHA.3236@.TK2MSFTNGP15.phx.gbl...
> Well I am working on a merge book. There are no third party tools I know
of.[vbcol=seagreen]
> The default conflict resolvers which ship with SQL Server are pretty good.
> --
> Hilary Cotter
> Looking for a SQL Server replication book?
> http://www.nwsu.com/0974973602.html
> "Anukul" <anukuls@.yahoo.com> wrote in message
> news:u961qLp8EHA.3988@.TK2MSFTNGP10.phx.gbl...
> month.
to[vbcol=seagreen]
> a
the[vbcol=seagreen]
the
> will
> these
> replication.
> same
>
|||sp_repladdcolumn and sp_repldropcolumn are the best ways.
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
"Anukul" <anukuls@.yahoo.com> wrote in message
news:O59cEGA9EHA.3640@.tk2msftngp13.phx.gbl...
> Hi Hilary:
> Just another query:
> As I mentioned , what would be the best way of adding / dropping columns
to
> an existing Database, which is published for replication (merge
> replication)?
> Would sp_addrplcolumn & sp_deleterplcolumn work or are there any other
ways[vbcol=seagreen]
> to it ? Even datatype changes or size changes.
> Thanks,
> Anukul
> "Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
> news:eu7mcWp8EHA.3236@.TK2MSFTNGP15.phx.gbl...
> of.
good.[vbcol=seagreen]
as[vbcol=seagreen]
> to
> the
> the
ASP[vbcol=seagreen]
I[vbcol=seagreen]
using[vbcol=seagreen]
access[vbcol=seagreen]
once[vbcol=seagreen]
orders,
>
|||Also, have a look at an article on
www.replicationanswers.com for methods of changing an
existing datatype, and Kestutis's post from yesterday.
Rgds,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)

Saturday, February 25, 2012

Please help, urgent...Some question for SQL compact edition.

My client has a system and a IBM db to store the data. I try to build sub-system window mobile application for data entery. But my client do not want to install active sync.

So our team figure a way out of this case. We create a web program to get data from IBM db, then create a .sdf file for the PDA. In the PDA, we install a software to make it become USB mass storage. The web program will copy the sdf file to PDA.

I want to know, is this a possible solution? If so, how to creat that web program to get those data and create .sdf file?

Use middleware from IBM to get the data from the IBM DB, and the SqlCeClient objects to create and populate the SDF file. You can do this with asp.net. You must also create a desktop program to download the sdf file from the web server and copy to the USB mass strorage.
What are your requirements for submitting data the other way - it will be difficult without network connectivity from the device ?|||I want to use the middleware to do the same thing which allow to get data and submitting data. Is that possible?...