Viewing 15 posts - 121 through 135 (of 237 total)
Is this a one time thing? Is this a stored procedure that's running every few minutes? I generally don't like to create linked servers for both security and performance issues.
December 3, 2014 at 11:07 am
Not sure what you mean by a huge amount of transactions. If it's growing a lot and your transaction log is set to say 20 GB you can either increase...
December 2, 2014 at 11:43 am
This is a bad idea. Depending on transactional load on the server, it could grow large even after a shrink. The best option would be to do a shrink to...
December 2, 2014 at 9:37 am
So will this also work,
if (select ars.role
from sys.dm_hadr_availability_replica_states ars
where ars.is_local = 1) = 2
begin
raiserror ('This is not the primary replica.',2,1)
end
November 26, 2014 at 9:39 am
Inherited, and I would like to change these.
November 25, 2014 at 2:28 pm
Looks like in your tablix you are attempting to average, sum, etc. data that is not a numeric value. I.E. trying to sum a string.
April 17, 2014 at 3:54 pm
Chris Wooding (4/16/2014)
Is it possible that the @KeyCountReserve parameter is sometimes zero or negative? That would cause duplicates to be generated.
I double checked that, it's not used currently. That variable...
April 16, 2014 at 8:35 am
This seems like a good solution, but still requires buy-in from dev. I'll see if I can get them to modify their code.
Thanks.
April 15, 2014 at 11:24 am
It's not a historical table so each table has only one value, that value is selected then updated so max is not used.
Here's the table,
CREATE TABLE [dbo].[key_table](
[alias] [char](25) NOT NULL,
[lastkey]...
April 15, 2014 at 10:55 am
JoshDBGuy (4/11/2014)
This is also another option, it just seems a little weird to do it like this though.
Ah, ok, try rVadams recommendation.
April 11, 2014 at 11:43 am
This is also another option, it just seems a little weird to do it like this though.
April 11, 2014 at 11:30 am
If the server is linked, instead of doing an openquery you can use select .... from [server].[db].[schema].[table_name], i.e.
select * from server01.main_database.dbo.table
April 11, 2014 at 11:25 am
You're doing an insert with a variable, via the Select @TSQL statement. Why can't you strip out @TSQL, and modify your statement a little bit to just use a select?
April 11, 2014 at 10:39 am
Try this
set @sql= 'BULK INSERT ' + @TableName +
' FROM ' + '''' + @FilePath + '''' + ' WITH (
FIELDTERMINATOR = ''' + @delimiter +'''
,ROWTERMINATOR = ''''
);'
Execute (@sql);
April 11, 2014 at 9:23 am
I believe you can go to your replication monitor, right click on the agent and select properties. You can then disable the task. . . I think.
April 3, 2014 at 2:29 pm
Viewing 15 posts - 121 through 135 (of 237 total)