Viewing 15 posts - 106 through 120 (of 1,132 total)
See "Datadude and the Text Filegroup"
Well, it turns out that if a table used to have a LOB in it, then the Text Filegroup is preserved. Deleting the LOB...
March 4, 2010 at 4:04 pm
I am migrating a Sybase app to SQL Server 2005 or 2008. There are a large number of BCP (in and out) scripts running on UNIX that point to the...
March 4, 2010 at 1:06 pm
All SQL Server logins will always have those privileges granted to the public role within the msdb database. These privileges can be list by running:
exec msdb.dbo.sp_helprotect @username =...
March 4, 2010 at 12:03 pm
To diagnose the root cause when a client is attempting to connect and receives error 18456 with a error description of "Login failed for user '<user_name>'. (Microsoft SQL Server, Error:...
March 4, 2010 at 7:36 am
How curious about object creation in another database ! I have done this for tables but never for views.
use master
go
CREATE VIEW tempdb.dbo.tables AS
SELECT * FROM msdb.INFORMATION_SCHEMA.TABLES;
Fails with error:
Msg...
March 3, 2010 at 4:28 pm
the problem is the "use database" statment and the solution is to specify the database name as part of the view name.
Replace
SET @sql = N'USE ' + @DESDB +...
March 3, 2010 at 3:33 pm
Below is the source for a trigger solution.
I have made two assumptions:
1. The value of column DOTNumber in table TrailerInventory cannot change.
2. All updates to column...
March 3, 2010 at 8:50 am
Did you check for blocking before restarting SQL Server ?
March 1, 2010 at 6:03 pm
From your original post:
The command I got from the profiler is the first one in my first post. As I said, this command is generated by the .Net runtime...
February 28, 2010 at 8:53 am
Are you certain that your data in in UTF-8 ? If all of the data is actually ASCII, a sub-set of UTF-8, then you can just use a varchar...
February 16, 2010 at 3:57 pm
"data stored in nvarchar field is number but in UTF-8"
This is not possible as national characters in SQL Server are stored in UCS-2 (Universal Character Set 2 byte) and ...
February 14, 2010 at 9:58 am
SchemaBinding can only be used with views that only reference objects within the same database. Referenced objects can be tables, views and user defined functions.
For views that use distributed queries,...
December 24, 2009 at 10:29 am
MS has indicated that support for procedure cache configuration will not be provided despite this being requested by many SQL Server MVP. See "Amount of RAM for procedure cache should...
October 7, 2009 at 1:24 pm
August 9, 2009 at 9:34 am
To list all modules where an "execute as" has been specified, you can run the below SQL.
SELECTobjects.type_desc AS ObjectTypeDescription
,objects.type AS ObjectTypeCd
,SCHEMA_NAME(objects.SCHEMA_ID) AS SchemaName
,objects.nameAS ObjectName
,USER_NAME(sql_modules.execute_as_principal_id) ExecAsUserName
,objects.SCHEMA_ID
,sql_modules.execute_as_principal_id
FROMsys.objectsAS objects
JOINsys.sql_modulesAS sql_modules
ON sql_modules.OBJECT_ID= objects.OBJECT_ID
WHEREsql_modules.execute_as_principal_id...
August 6, 2009 at 5:41 pm
Viewing 15 posts - 106 through 120 (of 1,132 total)