Viewing 15 posts - 3,616 through 3,630 (of 5,588 total)
Grant, I'd really like to see what you end up with on this. For one, I don't understand how you're running this query in RS.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 25, 2010 at 12:00 pm
Well, I've got a little bit of followup on this. The instance still won't start.
In looking through the application Event Log, and in cluster.log, I see these messages:
Recovery is complete....
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 25, 2010 at 9:25 am
How about:
select * from sys.database_files
(Size = # of 8k pages, so multiply size*8*1024 to get # bytes of the file. Or (size*8)/1024 to get # MB)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 24, 2010 at 3:24 pm
YSLGuru (8/24/2010)
CirquedeSQLeil (8/24/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 24, 2010 at 3:18 pm
Sounds like a good use of the "For-Each container". This can be set for files in a folder (even with a mask), and sets a variable to the file name....
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 24, 2010 at 3:07 pm
And to insert the existing values into the identity column, you will need to use SET IDENTITY_INSERT ON/OFF.
i.e. (using your test data):
if OBJECT_ID('tempdb..#test') IS NOT NULL DROP TABLE #test
CREATE TABLE...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 24, 2010 at 2:45 pm
If you can get your developer to put each summary_level as a child of the root, you can utilize this (ideally, the different summary levels would be just "SUMMARY_LEVEL", and...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 24, 2010 at 2:21 pm
Grant,
How does this do?
declare @test-2 xml = '
<ROOT>
<SUMMARY_LEVEL_1>
<DEPTID>42</DEPTID>
<LEVEL>1</LEVEL>
<DETAIL_LEVEL_1>
<EMPID>1</EMPID>
<NAME>Dude</NAME>
</DETAIL_LEVEL_1>
<DETAIL_LEVEL_1>
<EMPID>2</EMPID>
...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 24, 2010 at 2:13 pm
How about:
CREATE TABLE dbo.Book (
Book_ID int PRIMARY KEY CLUSTERED,
ISDN varchar(20?),
Title varchar(100),
etc.)
CREATE TABLE dbo.Author(
Author_ID int PRIMARY KEY CLUSTERED,
First_Name...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 24, 2010 at 12:47 pm
I would have to agree on both counts.
I think this book will be one to buy - we just don't have a lot of information on using the DMVs, and...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 24, 2010 at 11:06 am
Well, I suggest that we take a step back, and start over.
You've already provided the DDL scripts (CREATE TABLE, CREATE INDEX, etc.) for the tables affected, and INSERT statements to...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 24, 2010 at 10:09 am
Just run your SQL install program again. Note that you will need:
1. Separate disk drives from the first install for the shared disks between the nodes.
2. A separate virtual sql...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 24, 2010 at 9:20 am
You might want to check out this excellent article[/url] for how to handle your running totals.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 24, 2010 at 9:17 am
Steve Jones - Editor (8/23/2010)
We need to get Paul out here in the US for some...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 23, 2010 at 5:16 pm
chinn (8/23/2010)
SELECT name from master..sysdatabases where name not in('Tempdb')
order by name
Open complex_cursor;
FETCH next from complex_cursor into @dbname
WHILE @@fetch_status = 0
BEGIN
set @dbname = upper(@dbname)
set @backupname =...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 23, 2010 at 3:48 pm
Viewing 15 posts - 3,616 through 3,630 (of 5,588 total)