Viewing 15 posts - 5,446 through 5,460 (of 5,588 total)
pedro.ribeiro (4/23/2009)
"Set nocount on" does this instructuction affects the error count (@@error) inside the stored procedure while it is executing?
Or the Set nocount on, only affects the...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 23, 2009 at 10:23 am
yulichka (4/23/2009)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 23, 2009 at 10:20 am
b_boy (4/23/2009)
If col A has a record like '%A' and col B is blank, then update col B with col...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 23, 2009 at 10:17 am
You didn't provide enough information.
You need to add 375,000 rows, and you're concerned about having enough space.
So, you need to determine how much space each row will take in that...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 23, 2009 at 10:11 am
anjana.maganti (4/23/2009)
i mena like using any fuction..
Anyways you...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 23, 2009 at 10:07 am
anjana.maganti (4/23/2009)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 23, 2009 at 9:40 am
I don't do a lot of VBScript programming, but from what I see:
1. your main routine never calls the DbaseUpd subroutine. I think before the conn.Execute line, you need a...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 23, 2009 at 9:29 am
Ahh, didn't consider double-posting. I thought that I had posted that reply, but then I second-guessed myself and figured that I just didn't click the post button...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 23, 2009 at 8:47 am
Try this:
declare @testdate varchar(50), @realdate datetime
set @testdate = 'Monday, January 28, 2008'
set @realdate = SUBSTRING(@testdate, CharIndex(', ', @testdate)+2, 50)
select @testdate, @realdate
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 23, 2009 at 8:41 am
Try this:
declare @testdate varchar(50), @realdate datetime
set @testdate = 'Monday, January 28, 2008'
set @realdate = SUBSTRING(@testdate, CharIndex(', ', @testdate)+2, 50)
select @testdate, @realdate
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 23, 2009 at 8:38 am
Dizzy (4/23/2009)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 23, 2009 at 6:50 am
Does the whole procedure get executed only on the first day of the month, or is there some part of it that only gets executed on the first day of...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 23, 2009 at 6:44 am
sandhya_vemulla (4/22/2009)
Is there any where to see which System table stores the definition of the RULE.
You are looking for the system view sys.all_sql_modules. Specifically the definition column.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 22, 2009 at 7:47 pm
Okay, how's this?
-- create temporary table
DECLARE @HOLIDAY_DESCRIPTION TABLE (
[holiday_number] [bigint] NOT NULL PRIMARY KEY CLUSTERED,
[holiday_description] [varchar](30) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 22, 2009 at 7:40 pm
doran_doran (4/22/2009)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
April 22, 2009 at 6:19 pm
Viewing 15 posts - 5,446 through 5,460 (of 5,588 total)