Viewing 15 posts - 5,506 through 5,520 (of 8,731 total)
I think that you missed my point. A cursor IS a while loop (well, not exactly but it needs it to be useful).
There's a different way to do that, but...
November 21, 2014 at 8:54 am
Damian-167372 (11/21/2014)
is there a way we can do this in WHILE Loop?
What do you think this is? A pizza?
WHILE @@FETCH_STATUS = 0
begin
-- my query
FETCH cr into @dbname
end...
November 21, 2014 at 8:06 am
I was on my mobile, but now that I'm back on the desktop, I can elaborate a little more.
SQL Server is identifying master as a linked server instead of a...
November 20, 2014 at 2:41 pm
Have you noticed the vsb instead of vbs?
Does the account used by xp_cmdshell has permissions to execute the scripts?
November 20, 2014 at 12:14 pm
Don't you hate those vendors? ๐
Have you tried changing the type of the step to an ActiveX Script or Operating System?
What is the problem that you have?
I suppose you're using...
November 20, 2014 at 10:32 am
Simple question.
Why do you want to stop app services to backup the DB? Backups can be done online.
November 20, 2014 at 10:13 am
You can try a case sensitive collation.
SET @SQL = 'EXEC (''' + REPLACE(REPLACE(@SQL COLLATE Latin1_General_BIN, '''', ''''''), 'GO', ''');' + + CHAR(13) + ' EXEC(''') + ''');'
November 20, 2014 at 9:49 am
For datetime columns, you should use a range to prevent the use of functions in your column. You might also want to have a computed column either for duration or...
November 20, 2014 at 8:22 am
November 19, 2014 at 7:01 pm
ramana3327 (11/19/2014)
Why because we are passing 3 input parameters. Those are default parameters. We are not changing either in SP or Report also.
Just tested...
November 19, 2014 at 3:50 pm
Even that option could filter something.
DECLARE @test-2 TABLE(
string varchar(30)
)
INSERT @test-2 VALUES ('dasfsa'),('%!ยท$%/'), (''), (NULL)
SELECT *
FROM @test-2
WHERE string LIKE '%'
SELECT *
FROM @test-2
--What about this?
SELECT *
FROM @test-2
WHERE...
November 19, 2014 at 3:49 pm
It's not that we don't want to share information because we're jealous. If that were the case, we wouldn't be helping on the forums. The idea of not posting it...
November 19, 2014 at 3:46 pm
Matt Miller (#4) (11/19/2014)
Sean Lange (11/19/2014)
DSNOSPAM (11/19/2014)
I've been reading about possible performance hits. However, this is in a reporting/analysis environment, not on a production server, and it would...
November 19, 2014 at 3:00 pm
Viewing 15 posts - 5,506 through 5,520 (of 8,731 total)