Wednesday, March 21, 2012
Last Query Statement fired into the MSSQL Engine
How can you get the Query Statement of the last executed SQL command.
I am not quite sure but I do remember coming across such a command ( maybe an undocumented one).
Thanks for your help and pointers.
My Best wishes for the new year to all the folks in the forum. Wishing you greater days ahead.
Warm Regards,
Ranjit S Hans.
---------------------
Everywhere is a walking distance if you have the time - Steven Wrightdbcc inputbuffer(@.spid)|||You can also use fn_get_sql, but it is a little more awkward.|||Hi Matt/ Jezemine,
Thanks so much for the help .. You have been wonderful all along.
I am looking forward to try out using fn_get_sql sometime soon.
Thanks once again !!
Warm Regards,
Ranjit S Hans
----------------------
Everywhere is a walking distance if you have the time - Steven Wright|||fn_get_sql has a number of benefits over dbcc inputbuffer actually. dbcc cuts off the query returned at 255 chars as I recall. Usually thats enough, unless you have apps out there making ad-hoc sql calls doing a 10-way join. :)
Friday, February 24, 2012
Large Sample Database required for testing
We are creating a search engine in MS SQL using FullText etc.
we need to run some tests against a database that is near to realistic data. We have been able to generate a database of thousands of usernames, first names etc. but we can't figure out where to obtain a database full of data that contains product descriptions, product titles etc.
Does anyone have any idea where we could obtain (or even buy if need be) a large database (over 10,000 records) of sample data that we could run test queries against, so that we can optimise the queries, provide execution time estimates etc.
We have downloaded the adventureworks sample database, but there are not nearly enough records in it.
Any help would be much appreciated.
Create one on your won, there are many data generation tools outside there generating either random data or data based on your own data while obfuscating it. The MS product for this is Visual Studio for Database professionals which has a great data generator.
HTH, Jens K. Suessmeyer.
http://www.sqlserver2005.de
Large Objects Sql Server 2000 Desktop Engine
I have a question relating to large objects. It is
possible to store large objects in the Sql Server 2000
Desktop Engine when using this database system as a local
store on a pc.
Thank you in advance for your answer
hi,
"deusnexus" <deusnexus@.web.de> ha scritto nel messaggio
news:2014001c45933$f65200f0$a601280a@.phx.gbl...
> Hello to all of you,
> I have a question relating to large objects. It is
> possible to store large objects in the Sql Server 2000
> Desktop Engine when using this database system as a local
> store on a pc.
> Thank you in advance for your answer
yes, as in any other SQL Server edition... but you must consider the 2GB
data limit...
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz/DbaMgr.shtmhttp://italy.mvps.org
DbaMgr2k ver 0.8.0 - DbaMgr ver 0.54.0
(my vb6+sql-dmo little try to provide MS MSDE 1.0 and MSDE 2000 a visual
interface)
-- remove DMO to reply