Viewing 15 posts - 3,601 through 3,615 (of 5,588 total)
joemai (8/25/2010)
Thank you very much for your help. Yours worked for 2k5 perfectly. Unfortunately, we still had 2k. Is there a way to work around.Minh V.
Did you notice that...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 25, 2010 at 4:30 pm
Well, the MERGE statement does support updates, inserts and deletes all at once. And common-table-expressions (CTE). Between the two, you should be able to get it done with one very...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 25, 2010 at 4:24 pm
If I'm understanding this correctly, 'spreadsheet2' had an external data link to grab data from 'spreadsheet1'. Is this correct?
If so, why do you need to worry about sending it out...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 25, 2010 at 4:16 pm
Elliott Whitlow (8/25/2010)
It is kind of convoluted when you search for it..I believe this will get you what you want:
Follow the link..
CEWII
Thanks Elliott - I KNEW I...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 25, 2010 at 4:10 pm
For the title of the thread, how does this work?
select *
from sys.databases --(or dbo.sysdatabases for SQL 2000)
where name like 'ReportServer%'
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 25, 2010 at 4:05 pm
e1785 (8/25/2010)
If you have a table with the values to be deleted (or can create a temporary one) you could just Inner Join on both fields.
Well, the values to be...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 25, 2010 at 2:42 pm
The joining on the delete would go like this:
DECLARE @TempTable TABLE (col1 char(1), col2 int);
INSERT INTO @TempTable
select 'A',1 UNION ALL
SELECT 'A',2 UNION ALL
SELECT 'A',3 UNION ALL
SELECT 'A',4 UNION ALL
SELECT 'B',1...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 25, 2010 at 2:38 pm
sp_addserver 'NewServerName', 'local'
You must shut down and restart the server.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 25, 2010 at 2:33 pm
You might consider writing this out as a CSV file - Excel will directly import it.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 25, 2010 at 2:22 pm
You won't be able to do this with the Jet engine on 64-bit.
I thought I had read somewhere about a month ago that there is now a 64-bit driver for...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 25, 2010 at 2:21 pm
emailcooney (8/25/2010)
CREATE TABLE tblCompeditors (CompID AutoIncrement,MemberID TEXT(100),FirstName text(100),LastName TEXT(100),Address1 TEXT(100),Address2 TEXT(100),Town TEXT(100),County TEXT(100),PostCode Text(15),Phone Byte,Email TEXT(100),Sex TEXT(10),DOB Date,Club TEXT(100))
CREATE...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 25, 2010 at 2:08 pm
Alvin Ramard (8/25/2010)
GilaMonster (8/25/2010)
Anyone want to help an apparent newbie to create a critical, large database?http://www.sqlservercentral.com/Forums/Topic975128-1292-1.aspx
If he's doing this for my bank, then I'm changing bank! :w00t:
Hah! Read my reply...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 25, 2010 at 2:03 pm
Would you mind posting the name of the bank? I suddenly sense a need to move my accounts! :w00t:
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 25, 2010 at 2:02 pm
Adiga (8/25/2010)
Did the server name change after cluster installation?Please check this these links help
Have not attempted to change the server name.
2nd link: does not appear to apply (can't even...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 25, 2010 at 1:57 pm
Rod at work (8/23/2010)
I don't understand everything you've done in the SELECT statement, Mike01, but it looks like that will work. Thank you!
Here's my two cents ... Until you...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 25, 2010 at 12:08 pm
Viewing 15 posts - 3,601 through 3,615 (of 5,588 total)