Viewing 15 posts - 3,316 through 3,330 (of 5,588 total)
Looks like Lutz is having to pull teeth to get the OP to read how to help himself out.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 7, 2010 at 2:03 pm
For anyone else coming along, here's the code:
declare @database nvarchar (100),@SQLString nvarchar (max),@sql nvarchar (max),@statement nvarchar (max),@sp_executesql nvarchar (max)
declare @DBs table (DBname nvarchar (100))
set @SQLString = '
SELECT name
FROM master.sys.databases...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 7, 2010 at 1:53 pm
kbnyny (9/7/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 7, 2010 at 11:24 am
This should work out good also... http://msdn.microsoft.com/en-us/library/bb964743.aspx
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 7, 2010 at 11:07 am
It's too bad we're limited to just 5 stars...
Great article Paul.
Have you got some references you can pass on about how the optimizer works?
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 7, 2010 at 10:24 am
newbieuser (9/7/2010)
Thanks.. Is it possible to find the collation only for varchar fields???Thank you so much again
SELECT ss.name as SchemaName,
t.name as TableName,...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 7, 2010 at 10:12 am
Assuming that you're running a query (as stated), and not a stored procedure - just double-click on the error message. That will usually take you to either the line with...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 7, 2010 at 10:07 am
Madhivanan-208264 (9/7/2010)
You can also make use of row_number() function as described here
Will this work correctly if you have two employees in the same department with the same highest salary?
rakesh 25000.00...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 7, 2010 at 8:52 am
You can also go:
SELECT *
FROM #GermanURLs
WHERE SourceURL LIKE '%[%]%'
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 7, 2010 at 8:10 am
Paul White NZ (9/6/2010)
Very nice, Tom! That would indeed be sufficient to avoid the issue. 😎
Hey guys - don't take this wrong. But I just love it when someone...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 6, 2010 at 9:20 pm
db_datawriter
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 6, 2010 at 9:02 pm
Johnnymac (9/6/2010)
Thanks Wayne, I learned quite a bit with your help on this.-John
Glad I could help. Just please respond back and let us all know how things ended up for...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 6, 2010 at 8:41 pm
That's not why I don't get on those sites. I'm one of those folks that are absolutely paranoid about protecting my personal identity... and all of those social networking sites...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 6, 2010 at 8:37 pm
Perry Whittle (9/6/2010)
WayneS (9/6/2010)
Most systems that I've been involved with the web users can only execute stored procedurescount yourself lucky here!
When you tend to only draw hard, fast lines...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 6, 2010 at 8:34 pm
Perry Whittle (9/6/2010)
"all pirates should find their own treasure"
i do think that you presented well to the OP....
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
September 6, 2010 at 2:40 pm
Viewing 15 posts - 3,316 through 3,330 (of 5,588 total)