Viewing 15 posts - 61 through 75 (of 1,824 total)
Actually parsing SQL is quite a simple thing, once you find the right .Net class
Here is one example of what you can do ..
http://tsqlsmells.codeplex.com/
Should be a relatively simple thing to...
October 22, 2012 at 12:21 am
This sounds like a relational division problem,ie some rows, equal rows, more rows...
Joe Celko has done a good write up on the subject, http://www.simple-talk.com/sql/t-sql-programming/divided-we-stand-the-sql-of-relational-division/
October 12, 2012 at 2:34 am
rohaandba (10/11/2012)
As mentioned this Trigger doen't not allow developers with DDL-Admin permissions and Db Owner permissions to make any DDL changes to the Databases
Is there any way I can allow...
October 12, 2012 at 12:23 am
Sounds like you need a 'catch-all' query
Try this post :http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/
October 12, 2012 at 12:17 am
IF you show your code for the solution and the execution plan then you may get some suggestions on optimization.
October 12, 2012 at 12:06 am
Blurgh, sick in my mouth a little.
Im no sql purist by any means, but this *cant* work. ie relying on top 100 percent to order ,(at least in the long...
October 10, 2012 at 10:32 pm
True, maybe im thinking of snapshots then, have to be out of the database to rollback to a snaphot.
Complete pita 😉
September 23, 2012 at 11:36 am
Done the same sort of thing, but when there are apps that fire continously then they can get the single user connection .
Had to re-sort to pausing the service 🙂
September 23, 2012 at 10:14 am
http://blog.sqlauthority.com/2012/09/20/sql-server-2-t-sql-puzzles-and-win-usd-50-worth-amazon-gift-card-and-25-other-prizes/[/url]
Quick, $50 for the correct answer 🙂
September 23, 2012 at 8:28 am
So...
WHERE [Product Date] >='20120811' and [Product Date] <'20120819'
will do you, you dont need to ignore the time, just adjust the search arguments to match your data
September 23, 2012 at 4:42 am
Try a 'manual pivot' like i show in this article http://www.sqlservercentral.com/articles/T-SQL/73887/[/url]
September 23, 2012 at 3:04 am
Sounds like a table valued parameter is your friend here.
September 23, 2012 at 2:55 am
When you replicate a view, then it will look to replicate the base data (i believe).
In any case, sounds like an indexed view would be better for your circumstances, ...
September 23, 2012 at 2:38 am
Have you tried setting the database to using 'RESTRICTED_USER' then killing off the spids ?
September 23, 2012 at 2:35 am
Just thought i'd pimp my powershell script that can auto-detect quite a few of the points that have been discussed here.
http://tsqlsmells.codeplex.com/[/url]
Not saying that the 'code review' process can ever be...
September 23, 2012 at 2:32 am
Viewing 15 posts - 61 through 75 (of 1,824 total)