Viewing 15 posts - 8,776 through 8,790 (of 26,490 total)
Constantly posting new threads on the same topic isn't going to get you better answers.
February 15, 2013 at 7:22 pm
Jeff Moden (2/15/2013)
Sean Lange (2/15/2013)
You should use DATEADD because the simple math does not work with date or datetime2 datatypes.
I have to ask... if you're not using the DATE or...
February 15, 2013 at 3:40 pm
Could use the DDL for the tables, index definitions, sample data, expected results, and of course the actual execution plans for the two queries.
Other than that, all you may get...
February 15, 2013 at 3:37 pm
This perhaps?
-- Delete from Table2 must run first
DELETE FROM
dbo.Table2 t2
WHERE
t2.TimeStampCol < @CutOffDateTime;
-- Then run delete from Table2
DELETE FROM
dbo.Table1...
February 15, 2013 at 3:32 pm
Perhaps this?
if exists(select 1 from tempdb.sys.objects where object_id = object_id('tempdb..#TempTable'))
DROP TABLE #TempTable;
CREATE TABLE #TempTable(
[Customer] VARCHAR(50) NOT NULL,
[Status] INT...
February 15, 2013 at 3:19 pm
I think this is not quite correct:
Database context will not be changed while executing EXECUTE statements. The reason is changes in database context last only until the end of the...
February 15, 2013 at 9:27 am
I'd do it this way and use it in a CROSS APPLY in the FROM clause:
create function dbo.RemoveVowels(
@pString varchar(max)
)
returns table
as
return (select replace(replace(replace(replace(replace(replace(@pString,'Y',''),'U',''),'O',''),'I',''),'E',''),'A','') NoVowels);
go
February 15, 2013 at 9:10 am
I'd like to make a suggestion. Developers really need to stop using this notation for subtracting days from a date: @datevariable - 2. Really should use the DATEADD...
February 15, 2013 at 8:38 am
dsachu (2/15/2013)
still waiting for response....
You get what you pay for.
This is a free website and the people who volunteer to answer questions here do so on there own time....
February 15, 2013 at 7:16 am
In a full and differential backup enough of the transaction log is backed up to ensure a consistent database upon restore. The SQL backup does not pick and choose...
February 15, 2013 at 6:27 am
sumith1andonly1 (2/14/2013)
no im just a developer. but im trying to be a DBA
All I am going to say is this, stop trying to circumvent the DBA. His (or her) job...
February 15, 2013 at 6:11 am
Jan Van der Eecken (2/15/2013)
February 15, 2013 at 6:06 am
ScottPletcher (2/14/2013)
In order, here's a quick list of the most important things to do first:
1) Make sure the DBA role will fit you. As a developer,...
February 14, 2013 at 4:18 pm
Unfortunately, we can't see what you see so it is hard to know what to tell you.
February 14, 2013 at 4:13 pm
scribesjeff (2/14/2013)
I'm new to T-SQL and need a little help with this query.
I need to convert or CAST and INT into a Char inside a case stament. I'm going to...
February 14, 2013 at 1:49 pm
Viewing 15 posts - 8,776 through 8,790 (of 26,490 total)