Viewing 15 posts - 2,761 through 2,775 (of 5,588 total)
SATISD9X (10/20/2010)
I dont have a SQL 2005/2008 to test. Could you please tell me where would I test it (online)?
No excuse... here's a free copy for you to install and...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 20, 2010 at 10:13 pm
@paul-2 - interesting colours on your new avatar.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 20, 2010 at 9:37 pm
Stefan Krzywicki (10/20/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 20, 2010 at 9:35 pm
You might want to look at utilizing the OpenRowset function to write the data to the file instead.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 20, 2010 at 9:18 pm
I assume that you've tried each of these? What did you find out when you tested them?
BTW, what college do you go to? What is your professor's name?
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 20, 2010 at 9:15 pm
Looks like it's time for a quirky update solution:
IF OBJECT_ID('tempdb..#temp') IS NOT NULL DROP TABLE #temp;
-- This primary key is crucial. If your table doesn't have a clustered index
-- on...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 20, 2010 at 9:12 pm
sqwasi (10/20/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 20, 2010 at 8:51 pm
chris.s.powell (10/20/2010)
http://msdn.microsoft.com/en-us/library/ms143393.aspx
One option would be to do a side...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 20, 2010 at 8:44 pm
bitbucket-25253 (10/20/2010)
You will want to create a parameterized stored procedure along the lines of:
CREATE PROC [dbo].[Blake]
@Start DATETIME
AS
DECLARE @Syr VARCHAR(4)
DECLARE @Smon VARCHAR(2)
SET @Syr = DATEPART(yyyy,@Start)
SET @Smon = DATEPART(mm,@Start)
SET...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 20, 2010 at 8:40 pm
Edit: Didn't read the entire post by OP.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 20, 2010 at 8:01 pm
natalie,
First, thanks for posting the CREATE TABLE and INSERT statements - believe it or not, it really does help us.
Second, the most likely reason that people haven't been helping you...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 20, 2010 at 7:20 pm
ColdCoffee (10/20/2010)
mishaluba (10/19/2010)
Wayne, THANK YOU!!! This is perfect and exactly what I was looking for. I am glad there are smart folks like you on this site!
Wayne is...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 20, 2010 at 7:09 pm
First, you need to know if you want the data stored into separate columns in a permanent table, or just returned through a select statement.
This code handles both ways. See...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 19, 2010 at 9:02 pm
This should do it for you. Remarks are in the code.
DECLARE @date datetime,
@month tinyint;
SET @date = '20101230';
-- get the month of the...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 19, 2010 at 8:37 pm
pavan_srirangam (10/19/2010)
I think he needs find out who or what are doing the deletes not the data what is deleting.
Check out the last three columns in the new table......
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
October 19, 2010 at 5:10 pm
Viewing 15 posts - 2,761 through 2,775 (of 5,588 total)