Viewing 15 posts - 4,321 through 4,335 (of 5,588 total)
sergei.gorelik (4/21/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 21, 2010 at 3:35 pm
Lowell (4/21/2010)
i thought a server side trace starts when you run the command EXEC sp_trace_setstatus @traceid, 1, and runs continuously. rebooting or stopping/starting the...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 21, 2010 at 3:32 pm
Remove the hyphen between the date and time.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 21, 2010 at 3:08 pm
Lynn Pettis (4/21/2010)
Not someone I may consider hiring as a consultant or direct-hire.
Wow. Stubborn as a rock also. I sure hope he hires someone to come in and secure it,...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 21, 2010 at 11:08 am
You don't need to give admin permissions, all you need to do is to grant alter trace permissions. See this entry in BOL for how to do this.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 20, 2010 at 8:44 pm
CirquedeSQLeil (4/20/2010)
Steve Jones - Editor (4/20/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 20, 2010 at 6:21 pm
I also can do a few hours per week. By my count, this should bring it up to 7?
I recently talked w/ Andy Leonard, and he was very interested in...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 20, 2010 at 6:08 pm
CirquedeSQLeil (4/20/2010)
Lynn Pettis (4/20/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 20, 2010 at 5:44 pm
CirquedeSQLeil (4/20/2010)
dma-669038 (4/20/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 20, 2010 at 5:38 pm
Okay, take the code I wrote above.
Change the "year" to "qq" in the two date functions, and the select @min-2/@max to the appropriate table/column. Add some code to calc the...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 20, 2010 at 3:07 pm
You don't need wildcards to use replace... it replaces all occurrances.
i.e. select REPLACE('Hello World', 'or', '12') returns 'Hello W12ld'.
So, replace(columnname, 'XVD', 'SVD') would replace all occurrances of XVD w/ SVD.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 20, 2010 at 1:34 pm
matt stockham (4/20/2010)
You can use 'TRUE' and 'FALSE' as quoted strings - http://msdn.microsoft.com/en-us/library/ms177603.aspx
I didn't know this... just tried it out, and it does work.
Your implicit conversion comment is incorrect -...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 20, 2010 at 1:26 pm
The group by clause (in your second nested select) is referencing a column that is in a table not included in the select clause.
You might be able to avoid the...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 20, 2010 at 11:58 am
You can use this example for how to create the missing years. If you can't get it working with this, please do as Lynn suggests, and give us table structures...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 20, 2010 at 11:44 am
No, this is the way that table variables are supposed to work.
What you can do is change all of the "DECLARE @TABLE TABLE" statements to "CREATE TABLE #TABLE", then change...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 20, 2010 at 10:32 am
Viewing 15 posts - 4,321 through 4,335 (of 5,588 total)