Viewing 15 posts - 22,036 through 22,050 (of 26,490 total)
JacekO (3/12/2009)
If I am not mistaken the SAVE POINTS still does not provide you with an option to nest. It allows you to rollback to a certain point but...
March 12, 2009 at 1:36 pm
Here is some test code. Let me know if this helps.
declare @teststr varchar(20);
set @teststr = 'p_a3c_master';
select
@teststr
where
@teststr like '__[A-Za-z][A-Za-z][A-Za-z]%';
set @teststr = 'p_abc_master';
select
...
March 12, 2009 at 12:54 pm
Regarding transactions, you can use SAVE POINTS to avoid ROLLBACK undoing all your work. You can do this to nest your transactions, and yet ensure that some of the...
March 12, 2009 at 12:48 pm
Grant Fritchey (3/12/2009)
You want to use the datepart function. You can look it up in BOL for all the permutations, but it basically works like this:
SELECT DATENAME(yyyy,'3/12/2009') AS 'Year'
Or:
declare...
March 12, 2009 at 9:34 am
Here is some test code for you to work with:
create table #Temp (
Column1 datetime,
Column2 datetime null
);
insert into #Temp (Column1)
select '2009-03-12 07:00' union...
March 12, 2009 at 8:59 am
Really comes down to six and half dozen the other. Personal experience on my system at home had fewer larger cross joins ran faster when I wanted millions of...
March 12, 2009 at 8:41 am
Bob Hovious (3/12/2009)
there is no table definition or data that is relevant
You are absolutely correct. When asking for more information, I just asked for complete text of errors,...
March 12, 2009 at 8:26 am
Yes, you really should do each backup to a separate file. If you are appending backups to the same file you have to specify which file to restore from...
March 12, 2009 at 8:22 am
Here is another solution:
with
a1 as (select 1 as N union all
select 1 union all
select 1 union...
March 12, 2009 at 8:17 am
Please post the code you used for both your backups and restores.
March 12, 2009 at 8:06 am
How are you looking for elapsed time to be returned? Not knowing your data, I don't know if I need to worry about elapsed time going over 24 hours...
March 12, 2009 at 7:32 am
siddartha pal (3/12/2009)
I am not able to complie the function because of Varchar(max) for @string parameter.
Not sure why that would give you a problem, you are using varchar(max) in your...
March 12, 2009 at 5:20 am
The other alternative put a where clause on your inserts that checks for the existance of those three values existing in the database already.
March 11, 2009 at 9:26 pm
You can also drop the NOLOCK hint. It is ignored any way on INSERT, UPDATE, and DELETE statements.
March 11, 2009 at 9:21 pm
How about trying the following code:
create function dbo.DelimitedSplit (
@pString varchar(max),
@pDelimiter char(1)
)
returns table
as
return
with
a1 as (select 1 as N union all
...
March 11, 2009 at 3:58 pm
Viewing 15 posts - 22,036 through 22,050 (of 26,490 total)