Viewing 12 posts - 1 through 12 (of 12 total)
You could create a copy of an existing database that has the structure you want to put your subset of data into and then use sp_msForEachTable to delete all rows...
September 16, 2008 at 4:00 am
I'm curious to see how people deal with source control issues with sprocs if you're putting your business logic in the database. For example, lets say you create software...
August 13, 2008 at 10:39 am
You need to catch the DBConcurrencyException in your C# code. In the catch you can present the user with the new data and the data they entered and let...
July 16, 2008 at 10:44 am
DECLARE @details AS VARCHAR(MAX)
SET @details = ''
DECLARE @lineNumbers AS VARCHAR(MAX)
SET @lineNumbers = ''
SELECT @details = @details + Detail + ', ', @lineNumbers = @lineNumbers + CAST(LineNumber AS VARCHAR) + ',...
July 15, 2008 at 5:04 pm
Nested transactions are supported in SQL Server. The only caveat, if you want to call it that, is that if you do a rollback, it sets @@TRANCOUNT to 0...
July 10, 2008 at 3:25 pm
It is not really clear what you're trying to accomplish, or why you're trying to accomplish it. A simple query to show what you've given here is:
SELECT ROW_NUMBER() OVER...
July 10, 2008 at 3:13 pm
Grant Fritchey (7/10/2008)
July 10, 2008 at 1:12 pm
if datename(weekday, getdate()) = 'Sunday'
July 10, 2008 at 12:40 pm
select
case
when Transaction_Type like 'Down Time%'
then Transaction_Type
else 'my hard coded text'
end
from mytable
June 20, 2008 at 7:08 am
SSMS can do this as well. Just run the query in a new query window, select all the data in the results panel and copy/paste it into a new...
June 17, 2008 at 8:58 am
Ted Pin (5/30/2008)but that breaks one of those "golden" rules of job hunting: don't waste HR's time if you don't meet the requirements.
This definitely wouldn't be one of my "golden...
May 31, 2008 at 12:48 pm
Thanks for the response Steve. We got a call this morning and it emerged that 'we killed all other sessions' actually meant 'we killed all other sessions - except...
December 11, 2007 at 3:07 am
Viewing 12 posts - 1 through 12 (of 12 total)