Viewing 15 posts - 4,786 through 4,800 (of 5,588 total)
sqlserver12345 (2/10/2010)
Server: Msg 156, Level 15, State 1, Line 13
Incorrect syntax near the...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
February 10, 2010 at 8:45 pm
The only problem with this is that you do not get the actual error message... you will get the variable holders in the string in sysmessages, instead of the actual...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
February 10, 2010 at 2:55 pm
Here's one method. The tally table that Lutz mentioned would also be very efficient.
-- first, notice how I create a table and populate it with the test data?
-- This makes...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
February 10, 2010 at 1:13 pm
you know, I do seem to recall reading something somewhere about an undocumented command that might let you recover a database from a backup made after the database got hosed......
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
February 10, 2010 at 12:39 pm
In case this helps anyone else, here are the amazon links to these books:
"Information Modeling and Relational Databases" by Terry Halpin
"Practical Issues in Data Management" by Fabian Pascal
C.J.Date's "Relational Database...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
February 10, 2010 at 12:13 pm
David,
Thanks for taking the time to make these recommendations.
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
February 10, 2010 at 11:30 am
On your first question of the datetime/smalldatetime... you need to look at how the underlying data is stored. Both are stored as a real number... for instance,
select convert(datetime, 12345.785215)
returns...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
February 9, 2010 at 9:06 pm
sounds like you need something like:
DECLARE @SourceA TABLE (
[ServerName] [varchar](50) NULL,
127.0.0.1 [varchar](50) NULL
)
DECLARE @SourceB TABLE (
[ServerName] [varchar](50) NULL,
127.0.0.1 [varchar](50) NULL
)
-- insert the sample data
-- notice how it's in...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
February 9, 2010 at 7:42 pm
CirquedeSQLeil (2/9/2010)[hrI found a few databases that still show dtproperties and sysdiagrams.
Still looking for an alternative answer.
probably because those tables were scripted out without the extended properties, then when run...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
February 9, 2010 at 4:36 pm
CirquedeSQLeil (2/9/2010)
Roy Ernest (2/9/2010)
If you use is_ms_shipped = 0, does it not exclude those tables?
Those two tables, no. They are tweener tables. They were technically shipped with SQL...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
February 9, 2010 at 4:35 pm
select *
from sys.tables
where is_ms_shipped = 0
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
February 9, 2010 at 12:15 pm
SQL Dude-467553 (2/9/2010)
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
February 9, 2010 at 9:56 am
Schadenfreude-Mei (2/8/2010)
Set up another remote machin with vpn and try that, bu if other users are fine, then its...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
February 9, 2010 at 9:54 am
While you're looking at robocopy, you might want to look at forfiles.exe also.
On most of our new servers, we have enough space to maintain several days backup history, so I...
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
February 9, 2010 at 9:46 am
Excellent question. Then I noticed who the author of it is, and realized... but of course!
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
February 9, 2010 at 9:37 am
Viewing 15 posts - 4,786 through 4,800 (of 5,588 total)