Viewing 15 posts - 23,386 through 23,400 (of 49,552 total)
Then you have no databases matching the name that have the table with column.
Add some print statements inside the two IFs so you can see which is not returning true.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 21, 2011 at 6:45 am
M_E_K (9/21/2011)
Thanks for your feedback. I still have a feeling we are hitting some bug, and I'm tempted to raise an SR with microsoft. Even with the poor execution plan,...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 21, 2011 at 6:43 am
Untested, but I think this is close at least
EXEC sp_MSforeachdb N'DECLARE @s-2 VARCHAR(200);
USE ?;
IF ''?'' LIKE ''MyDb__''
BEGIN
IF EXISTS (SELECT * FROM sys.columns WHERE name = ''PriceListID'' and OBJECT_NAME(object_id) = ''Company'')
BEGIN
SET...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 21, 2011 at 2:17 am
Sorry, don't understand
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 21, 2011 at 2:08 am
L' Eomot Inversé (9/20/2011)
GilaMonster (9/20/2011)
LutzM (9/20/2011)
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 21, 2011 at 1:31 am
Switch traceflag 1222 on. That will result in a deadlock graph been written to the error log every time a deadlock occurs. Post the result of that graph here.
DBCC TRACEON(1222,-1)
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 21, 2011 at 1:22 am
Dynamic SQL for the Select, not the exists.
The point is that you need the query with the column name to only be parsed if the exists returns true. Both the...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 21, 2011 at 1:14 am
tfifield (9/20/2011)
Ninja's_RGR'us (9/20/2011)
Pick your db, the PIT to which you want to restore to. Then SCRIPT & manually add the...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 21, 2011 at 1:00 am
Once more with feeling...
Please post table definitions, sample data and desired output. Read this to see the best way to post this to get quick responses.
http://www.sqlservercentral.com/articles/Best+Practices/61537/
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 21, 2011 at 12:59 am
uncle_boris (9/20/2011)
and this round robin pattern is for both TempDB data files and also the log files (if their were multiple log files of course).
No, it's for the data files....
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 21, 2011 at 12:58 am
tfifield (9/20/2011)
Anyone got any ideas?Todd Fifield
Drop database, start again.
You can put the DB back into restoring easy enough, but it still won;t allow another log restore.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 20, 2011 at 3:08 pm
uncle_boris (9/20/2011)
Does SQL use the initial one first and then the...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 20, 2011 at 3:07 pm
gmrose (9/20/2011)
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 20, 2011 at 1:35 pm
Please post table definitions, sample data and desired output. Read this to see the best way to post this to get quick responses.
http://www.sqlservercentral.com/articles/Best+Practices/61537/
And please don't shout at us (post in...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 20, 2011 at 1:34 pm
SQL Kiwi (9/20/2011)
Amateurs.
SELECT REPLICATE(CONVERT(VARCHAR(MAX), CHAR(39)), 9223372036854775807)Apostrophes all gone :laugh:
Memory too. :crash:
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 20, 2011 at 1:22 pm
Viewing 15 posts - 23,386 through 23,400 (of 49,552 total)