Showing posts with label analyzer. Show all posts
Showing posts with label analyzer. Show all posts

Monday, March 19, 2012

does not install SQL Query Analyzer

Hi,

I am developing and application in pocket pc windows mobile 2003. I have added a reference to System.Data.SqlServerCe.dll but when i deploy the application query analyzer doesnt seem to install. Any help please?

cheers,

michael

Hi,

Sorry... for info I am using CS VS2005 and SQL Mobile.

Thank you.

michael

|||

Query Analyzer 3.0 should deploy automatically if you are building and deploying a DEBUG build in VS2005 given your reference to System.Data.SqlServerCe.dll version 2.0. You can also just grab the dev tools CAB and install it to your device/emulator to save time. it is located (depending on your device's WinCE kernel) at:

<drive:>\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\SQL Server\Mobile\v3.0\wce400\armv4\sqlce30.dev.ENU.ppc.wce4.armv4.CAB

or

C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\SQL Server\Mobile\v3.0\wce500\<device CPU architecture>\

Darren

Friday, March 9, 2012

Does displaying the estimated execution plan change anything?

Generally I would think that having a query in query analyzer and displaying
the estimated execution plan would not change anything in the system but ran
across an interesting problem today that makes me think otherwise.
On SQL Server 2000 sp3a, I have a table with 300,000 rows in it. The table
is basically a bulk insert from the SQL Error logs with an Identity column
for the primary key and int colums added for flaging error records and such.
A SQL job calls a store procedure that truncates the table and reloads it.
After that it does an update table set errorflag = 1 where logtext like
'%error%'
I found the job in an executing state for several days and investigated.
The wait time was 0, there was no blocking, and the cpu was increasing. I
killed the job and started manually trouble shooting.
The execution or just generating the estimated plan for the update statement
would never return. I cut the update statement down to just update table
set errorflag = 1 and got the same hung state. I could do selects on the
table. Next I displayed an estimated plan for update table set errorflag = 1 where pk < 20000. The returned immediately. After that everything
worked. I could display plans and run updates. So something in the system
changed.
Any ideas what?
DannyWild guess: Perhaps statistics were updated and/or created when you looked at the plan, so the
following query had a better plan?
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Danny" <nomailbox@.nowhere.com> wrote in message news:Lg2ig.18341$9c7.5231@.trnddc06...
> Generally I would think that having a query in query analyzer and displaying the estimated
> execution plan would not change anything in the system but ran across an interesting problem today
> that makes me think otherwise.
> On SQL Server 2000 sp3a, I have a table with 300,000 rows in it. The table is basically a bulk
> insert from the SQL Error logs with an Identity column for the primary key and int colums added
> for flaging error records and such.
> A SQL job calls a store procedure that truncates the table and reloads it. After that it does an
> update table set errorflag = 1 where logtext like '%error%'
> I found the job in an executing state for several days and investigated. The wait time was 0,
> there was no blocking, and the cpu was increasing. I killed the job and started manually trouble
> shooting.
> The execution or just generating the estimated plan for the update statement would never return.
> I cut the update statement down to just update table set errorflag = 1 and got the same hung
> state. I could do selects on the table. Next I displayed an estimated plan for update table set
> errorflag = 1 where pk < 20000. The returned immediately. After that everything worked. I could
> display plans and run updates. So something in the system changed.
> Any ideas what?
> Danny
>

Does displaying the estimated execution plan change anything?

Generally I would think that having a query in query analyzer and displaying
the estimated execution plan would not change anything in the system but ran
across an interesting problem today that makes me think otherwise.
On SQL Server 2000 sp3a, I have a table with 300,000 rows in it. The table
is basically a bulk insert from the SQL Error logs with an Identity column
for the primary key and int colums added for flaging error records and such.
A SQL job calls a store procedure that truncates the table and reloads it.
After that it does an update table set errorflag = 1 where logtext like
'%error%'
I found the job in an executing state for several days and investigated.
The wait time was 0, there was no blocking, and the cpu was increasing. I
killed the job and started manually trouble shooting.
The execution or just generating the estimated plan for the update statement
would never return. I cut the update statement down to just update table
set errorflag = 1 and got the same hung state. I could do selects on the
table. Next I displayed an estimated plan for update table set errorflag =
1 where pk < 20000. The returned immediately. After that everything
worked. I could display plans and run updates. So something in the system
changed.
Any ideas what?
DannyWild guess: Perhaps statistics were updated and/or created when you looked a
t the plan, so the
following query had a better plan?
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Danny" <nomailbox@.nowhere.com> wrote in message news:Lg2ig.18341$9c7.5231@.trnddc06...[vbcol
=seagreen]
> Generally I would think that having a query in query analyzer and displayi
ng the estimated
> execution plan would not change anything in the system but ran across an i
nteresting problem today
> that makes me think otherwise.
> On SQL Server 2000 sp3a, I have a table with 300,000 rows in it. The tabl
e is basically a bulk
> insert from the SQL Error logs with an Identity column for the primary key
and int colums added
> for flaging error records and such.
> A SQL job calls a store procedure that truncates the table and reloads it.
After that it does an
> update table set errorflag = 1 where logtext like '%error%'
> I found the job in an executing state for several days and investigated. T
he wait time was 0,
> there was no blocking, and the cpu was increasing. I killed the job and s
tarted manually trouble
> shooting.
> The execution or just generating the estimated plan for the update stateme
nt would never return.
> I cut the update statement down to just update table set errorflag = 1 and
got the same hung
> state. I could do selects on the table. Next I displayed an estimated pl
an for update table set
> errorflag = 1 where pk < 20000. The returned immediately. After that eve
rything worked. I could
> display plans and run updates. So something in the system changed.
> Any ideas what?
> Danny
>[/vbcol]

Sunday, February 19, 2012

Documentation Tool

I was wondering if anyone has a good SQL Server Documentation tool. I have been looking at FMS - Total SQL Analyzer and AGS - SQL Scribe. Does anyone know of others?
Thanks for the help,
RDA
http://www.aspfaq.com/2209
http://www.aspfaq.com/
(Reverse address to reply.)
"RDA" <anonymous@.discussions.microsoft.com> wrote in message
news:48620959-3C4E-4520-A9B0-CAD19CE70530@.microsoft.com...
> I was wondering if anyone has a good SQL Server Documentation tool. I have
been looking at FMS - Total SQL Analyzer and AGS - SQL Scribe. Does anyone
know of others?
> Thanks for the help,
> RDA
|||RDA,
I like ER/Studio from Embarcadero.
http://www.embarcadero.com/products/erstudio/index.html
Mark Allison, SQL Server MVP
http://www.markallison.co.uk
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
RDA wrote:
> I was wondering if anyone has a good SQL Server Documentation tool. I have been looking at FMS - Total SQL Analyzer and AGS - SQL Scribe. Does anyone know of others?
> Thanks for the help,
> RDA
|||Consider WT3 - one of the SQL Server Tools applications...
http://www.sqlservertools.us
It may do what you are asking for, as well as a lot more.

Documentation Tool

I was wondering if anyone has a good SQL Server Documentation tool. I have been looking at FMS - Total SQL Analyzer and AGS - SQL Scribe. Does anyone know of others
Thanks for the help
RDAhttp://www.aspfaq.com/2209
--
http://www.aspfaq.com/
(Reverse address to reply.)
"RDA" <anonymous@.discussions.microsoft.com> wrote in message
news:48620959-3C4E-4520-A9B0-CAD19CE70530@.microsoft.com...
> I was wondering if anyone has a good SQL Server Documentation tool. I have
been looking at FMS - Total SQL Analyzer and AGS - SQL Scribe. Does anyone
know of others?
> Thanks for the help,
> RDA|||RDA,
I like ER/Studio from Embarcadero.
http://www.embarcadero.com/products/erstudio/index.html
--
Mark Allison, SQL Server MVP
http://www.markallison.co.uk
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
RDA wrote:
> I was wondering if anyone has a good SQL Server Documentation tool. I have been looking at FMS - Total SQL Analyzer and AGS - SQL Scribe. Does anyone know of others?
> Thanks for the help,
> RDA|||Consider WT3 - one of the SQL Server Tools applications..
http://www.sqlservertools.u
It may do what you are asking for, as well as a lot more

Documentation Tool

I was wondering if anyone has a good SQL Server Documentation tool. I have b
een looking at FMS - Total SQL Analyzer and AGS - SQL Scribe. Does anyone kn
ow of others?
Thanks for the help,
RDAhttp://www.aspfaq.com/2209
http://www.aspfaq.com/
(Reverse address to reply.)
"RDA" <anonymous@.discussions.microsoft.com> wrote in message
news:48620959-3C4E-4520-A9B0-CAD19CE70530@.microsoft.com...
> I was wondering if anyone has a good SQL Server Documentation tool. I have
been looking at FMS - Total SQL Analyzer and AGS - SQL Scribe. Does anyone
know of others?
> Thanks for the help,
> RDA|||RDA,
I like ER/Studio from Embarcadero.
http://www.embarcadero.com/products/erstudio/index.html
Mark Allison, SQL Server MVP
http://www.markallison.co.uk
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
RDA wrote:
> I was wondering if anyone has a good SQL Server Documentation tool. I have
been looking at FMS - Total SQL Analyzer and AGS - SQL Scribe. Does anyone
know of others?
> Thanks for the help,
> RDA|||Consider WT3 - one of the SQL Server Tools applications...
http://www.sqlservertools.us
It may do what you are asking for, as well as a lot more.

Friday, February 17, 2012

document for the {fn UPDATELINEAGE(0x0, 1)}

in the SQL Query Analyzer I can use
select {fn UPDATELINEAGE(0x0, 1)}
and get result set like 0x0100000001000000FF back from SQL server, no
document describes what the syntax is for {fn UPDATELINEAGE(0x0, 1)}. Does
any one know this?
Thank you
Xinmin zhouThere won't be. There are quite a few odbc functions that are used
internally by MS. This one in particular is used in sp_MSaddmergetriggers.
You probably want to stay away from undocumented functions anyway...
-oj
"Syntax of {fn UPDATELINEAGE(0x0, 1)}" <Syntax of {fn UPDATELINEAGE(0x0, 1)}
@.discussions.microsoft.com> wrote in message
news:860742F2-A336-4BD2-8BEF-CB9EF31A00E4@.microsoft.com...
> in the SQL Query Analyzer I can use
> select {fn UPDATELINEAGE(0x0, 1)}
> and get result set like 0x0100000001000000FF back from SQL server, no
> document describes what the syntax is for {fn UPDATELINEAGE(0x0, 1)}. Does
> any one know this?
> Thank you
> Xinmin zhou
>
>|||...and from what I could find, the number of parameters went from 2 to 3
with SP1.
That's why you should stay away from undocumented system procedures and
functions.
The function could even be dropped in the next upgrade or service pack.
"oj" <nospam_ojngo@.home.com> wrote in message
news:OnQ5tPBTFHA.544@.TK2MSFTNGP15.phx.gbl...
> There won't be. There are quite a few odbc functions that are used
> internally by MS. This one in particular is used in sp_MSaddmergetriggers.
> You probably want to stay away from undocumented functions anyway...
> --
> -oj
>
> "Syntax of {fn UPDATELINEAGE(0x0, 1)}" <Syntax of {fn UPDATELINEAGE(0x0,
> 1)} @.discussions.microsoft.com> wrote in message
> news:860742F2-A336-4BD2-8BEF-CB9EF31A00E4@.microsoft.com...
>